notify

package
v0.0.0-...-bfb5f8b Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Notifiers = make(map[string]data.Notifier)

Functions

func ConfigureNotifications

func ConfigureNotifications(notifications map[string]interface{})

func Initialize

func Initialize()

func NotifyNewTable

func NotifyNewTable(table *data.Table, player *data.Player)

Types

type NotifyHttp

type NotifyHttp struct {
	Url     string `json:"url"`
	Message string `json:"message"`
}

func NewNotifyHttp

func NewNotifyHttp(conf map[string]interface{}) (NotifyHttp, error)

func (NotifyHttp) NotifyNewTable

func (nh NotifyHttp) NotifyNewTable(table *data.Table, author *data.Player, players *[]data.Player)

type NotifySmtp

type NotifySmtp struct {
	Host  string
	Email string
}

func NewNotifySmtp

func NewNotifySmtp(conf map[string]interface{}) (NotifySmtp, error)

func (NotifySmtp) NotifyNewTable

func (ns NotifySmtp) NotifyNewTable(table *data.Table, author *data.Player, players *[]data.Player)

Jump to

Keyboard shortcuts

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