hooks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config map[string]json.RawMessage

func (Config) Get

func (config Config) Get(name string) (v configures.Config, err error)

type Hook

type Hook interface {
	Name() string
	Construct(options Options) (err error)
	Execute(ctx context.Context)
	Shutdown(ctx context.Context)
}

type Options

type Options struct {
	Log    logs.Logger
	Config configures.Config
}

Jump to

Keyboard shortcuts

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