Documentation ¶ Index ¶ type Config type HTTP func NewHTTP(config *Config) *HTTP func (h *HTTP) Addr() string func (h *HTTP) ListenAndServe() (err error) func (h *HTTP) Router() *mux.Router func (h *HTTP) Shutdown(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 { Addr string ReadTimeout time.Duration WriteTimeout time.Duration IdleTimeout time.Duration TLSCertFile string TLSKeyFile string } type HTTP ¶ type HTTP struct { // contains filtered or unexported fields } func NewHTTP ¶ func NewHTTP(config *Config) *HTTP func (*HTTP) Addr ¶ func (h *HTTP) Addr() string func (*HTTP) ListenAndServe ¶ func (h *HTTP) ListenAndServe() (err error) func (*HTTP) Router ¶ func (h *HTTP) Router() *mux.Router func (*HTTP) Shutdown ¶ func (h *HTTP) Shutdown(ctx context.Context) error Source Files ¶ View all Source files http.go Click to show internal directories. Click to hide internal directories.