Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewServer = utilhttp.DeclareServer( func(_ Args) string { return "healthz" }, defaultHttpPort, defaultHttpsPort, func(_ Args, _ *flag.FlagSet) Options { return Options{} }, func(_ Args, requests *component.DepRequests) Deps { return Deps{ Observer: o11y.Request[observer.Observer](requests), } }, func(args Args, _ Options, _ Deps, mux *http.ServeMux) (*State, error) { mux.Handle("/readyz", http.StripPrefix("/readyz", args.Handler)) mux.Handle("/readyz/", http.StripPrefix("/readyz/", args.Handler)) return &State{}, nil }, component.Lifecycle[Args, Options, Deps, State]{ Start: nil, Join: nil, HealthChecks: nil, }, func(_ Args, _ Options, deps Deps, _ *State) *Api { return &Api{ observer: deps.Observer.Get(), } }, )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.