hooks

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigHandler

func ConfigHandler(o *Options)

ConfigHandler configures a given handler with webhook endpoints

Types

type Options

type Options struct {

	//APIRouter is assumed to be a subrouter with the API prefix path (i.e. 'api/v2')
	APIRouter *mux.Router

	//RootRouter is the main Tr1d1um router
	RootRouter *mux.Router //Router with empty path prefix

	Authenticate *alice.Chain

	SoAProvider string

	M xmetrics.Registry

	Host         string
	HooksFactory *webhook.Factory
	Log          kitlog.Logger
	Scheme       string
}

Options describes the parameters needed to configure the webhook endpoints

Jump to

Keyboard shortcuts

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