Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApiServer ¶
func NewApiServer(conf *conf.Conf, compileTarget utils.MultiCompilable, registry *prometheus.Registry) *http.Server
NewApiServer creates and runs a http server containing all the API endpoints for the software
`/compile` - reloads all domains, routes and redirects
func SetupTargetApis ¶
Types ¶
type AuthCallback ¶
type AuthCallback func(rw http.ResponseWriter, req *http.Request, params httprouter.Params, b AuthClaims)
type AuthClaims ¶
type AuthClaims mjwt.BaseTypeClaims[auth.AccessTokenClaims]
type AuthWithJsonCallback ¶
type AuthWithJsonCallback[T any] func(rw http.ResponseWriter, req *http.Request, params httprouter.Params, b AuthClaims, t T)
Click to show internal directories.
Click to hide internal directories.