runner

package
v0.0.0-...-3d20527 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHookListenerQueue

func CreateHookListenerQueue() types.HookListenerQueue

func SetHookListenerQueueProvider

func SetHookListenerQueueProvider(fn types.HookListenerQueueProvider)

Types

type HandledEventResult

type HandledEventResult struct {
	AppliedRules []string `json:"applied_rules,omitempty"`
	Message      string   `json:"message,omitempty"`
}

type Runner

type Runner interface {
	HandleEvent(r *http.Request) *HandledEventResult
}

func New

func New(configPaths ...string) (Runner, error)

func NewHookListener

func NewHookListener(clientConfiguration string) (Runner, error)

func NewHookListenerWithClientConfig

func NewHookListenerWithClientConfig(config client.ClientConfig) Runner

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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