routers

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

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 NewAdminRouter

func NewAdminRouter(conf config.AdminConfig) http.Handler

NewAdminRouter returns HTTP admin router

func NewDefaultAPIRouter

func NewDefaultAPIRouter(optlyCache optimizely.Cache, conf config.APIConfig) http.Handler

NewDefaultAPIRouter 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.

Jump to

Keyboard shortcuts

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