Documentation ¶ Index ¶ type Config func DefaultConfig() *Config func (c *Config) Validate() error type HTTP func NewHTTP(cfg *Config, handler http.Handler) *HTTP func (srv *HTTP) Start(ctx context.Context) error func (srv *HTTP) Stop(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Listen string `mapstructure:"listen"` } func DefaultConfig ¶ func DefaultConfig() *Config func (*Config) Validate ¶ func (c *Config) Validate() error type HTTP ¶ type HTTP struct { // contains filtered or unexported fields } func NewHTTP ¶ func NewHTTP(cfg *Config, handler http.Handler) *HTTP func (*HTTP) Start ¶ func (srv *HTTP) Start(ctx context.Context) error func (*HTTP) Stop ¶ func (srv *HTTP) Stop(ctx context.Context) error Source Files ¶ View all Source files config.go server.go Click to show internal directories. Click to hide internal directories.