Versions in this module Expand all Collapse all v1 v1.1.5 Oct 20, 2022retracted Changes in this version + const Authenticated + const NoAuth + const RoutePrefix + func CompileRoutes(routes map[string][]PathHandler) map[string][]CompiledRoute + func CreateRouteMap(rs []Route, disabledRouteIDs []int, perlHandler http.HandlerFunc, ...) (map[string][]PathHandler, map[api.Version]struct{}) + func DBStatsHandler(db *sqlx.DB) http.HandlerFunc + func GetBackendConfig() config.BackendConfig + func GetRouteIDMap(IDs []int) map[int]struct + func HandleBackendRoute(cfg *config.Config, route config.BackendRoute, w http.ResponseWriter, ...) (error, error, int) + func Handler(routes map[string][]CompiledRoute, versions map[api.Version]struct{}, ...) + func IsRequestAPIAndUnknownVersion(req *http.Request, versions map[api.Version]struct{}) bool + func MemoryStatsHandler() http.HandlerFunc + func RegisterRoutes(d ServerData) error + func SetBackendConfig(backendConfig config.BackendConfig) + type CompiledRoute struct + Handler http.HandlerFunc + ID int + Params []string + Regex *regexp.Regexp + type PathHandler struct + Handler http.HandlerFunc + ID int + Path string + type Route struct + Authenticated bool + Handler http.HandlerFunc + ID int + Method string + Middlewares []middleware.Middleware + Path string + RequiredPermissions []string + RequiredPrivLevel int + Version api.Version + func Routes(d ServerData) ([]Route, http.Handler, error) + func (r *Route) SetMiddleware(authBase middleware.AuthBase, requestTimeout time.Duration) + func (r Route) String() string + type ServerData struct + DB *sqlx.DB + Mux *http.ServeMux + Plugins plugin.Plugins + Profiling *bool + TrafficVault trafficvault.TrafficVault + type ThrottledHandler struct + Handler http.Handler + ReqChan chan struct{} + func CreateThrottledHandler(handler http.Handler, maxConcurrentCalls int) ThrottledHandler + func (m ThrottledHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) v1.0.2-rc1 Jul 18, 2022 Incompatible versions in this module v6.1.0+incompatible Feb 4, 2022 v6.0.2+incompatible Dec 22, 2021 v6.0.1+incompatible Nov 9, 2021 v6.0.0+incompatible Oct 21, 2021 v5.1.6+incompatible Jan 19, 2022 v5.1.4+incompatible Nov 5, 2021 v5.1.3+incompatible Oct 5, 2021 v5.1.2+incompatible May 6, 2021 v5.1.1+incompatible Mar 22, 2021 v5.1.0+incompatible Feb 26, 2021 v5.0.0+incompatible Jan 15, 2021