{"modulePath":"github.com/Stackdome/stackdome","version":"v0.0.7-alpha","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package server\n\n## Functions\n\n```go\nfunc WithRequestTimeoutMiddleware(next http.Handler, timeoutDuration time.Duration) http.Handler\n```\n\n## Types\n\n```go\ntype AuthSelectorHandler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAuthSelectHandler(spec AuthSelectorHandlerSpec) *AuthSelectorHandler\n```\n\n```go\nfunc (h *AuthSelectorHandler) Add(handler http.Handler, selectFunc SelectFunc)\n```\n\n```go\nfunc (h *AuthSelectorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)\n```\n\n```go\ntype AuthSelectorHandlerSpec struct {\n\tPublicPaths        []string\n\tMainHandler        http.Handler\n\tDefaultAuthHandler http.Handler\n}\n```\n\n```go\ntype HandlerSelection struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype OpenAPIMiddleware struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewOpenAPIMiddleWare(rawSpec []byte) (*OpenAPIMiddleware, error)\n```\n\n```go\nfunc (m *OpenAPIMiddleware) Middleware(next http.Handler) http.Handler\n```\nMiddleware function, which will be called for each request\n\n```go\ntype SelectFunc = func(r *http.Request) bool\n```\n\n```go\ntype Server interface {\n\tStart()\n\tStop() error\n\tListen() (net.Listener, error)\n\tServe(net.Listener)\n}\n```\n\n```go\nfunc NewAPIServer(env environment.EnvImpl) Server\n```\n\n","path":"github.com/Stackdome/stackdome/cmd/server","name":"server","synopsis":"","isRedistributable":true}
