hook

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHookManager

func NewHookManager() *hookManager

Types

type HookOperator

type HookOperator interface {
	Init(config string) error
	PreHook(ctx context.Context, uri string, payload []byte) ([]byte, error)
	PostHook(ctx context.Context, uri string, payload []byte) (bool, error)
}

type HookReverseHandler

type HookReverseHandler interface {
	Handle(ctx context.Context, uri string, payload []byte) (*api.PatchData, error)
	AllowFailure(uri string) bool
}

Jump to

Keyboard shortcuts

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