server

package
v0.0.5-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithRequestTimeoutMiddleware

func WithRequestTimeoutMiddleware(next http.Handler, timeoutDuration time.Duration) http.Handler

Types

type AuthSelectorHandler

type AuthSelectorHandler struct {
	// contains filtered or unexported fields
}

func NewAuthSelectHandler

func NewAuthSelectHandler(spec AuthSelectorHandlerSpec) *AuthSelectorHandler

func (*AuthSelectorHandler) Add

func (h *AuthSelectorHandler) Add(handler http.Handler, selectFunc SelectFunc)

func (*AuthSelectorHandler) ServeHTTP

func (h *AuthSelectorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type AuthSelectorHandlerSpec

type AuthSelectorHandlerSpec struct {
	PublicPaths        []string
	MainHandler        http.Handler
	DefaultAuthHandler http.Handler
}

type HandlerSelection

type HandlerSelection struct {
	// contains filtered or unexported fields
}

type OpenAPIMiddleware

type OpenAPIMiddleware struct {
	// contains filtered or unexported fields
}

func NewOpenAPIMiddleWare

func NewOpenAPIMiddleWare(rawSpec []byte) (*OpenAPIMiddleware, error)

func (*OpenAPIMiddleware) Middleware

func (m *OpenAPIMiddleware) Middleware(next http.Handler) http.Handler

Middleware function, which will be called for each request

type SelectFunc

type SelectFunc = func(r *http.Request) bool

type Server

type Server interface {
	Start()
	Stop() error
	Listen() (net.Listener, error)
	Serve(net.Listener)
}

func NewAPIServer

func NewAPIServer(env environment.EnvImpl) Server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL