hooks

package
v1.202.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 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 New

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

New hook from config.

Types

type Config

type Config struct {
	Secret Secret `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 Secret added in v1.192.0

type Secret string

Secret for hooks.

func Generate added in v1.192.0

func Generate() (Secret, error)

Generate for hooks.

Jump to

Keyboard shortcuts

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