The highest tagged major version is
v4 .
Discover Packages
github.com/oklahomer/go-sarah/v3
alerter
line
package
Version:
v3.0.0
Opens a new window with list of versions in this module.
Published: Aug 15, 2020
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package line provides sarah.Alerter implementation for LINE Notify.
View Source
var Endpoint = "https://notify-api.line.me/api/notify"
Endpoint defines the API endpoint to be used for notification.
Client is an API client for LINE notification.
New creates and returns new Client instant.
Alert sends alert message to notify critical state of caller.
type Config struct {
Token string `json:"token" yaml:"token"`
RequestTimeout time .Duration `json:"timeout" yaml:"timeout"`
}
Config contains some configuration variables for gitter Adapter.
NewConfig returns initialized Config struct with default settings.
Token is empty at this point. Token can be set by feeding this instance to json.Unmarshal/yaml.Unmarshal,
or direct assignment.
Option defines a function signature that New()'s functional options must satisfy.
WithHTTPClient creates an Option that replaces http.DefaultClient with preferred one.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.