MCPcopy Create free account
hub / github.com/daodst/chat / BasicAuth

Struct BasicAuth

internal/httputil/httpapi.go:40–43  ·  view source on GitHub ↗

BasicAuth is used for authorization on /metrics handlers

Source from the content-addressed store, hash-verified

38
39// BasicAuth is used for authorization on /metrics handlers
40type BasicAuth struct {
41 Username string `yaml:"username"`
42 Password string `yaml:"password"`
43}
44
45// MakeAuthAPI turns a util.JSONRequestHandler function into an http.Handler which authenticates the request.
46func MakeAuthAPI(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected