slack

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 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(token string) *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{})
}

Jump to

Keyboard shortcuts

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