server

package
v0.0.7-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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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