routers

package
v0.12.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package routers //

Package routers //

Package routers //

Package routers //

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL