Documentation
¶
Index ¶
- func AssertClosed(t assert.TestingT, r io.Reader)
- func AssertForward(t assert.TestingT, r io.Reader, w io.Writer)
- func AssertForward2(t assert.TestingT, n1, n2 io.ReadWriteCloser)
- func AssertRead(t assert.TestingT, r io.Reader, b []byte)
- func AssertReadMask(t assert.TestingT, r io.Reader, b []byte, m []byte)
- func AssertWrite(t assert.TestingT, w io.Writer, b []byte)
- func Chargen(c io.ReadWriteCloser)
- func Discard(c io.ReadWriteCloser)
- func Echo(c io.ReadWriteCloser)
- func GetAddr() (string, uint16)
- func ServeTCP(ctx context.Context, addr string, f func(io.ReadWriteCloser))
- func ServeUDP(ctx context.Context, addr string, ...)
- func UChargen(p net.PacketConn, d []byte, a net.Addr)
- func UDiscard(p net.PacketConn, d []byte, a net.Addr)
- func UEcho(p net.PacketConn, d []byte, a net.Addr)
- func WatchDog()
- func WatchDog10s()
- type FakeEchoClientAuthenticationMethod
- type FakeEchoServerAuthenticationMethod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertForward2 ¶
func AssertForward2(t assert.TestingT, n1, n2 io.ReadWriteCloser)
func Chargen ¶
func Chargen(c io.ReadWriteCloser)
func Discard ¶
func Discard(c io.ReadWriteCloser)
func Echo ¶
func Echo(c io.ReadWriteCloser)
func WatchDog10s ¶
func WatchDog10s()
Types ¶
type FakeEchoClientAuthenticationMethod ¶
type FakeEchoClientAuthenticationMethod struct{}
func (FakeEchoClientAuthenticationMethod) Authenticate ¶
func (f FakeEchoClientAuthenticationMethod) Authenticate( ctx context.Context, conn net.Conn, cac auth.ClientAuthenticationChannels, )
func (FakeEchoClientAuthenticationMethod) ID ¶
func (f FakeEchoClientAuthenticationMethod) ID() byte
type FakeEchoServerAuthenticationMethod ¶
type FakeEchoServerAuthenticationMethod struct{}
FakeEchoServerAuthenticationMethod is a fake auth method to test interactive authentication phase
func (FakeEchoServerAuthenticationMethod) Authenticate ¶
func (f FakeEchoServerAuthenticationMethod) Authenticate( ctx context.Context, conn net.Conn, data []byte, sac *auth.ServerAuthenticationChannels, )
func (FakeEchoServerAuthenticationMethod) ID ¶
func (f FakeEchoServerAuthenticationMethod) ID() byte
Click to show internal directories.
Click to hide internal directories.