modules

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL