hooks

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RotateFlag defines wether we should rotate the secret or not.
	RotateFlag = flags.Bool()

	// VerifyFlag defines wether we should verify the hook or not.
	VerifyFlag = flags.Bool()
)
View Source
var Module = fx.Options(
	hooks.Module,
	fx.Invoke(Run),
)

Module for fx.

Functions

func Run

func Run(params RunParams)

Run for hooks.

Types

type RunParams

type RunParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Logger    *zap.Logger
	Webhook   *hooks.Webhook
}

RunParams for hooks.

Jump to

Keyboard shortcuts

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