Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { BuildVersion() string Bind() string Port() int LogRequests() bool LogDebug() bool LogConfig() bool FrontendProxy() *url.URL FrontendPath() string GetViewNames() []string FrontendExpires() time.Duration ConfigExpires() time.Duration ImageEarlyExpire() time.Duration HashSecret() string }
type Environment ¶
type Environment struct { Config Config ProjectTitle string Views []*config.ViewConfig Auth config.AuthConfig CameraClientPoolInstance *cameraClient.ClientPool HashStorage *hashStore.HashStore }
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message" example:"status bad request"`
}
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func Run ¶
func Run(env *Environment) (httpServer *HttpServer)
func (*HttpServer) Shutdown ¶
func (s *HttpServer) Shutdown()
Click to show internal directories.
Click to hide internal directories.