slack

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(logger *log.Logger, config Config, options ...slackapi.Option) (*slackapi.Client, error)

func NewClientFromEnv

func NewClientFromEnv(logger *log.Logger, options ...slackapi.Option) (*slackapi.Client, error)

func NewClientFromEnvOrFile

func NewClientFromEnvOrFile(logger *log.Logger, path string, options ...slackapi.Option) (*slackapi.Client, error)

NewClientFromEnvOrFile is a convenience function for getting a slack client from the env if possible, and otherwise from the default location, and otherwise just staying quiet

func NewClientFromFile

func NewClientFromFile(logger *log.Logger, path string, options ...slackapi.Option) (*slackapi.Client, error)

func NewClientFromReader

func NewClientFromReader(logger *log.Logger, r io.Reader, options ...slackapi.Option) (*slackapi.Client, error)

Types

type Config

type Config struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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