Versions in this module Expand all Collapse all v0 v0.2.0 Aug 1, 2023 v0.1.0 Jul 14, 2023 Changes in this version + const ErrMsgUnauthorized + type API struct + func New(cfg config.API, srv *server.Server) (*API, error) + func (a *API) RegisterRoute(method string, p string, handler http.HandlerFunc) + func (a *API) Run() + func (a *API) ServeHTTP(w http.ResponseWriter, r *http.Request) + type DebugHandler struct + func (g DebugHandler) Append(router *mux.Router) + type IPFilter struct + func NewIPFilter(whitelist string) (*IPFilter, error) + func (f *IPFilter) IsAllowed(ip netip.Addr) bool + func (f *IPFilter) Wrap(next http.HandlerFunc) http.HandlerFunc + type VersionHandler struct + func (v VersionHandler) Append(router *mux.Router)