Documentation ¶
Overview ¶
Package routers //
Package routers //
Package routers //
Package routers //
Index ¶
- func NewAPIRouter(opt *APIOptions) *chi.Mux
- func NewAPIV1Router(opt *APIV1Options) *chi.Mux
- func NewAdminRouter(conf config.AgentConfig) http.Handler
- func NewDefaultAPIRouter(optlyCache optimizely.Cache, conf config.APIConfig, ...) http.Handler
- func NewDefaultAPIV1Router(optlyCache optimizely.Cache, conf config.APIConfig, ...) http.Handler
- func NewWebhookRouter(optlyCache optimizely.Cache, conf config.WebhookConfig) *chi.Mux
- type APIOptions
- type APIV1Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIRouter ¶
func NewAPIRouter(opt *APIOptions) *chi.Mux
NewAPIRouter returns HTTP API router backed by an optimizely.Cache implementation
func NewAPIV1Router ¶ added in v0.12.0
func NewAPIV1Router(opt *APIV1Options) *chi.Mux
NewAPIV1Router returns HTTP API router backed by an optimizely.Cache implementation
func NewAdminRouter ¶
func NewAdminRouter(conf config.AgentConfig) http.Handler
NewAdminRouter returns HTTP admin router
func NewDefaultAPIRouter ¶
func NewDefaultAPIRouter(optlyCache optimizely.Cache, conf config.APIConfig, metricsRegistry *metrics.Registry) http.Handler
NewDefaultAPIRouter creates a new router with the default backing optimizely.Cache
func NewDefaultAPIV1Router ¶ added in v0.12.0
func NewDefaultAPIV1Router(optlyCache optimizely.Cache, conf config.APIConfig, metricsRegistry *metrics.Registry) http.Handler
NewDefaultAPIV1Router creates a new router with the default backing optimizely.Cache
func NewWebhookRouter ¶
func NewWebhookRouter(optlyCache optimizely.Cache, conf config.WebhookConfig) *chi.Mux
NewWebhookRouter returns HTTP API router
Types ¶
type APIOptions ¶
type APIOptions struct {
// contains filtered or unexported fields
}
APIOptions defines the configuration parameters for Router.
type APIV1Options ¶ added in v0.12.0
type APIV1Options struct {
// contains filtered or unexported fields
}
APIV1Options defines the configuration parameters for Router.
Click to show internal directories.
Click to hide internal directories.