Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartHTTPServer ¶
func StartHTTPServer(params *HttpServerParams) (*http.Server, error)
StartHTTPServer based on the given parameters
Types ¶
type APIHandler ¶
type APIHandler struct { Reloader []func(cfg *config.Config) error ConfigFile string // contains filtered or unexported fields }
func NewAPIHandler ¶
func NewAPIHandler(p *HttpServerParams) *APIHandler
NewAPIHandler returns a new APIHandler
func (*APIHandler) RegisterRoutes ¶
func (aH *APIHandler) RegisterRoutes(router *mux.Router)
func (*APIHandler) Reload ¶
func (aH *APIHandler) Reload(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.