slack

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient added in v0.5.9

func NewClient(authToken, secretChannel, statusChennel, commandChannel string) (err error)

func PostAuth added in v0.3.0

func PostAuth(uri string, data interface{}, out interface{}) (err error)

func PostFormAuth added in v0.6.7

func PostFormAuth(uri string, file slackFile, out interface{}) (err error)

func SendBase added in v0.3.0

func SendBase(message string) (id string, err error)

func SendCommand added in v0.5.5

func SendCommand(endpoint, body string) (err error)

func SendFollowup added in v0.3.0

func SendFollowup(message, id string) (idOut string, err error)

func SendFollowupWFile added in v0.6.7

func SendFollowupWFile(name, message, id string, file []byte) (idOut string, err error)

func SendStatus

func SendStatus(message string)

Types

type BotProfile added in v0.3.0

type BotProfile struct {
}

type Message added in v0.3.0

type Message struct {
	BotId      string     `json:"bot_id"`
	Type       string     `json:"type"`
	Text       string     `json:"text"`
	User       string     `json:"user"`
	TS         string     `json:"ts"`
	Team       string     `json:"team"`
	BotProfile BotProfile `json:"bot_profile"`
	Deleted    bool       `json:"deleted"`
	Updated    int        `json:"updated"`
	TeamId     string     `json:"team_id"`
}

Jump to

Keyboard shortcuts

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