recipient

package
v0.0.0-...-f546a14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputType

type OutputType int

OutputType type of recipient

const (
	OutputTypeNone  OutputType = 0
	OutputTypeMail  OutputType = 1
	OutputTypeXMPP  OutputType = 2
	OutputTypeSlack OutputType = 3
)

Output types

type Recipient

type Recipient struct {
	Type OutputType
	ID   string
	Args map[string]string
}

Recipient recipient for notifications

func Parse

func Parse(etcdClient *etcd.Client, value string) []*Recipient

Parse parses recipients from string

func ParseMail

func ParseMail(etcdClient *etcd.Client, value string) []*Recipient

ParseMail parse mail recipients (OutputTypeMail)

func ParseProject

func ParseProject(etcdClient *etcd.Client, value string) []*Recipient

ParseProject parse redmine project recipients

func ParseSlack

func ParseSlack(etcdClient *etcd.Client, value string) []*Recipient

ParseSlack parse mail recipients (OutputTypeSlack)

func ParseXMPP

func ParseXMPP(etcdClient *etcd.Client, value string) []*Recipient

ParseXMPP parse mail recipients (OutputTypeXMPP)

Jump to

Keyboard shortcuts

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