slack

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

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

func PostAuth

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

func PostFormAuth

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

func SendBase

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

func SendCommand

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

func SendFollowup

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

func SendFollowupWFile

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

func SendStatus

func SendStatus(message string)

Types

type BotProfile

type BotProfile struct {
}

type Message

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