notifier

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientIFace

type ClientIFace interface {
	Send(msg string) error
}

ClientIFace is an interface to a client that sends messages (twitter, email, twilio)

type MissedOpportunityNotifier

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

MissedOpportunityNotifier -

func (*MissedOpportunityNotifier) Start

func (m *MissedOpportunityNotifier) Start()

type MissedOpportunityNotifierInput

type MissedOpportunityNotifierInput struct {
	Notifiers []ClientIFace
	RPCClient rpc.IFace
	Baker     string
}

MissedOpportunityNotifierInput -

type MockClient

type MockClient struct {
	WantSendErr bool
}

MockClient mocks twilio.IFace

func (*MockClient) Send

func (m *MockClient) Send(msg string) error

Send satisfies twilio.IFace

type Notifier

type Notifier interface {
	Start()
}

Notifier -

func NewMissedOpportunityNotifier

func NewMissedOpportunityNotifier(input MissedOpportunityNotifierInput) Notifier

NewMissedOpportunityNotifier -

A notification process that watches for missed endorsement and baking opportunities and notifies you via SMS (twilio) or Email.

type PayoutNotifier

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

PayoutNotifier -

func NewPayoutNotifier

func NewPayoutNotifier(input PayoutNotifierInput) PayoutNotifier

NewPayoutNotifier -

A notification process that will automatically tweet, email, or text payout notifications.

func (*PayoutNotifier) Notify

func (p *PayoutNotifier) Notify(msg string) error

Notify -

type PayoutNotifierInput

type PayoutNotifierInput struct {
	Notifiers []ClientIFace
}

PayoutNotifierInput -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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