fakeslackutil

package
v0.0.0-...-87426b5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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

func (c *FakeSlackClient) MessageHistory(channel string, startTime time.Time) ([]string, error)

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

Jump to

Keyboard shortcuts

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