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
Expand ▾ Collapse ▴

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
}

Source Files