notification

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Fire() error
	SetMessager(message Messager)
	Messager
}

type Message

type Message struct {
	// contains filtered or unexported fields
}

func (*Message) Bcc

func (m *Message) Bcc() []string

func (*Message) Body

func (m *Message) Body() string

func (*Message) Cc

func (m *Message) Cc() []string

func (*Message) From

func (m *Message) From() string

func (*Message) SetBcc

func (m *Message) SetBcc(bcc []string)

func (*Message) SetBody

func (m *Message) SetBody(body string)

func (*Message) SetCc

func (m *Message) SetCc(cc []string)

func (*Message) SetFrom

func (m *Message) SetFrom(from string)

func (*Message) SetSubject

func (m *Message) SetSubject(subject string)

func (*Message) SetTo

func (m *Message) SetTo(to []string)

func (*Message) Subject

func (m *Message) Subject() string

func (*Message) To

func (m *Message) To() []string

type Messager

type Messager interface {
	SetFrom(from string)
	SetTo(to []string)
	SetBcc(bcc []string)
	SetCc(cc []string)
	SetSubject(subject string)
	SetBody(body string)

	From() string
	To() []string
	Bcc() []string
	Cc() []string
	Subject() string
	Body() string
}

type Notifier

type Notifier interface {
	Prepare(prepareFunc func(m Messager) Messager) Driver
}

type Notify

type Notify struct {
	// contains filtered or unexported fields
}

func (*Notify) Prepare

func (n *Notify) Prepare(prepareFunc func(m Messager) Messager) Driver

func (*Notify) SetDriver

func (n *Notify) SetDriver(driver Driver)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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