Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeSlackClient ¶
type FakeSlackClient struct { History map[string][]messageEntry // contains filtered or unexported fields }
FakeSlackClient is a faked client, implements all functions of slackutil.ReadOperations and slackutil.WriteOperations
func NewFakeSlackClient ¶
func NewFakeSlackClient() *FakeSlackClient
NewFakeSlackClient creates a FakeSlackClient and initialize it's maps
func (*FakeSlackClient) MessageHistory ¶
MessageHistory returns the messages to the channel from the given startTime
func (*FakeSlackClient) Post ¶
func (c *FakeSlackClient) Post(text, channel string) error
Post sends the text as a message to the given channel
Click to show internal directories.
Click to hide internal directories.