notify

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Push

func Push(msg Message)

把消息推入队列

Types

type Mail

type Mail struct {
}

func (*Mail) Send

func (mail *Mail) Send(msg Message)

type Message

type Message map[string]interface{}

type Notifiable

type Notifiable interface {
	Send(msg Message)
}

type Slack

type Slack struct{}

func (*Slack) Send

func (slack *Slack) Send(msg Message)

type WebHook

type WebHook struct{}

func (*WebHook) Send

func (webHook *WebHook) Send(msg Message)

Jump to

Keyboard shortcuts

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