notify

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 0 Imported by: 4

README

Go Report Card Build Status codecov Slack Twitter

go-notify

Send notification via Email, SMS, Chat etc.

Supported Email Providers
  • Mailgun
  • SMTP
Supported SMS Services
  • Twilio
  • plivo.com
Supported Chat Services
  • Slack
  • Telegram
  • Discord
  • Mattermost
Supported Push Notification Services
  • Pushover.net
Webhook
  • Post via HTTP
Debug
  • Log to StdOut

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByChat

type ByChat interface {
	UID() string
	WithBody(body string) ByChat
	To(to string, cc ...string) ByChat
	Send() error
}

type ByEmail

type ByEmail interface {
	UID() string
	From(from string) ByEmail
	WithSubject(subject string) ByEmail
	WithBody(body string) ByEmail
	WithTag(tag string) ByEmail
	WithNoTracking() ByEmail
	To(to string, cc ...string) ByEmail
	Send() error
	SendHtml() error
}

type ByPush

type ByPush interface {
	UID() string
	WithBody(body string) ByPush
	To(to ...string) ByPush
	Send() error
}

type BySMS

type BySMS interface {
	UID() string
	From(from string) BySMS
	WithBody(body string) BySMS
	To(to string, cc ...string) BySMS
	Send() error
}

Directories

Path Synopsis
log
sms

Jump to

Keyboard shortcuts

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