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
Click to show internal directories.
Click to hide internal directories.