Documentation ¶ Index ¶ func Register(name string, fun HandlerFunc) type Handler type HandlerFunc type Handlers func (h Handlers) ServeMux(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 HandlerFunc) Types ¶ type Handler ¶ type Handler interface { ServeMux(ctx context.Context, conn net.Conn) } type HandlerFunc ¶ type HandlerFunc func(config []byte) (Handler, error) type Handlers ¶ type Handlers []Handler func (Handlers) ServeMux ¶ func (h Handlers) ServeMux(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 modules modules/expvar modules/file modules/header modules/pprof modules/proxy modules/redirect modules/returns mux template tls Click to show internal directories. Click to hide internal directories.