Versions in this module Expand all Collapse all v8 v8.0.2 Oct 4, 2024 v8.0.2-rc0 Sep 27, 2024 v8.0.1 Mar 21, 2024 v8.0.1-rc1 Mar 21, 2024 v8.0.1-rc0 Mar 21, 2024 v8.0.0 Jan 30, 2024 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) v8.0.0-rc6 Jan 24, 2024 v8.0.0-rc5 Jan 17, 2024 v8.0.0-rc4 Oct 23, 2023 v8.0.0-rc3 Oct 3, 2023 v8.0.0-rc2 Sep 25, 2023 v8.0.0-rc1 Sep 22, 2023 Other modules containing this package github.com/apache/trafficcontrol