Documentation ¶ Index ¶ func Register(name string, fun GetHandlerFunc) type GetHandlerFunc type Handler func GetHandler(config []byte) (Handler, error) type Handlers func (h Handlers) ServeConn(ctx context.Context, conn net.Conn) func (h *Handlers) UnmarshalJSON(data []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Register ¶ func Register(name string, fun GetHandlerFunc) Types ¶ type GetHandlerFunc ¶ type GetHandlerFunc func(config []byte) (Handler, error) type Handler ¶ type Handler interface { ServeConn(ctx context.Context, conn net.Conn) } func GetHandler ¶ func GetHandler(config []byte) (Handler, error) type Handlers ¶ type Handlers []Handler func (Handlers) ServeConn ¶ func (h Handlers) ServeConn(ctx context.Context, conn net.Conn) func (*Handlers) UnmarshalJSON ¶ func (h *Handlers) UnmarshalJSON(data []byte) error Source Files ¶ View all Source files handler.go Directories ¶ Show internal Expand all Path Synopsis dialer http https tls Click to show internal directories. Click to hide internal directories.