api

package
v0.0.0-...-ecb8d70 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(options ...HandlerOption) (*Handler, error)

func (*Handler) ServeHTTP

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

type HandlerOption

type HandlerOption func(*Handler)

func RedirectRootTo

func RedirectRootTo(url string) HandlerOption

func RegisterEndpoint

func RegisterEndpoint(pattern string, handler http.Handler) HandlerOption

func RegisterMiddleware

func RegisterMiddleware(middleware func(http.Handler) http.Handler) HandlerOption

Jump to

Keyboard shortcuts

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