Versions in this module Expand all Collapse all v0 v0.1.1 Jun 26, 2024 v0.1.0 Jun 26, 2024 Changes in this version + func DialAndCall(caller Caller) error + func DialAndCallTLS(caller Caller, tlsConfig *tls.Config) error + func DialToAndCall(srvAddr string, caller Caller, ifaceName string) error + func DialToAndCallTLS(srvAddr string, caller Caller, tlsConfig *tls.Config) error + func ListenAndServe(addr string, handler Handler) error + func ListenAndServeTLS(addr string, certFile string, keyFile string, handler Handler) error + func Serve(listener net.Listener, handler Handler) error + type Caller interface + CallTELNET func(Writer, Reader) + var StandardCaller Caller = internalStandardCaller{} + type Client struct + Caller Caller + Logger Logger + func (client *Client) Call(conn *Conn) error + func (client *Client) SetAuth(username string) + type Conn struct + func Dial() (*Conn, error) + func DialTLS(tlsConfig *tls.Config) (*Conn, error) + func DialTo(addr string, throughIfaceName string) (*Conn, error) + func DialToTLS(addr string, tlsConfig *tls.Config) (*Conn, error) + func (clientConn *Conn) Close() error + func (clientConn *Conn) LocalAddr() net.Addr + func (clientConn *Conn) Read(p []byte) (n int, err error) + func (clientConn *Conn) RemoteAddr() net.Addr + func (clientConn *Conn) Write(p []byte) (n int, err error) + type Context interface + InjectLogger func(Logger) Context + Logger func() Logger + func NewContext() Context + type Handler interface + ServeTELNET func(Context, Writer, Reader) + var EchoHandler Handler = internalEchoHandler{} + type Logger interface + Debug func(...interface{}) + Debugf func(string, ...interface{}) + Error func(...interface{}) + Errorf func(string, ...interface{}) + Trace func(...interface{}) + Tracef func(string, ...interface{}) + Warn func(...interface{}) + Warnf func(string, ...interface{}) + type Reader interface + Read func([]byte) (int, error) + type Server struct + Addr string + Handler Handler + Logger Logger + TLSConfig *tls.Config + func (server *Server) ListenAndServe() error + func (server *Server) ListenAndServeTLS(certFile string, keyFile string) error + func (server *Server) Serve(listener net.Listener) error + type Writer interface + Write func([]byte) (int, error)