Wrote ChannelReadWriter that simulates a connection inmemory. This is used by the agentserver test for testing the initialization. The first test is already working.
13 lines
128 B
Go
13 lines
128 B
Go
package iowrappers
|
|
|
|
import (
|
|
"io"
|
|
"net"
|
|
)
|
|
|
|
type ReadWriteAddrCloser interface {
|
|
io.ReadWriteCloser
|
|
|
|
RemoteAddr() net.Addr
|
|
}
|