hooks

package
v2.100.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func IsEnabled

func IsEnabled(cfg *Config) bool

IsEnabled for hooks.

func NewHook added in v2.73.0

func NewHook(fs *os.FS, cfg *Config) (*hooks.Webhook, error)

NewHook from config.

Types

type Config

type Config struct {
	Secret string `yaml:"secret,omitempty" json:"secret,omitempty" toml:"secret,omitempty"`
}

Config for hooks.

func (*Config) GetSecret

func (c *Config) GetSecret(fs *os.FS) ([]byte, error)

GetCert for hooks.

type Generator

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

Generator for hooks.

func NewGenerator

func NewGenerator(gen *rand.Generator) *Generator

NewGenerator for hooks.

func (*Generator) Generate

func (g *Generator) Generate() (string, error)

Generate for hooks.

Jump to

Keyboard shortcuts

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