slack

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 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 HostsFlag

type HostsFlag map[string]string

HostsFlag is the flag type for slack hosts while initializing slack client

func (*HostsFlag) Set

func (h *HostsFlag) Set(value string) error

Set populates ProjectsFlag upon flag.Parse()

func (*HostsFlag) String

func (h *HostsFlag) String() string

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