Documentation ¶
Index ¶
- func AddLogPrefix(l *log.Logger, prefix string) *log.Logger
- func Errors(list ...error) error
- func ExitOnError(err error)
- func Pump(wg *sync.WaitGroup, conn1 Conn, conn2 Conn, isClosed *int32, log *log.Logger)
- func ReadConfigFile(file string, x interface{}) error
- func WatchDir(dir string, checkForNewVersion func()) (Close func() error, err error)
- type Conn
- type HostPort
- type PrefixingWriter
- type WrapperConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitOnError ¶
func ExitOnError(err error)
func ReadConfigFile ¶
Types ¶
type PrefixingWriter ¶
type PrefixingWriter string
type WrapperConn ¶
type WrapperConn struct { Send func([]byte) error Recv func() ([]byte, error) Context context.Context Cancel context.CancelFunc // contains filtered or unexported fields }
func (*WrapperConn) Close ¶
func (w *WrapperConn) Close() error
Click to show internal directories.
Click to hide internal directories.