hooks

package
v1.380.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

func New

func New(cfg *Config) (*hooks.Webhook, error)

New hook 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 added in v1.193.0

func (c *Config) GetSecret() (string, error)

GetCert for hooks.

type Generator added in v1.367.0

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

Generator for hooks.

func NewGenerator added in v1.367.0

func NewGenerator(gen *rand.Generator) *Generator

NewGenerator for hooks.

func (*Generator) Generate added in v1.367.0

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