notify17

package
v0.1.2-0...-b266a8c Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Notify17APIURL = "https://hook.notify17.net/api/raw"
	UID            = "notify17"
)

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 {
	Token   string `envconfig:"TOKEN" required:"true"`
	Message string `envconfig:"MESSAGE"`

	// Optional params
	Title string `envconfig:"TITLE"`
}

Options allows full configuration of the message sent to the Notify17 API

Jump to

Keyboard shortcuts

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