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
Click to show internal directories.
Click to hide internal directories.