Documentation ¶
Index ¶
Constants ¶
View Source
const ( LEVEL_NOTHING = 0 LEVEL_ERRORS = 1 LEVEL_DEFAULT = 2 LEVEL_VERBOSE = 3 )
Variables ¶
This section is empty.
Functions ¶
func CanSend ¶
func CanSend(level int64, notification Notification) bool
func NewPushover ¶
func NewTelegram ¶
func Tweet ¶
func Tweet(keys *TwitterKeys, status string)
Types ¶
type Notification ¶
type Notification int
const ( ERROR Notification = iota INFO FILLED OPENED CANCELLED )
type Pushover ¶
type Pushover struct {
// contains filtered or unexported fields
}
func (*Pushover) PromptForKeys ¶
type Telegram ¶
type Telegram struct {
// contains filtered or unexported fields
}
func (*Telegram) PromptForKeys ¶
type TwitterKeys ¶
type TwitterKeys struct { ConsumerKey string ConsumerSecret string AccessToken string AccessSecret string }
func TwitterPromptForKeys ¶
func TwitterPromptForKeys(interactive bool) (keys *TwitterKeys, err error)
Click to show internal directories.
Click to hide internal directories.