hooks

package
v1.294.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(New),
)

Module for fx.

Functions

func Generate added in v1.192.0

func Generate() (string, error)

Generate for hooks.

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.

Jump to

Keyboard shortcuts

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