api

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(cfg config.ConfigInstance) http.Handler

Types

type ServeMux

type ServeMux struct {
	*http.ServeMux
	// contains filtered or unexported fields
}

func (ServeMux) HandleFunc

func (mux ServeMux) HandleFunc(methods, endpoint string, h any, requireAuth ...bool)

type WithCfgHandler added in v0.10.0

type WithCfgHandler = func(config.ConfigInstance, http.ResponseWriter, *http.Request)

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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