slack

package
v0.0.0-...-97238d6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client allows you to provide connection to Slack API Server It contains a token that allows to authenticate connection to post and work with channels in the domain

func NewClient

func NewClient(tokenGenerator func() []byte) *Client

NewClient creates a slack client with an API token.

func NewFakeClient

func NewFakeClient() *Client

NewFakeClient returns a client that takes no actions.

func (*Client) WriteMessage

func (sl *Client) WriteMessage(text, channel string) error

WriteMessage adds text to channel

type Logger

type Logger interface {
	Debugf(s string, v ...interface{})
}

Logger provides an interface to log debug messages.

Jump to

Keyboard shortcuts

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