tcp

package
v0.0.0-...-4e41393 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTCPListener

type MockTCPListener struct {
	AcceptFunc func() (net.Conn, error)
	CloseFunc  func() error
	AddrFunc   func() net.Addr
}

func (*MockTCPListener) Accept

func (l *MockTCPListener) Accept() (net.Conn, error)

func (*MockTCPListener) Addr

func (l *MockTCPListener) Addr() net.Addr

func (*MockTCPListener) Close

func (l *MockTCPListener) Close() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL