notify: gomodules.xyz/notify/webhook Index | Files

package webhook

import "gomodules.xyz/notify/webhook"

Index

Package Files

http.go

Constants

const UID = "webhook"

func Default Uses

func Default() (*client, error)

func Load Uses

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

func New Uses

func New(opt Options) *client

type Options Uses

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"`
}

Package webhook imports 5 packages (graph) and is imported by 2 packages. Updated 2019-04-29. Refresh now. Tools for package owners.