Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CloseHandler ¶
type CloseHandler interface {
HandleClose(c *Conn)
}
type Conn ¶
type Conn struct { Data interface{} // contains filtered or unexported fields }
func (*Conn) RemoteAddr ¶
type ConnectHandler ¶
type FuncCloseHandler ¶
type FuncCloseHandler func(c *Conn)
func (FuncCloseHandler) HandleClose ¶
func (f FuncCloseHandler) HandleClose(c *Conn)
type FuncConnectHandler ¶
func (FuncConnectHandler) HandleConnect ¶
func (f FuncConnectHandler) HandleConnect(c *Conn, host string) (newHost string, err error)
type Server ¶
type Server struct { Logger *log.Logger AuthNoAuthenticationRequiredCallback func(conn *Conn) error AuthUsernamePasswordCallback func(conn *Conn, username, password []byte) error // contains filtered or unexported fields }
func (*Server) HandleClose ¶
func (srv *Server) HandleClose(h CloseHandler)
func (*Server) HandleCloseFunc ¶
func (*Server) HandleConnect ¶
func (srv *Server) HandleConnect(h ConnectHandler)
func (*Server) HandleConnectFunc ¶
func (*Server) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.