slackutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadOperations

type ReadOperations interface {
	MessageHistory(channel string, startTime time.Time) ([]string, error)
}

ReadOperations defines the read operations that can be done to Slack

func NewReadClient

func NewReadClient(userName, tokenPath string) (ReadOperations, error)

NewReadClient reads token file and stores it for later authentication

type WriteOperations

type WriteOperations interface {
	Post(text, channel string) error
}

WriteOperations defines the write operations that can be done to Slack

func NewWriteClient

func NewWriteClient(userName, tokenPath string) (WriteOperations, error)

NewWriteClient reads token file and stores it for later authentication

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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