operators

package
v0.0.0-...-e438b56 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auther

type Auther interface {
	CanStartConversation(conversation repositories.Conversation) bool
}

Auther Interface helps figure out if a conversation can be started

type MockAuther

type MockAuther struct {
	CanStartConvo func(repositories.Conversation) bool
}

MockAuther operator for testing

func (*MockAuther) CanStartConversation

func (mock *MockAuther) CanStartConversation(conversation repositories.Conversation) bool

CanStartConversation calls function passed in from MockAuther for testing

type MockNotifier

type MockNotifier struct {
	SendNotification func(id string, message repositories.Message) error
}

MockNotifier operator for testing

func (*MockNotifier) Notify

func (mock *MockNotifier) Notify(id string, message repositories.Message) error

Notify using SendNotificaion in MockNotifier struct

type Notifier

type Notifier interface {
	Notify(id string, message repositories.Message) error
}

Notifier interface that notifies a user when they are not logged on

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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