Versions in this module Expand all Collapse all v0 v0.4.2 Nov 13, 2023 v0.4.1 Nov 13, 2023 v0.4.0 May 5, 2022 Changes in this version + type ConfigureRouterHandler interface + ConfigureRouter func(router *mux.Router) (handler http.Handler, err error) type ServerStatus + StripPath string + type SimpleServiceGetHTTPHandlerObsolete interface + GetHTTPHandler func() (handler http.Handler, err error) + type SimpleServiceGetStatusHandler interface + GetServerStatus func() (status interface{}) v0.3.4 Apr 25, 2022 v0.3.3 Jan 4, 2022 v0.3.2 Dec 17, 2021 v0.3.1 Dec 11, 2021 v0.3.0 Dec 11, 2021 v0.2.2 Dec 8, 2021 Changes in this version + type SimpleServiceBeforeEnd interface + BeforeEnd func() v0.2.1 Sep 17, 2021 Changes in this version type SimpleService + SetTimeouts func(writeTimeout time.Duration, readTimeout time.Duration, ...) type SimpleServiceBase + func (s *SimpleServiceBase) SetTimeouts(writeTimeout time.Duration, readTimeout time.Duration, ...) v0.2.0 Sep 10, 2021 v0.1.1 Sep 10, 2021 Changes in this version + func AllowAllCorsMiddleware(h http.Handler) http.Handler + func ProcessHTTPError(err error, w http.ResponseWriter, _ *http.Request) + type AppHandler func(w http.ResponseWriter, r *http.Request) error + func (ah AppHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type AppHandlerWithUserID func(userID string, w http.ResponseWriter, r *http.Request) error + func (ah AppHandlerWithUserID) ServeHTTP(w http.ResponseWriter, r *http.Request) + type GelfFormatter struct + func (f *GelfFormatter) Format(entry *logrus.Entry) ([]byte, error) + type ServerErrorData struct + Code int + Description string + Message string + Parent error + Stack string + func ServerError(Parent error, Code int, Message string) *ServerErrorData + func (e *ServerErrorData) Error() string + type ServerErrorLoginRequired struct + LoginRequired bool + type ServerErrorWithText struct + ErrorText string + type ServerStatus struct + Pid int + Process string + Running bool + func NewServerStatus() *ServerStatus + type SimpleService interface + Start func() (err error) + func NewSimpleService(obj SimpleServiceObject) SimpleService + type SimpleServiceBase struct + func (s *SimpleServiceBase) Start() (err error) + type SimpleServiceBeforeStart interface + BeforeStart func() (err error) + type SimpleServiceGetHTTPHandler interface + GetHTTPHandler func() (handler http.Handler, err error) + type SimpleServiceObject interface + type SimpleServicePreparePFlags interface + PreparePFlags func() (err error)