webhook

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const UID = "webhook"

Variables

This section is empty.

Functions

func Default

func Default() (*client, error)

func Load

func Load(loader envconfig.LoaderFunc) (*client, error)

func New

func New(opt Options) *client

Types

type Options

type Options struct {
	URL                string   `envconfig:"URL" required:"true"`
	To                 []string `envconfig:"TO"`
	Username           string   `envconfig:"USERNAME"`
	Password           string   `envconfig:"PASSWORD"`
	Token              string   `envconfig:"TOKEN"`
	CACertData         string   `envconfig:"CA_CERT_DATA"`
	ClientCertData     string   `envconfig:"CLIENT_CERT_DATA"`
	ClientKeyData      string   `envconfig:"CLIENT_KEY_DATA"`
	InsecureSkipVerify bool     `envconfig:"INSECURE_SKIP_VERIFY"`
}

Jump to

Keyboard shortcuts

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