Documentation ¶
Overview ¶
Package line provides sarah.Alerter implementation for LINE Notify.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Endpoint = "https://notify-api.line.me/api/notify"
Endpoint defines the API endpoint to be used for notification.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an API client for LINE notification.
type Config ¶
type Config struct { // Token declares the API token to use LINE Notify. Token string `json:"token" yaml:"token"` // RequestTimeout declares the timeout duration of each API call. RequestTimeout time.Duration `json:"timeout" yaml:"timeout"` }
Config contains some configuration variables.
func NewConfig ¶
func NewConfig() *Config
NewConfig creates and returns a new Config instance with default settings. Token is empty at this point as there can not be a default value. Use json.Unmarshal, yaml.Unmarshal, or manual manipulation to populate the blank value or override those default values.
Click to show internal directories.
Click to hide internal directories.