hooks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

type Hook struct {
	Type string      `json:"type"`
	Spec interface{} `json:"spec"`
}

type HookManager

type HookManager struct {
	// contains filtered or unexported fields
}

func NewHooksManager

func NewHooksManager() HookManager

func (HookManager) Get

func (h HookManager) Get(typ string) (IHook, error)

func (HookManager) Register

func (h HookManager) Register(typ string, hook IHook) error

type IHook

type IHook interface {
	WithSpec(spec interface{}, params map[string]interface{}) (IHook, error)
	Execute() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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