Documentation ¶
Index ¶
- func NewClient(authToken, secretChannel, statusChennel, commandChannel string) (err error)
- func PostAuth(uri string, data interface{}, out interface{}) (err error)
- func PostFormAuth(uri string, file slackFile, out interface{}) (err error)
- func SendBase(message string) (id string, err error)
- func SendCommand(endpoint, body string) (err error)
- func SendFollowup(message, id string) (idOut string, err error)
- func SendFollowupWFile(name, message, id string, file []byte) (idOut string, err error)
- func SendStatus(message string)
- type BotProfile
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostFormAuth ¶
func SendCommand ¶
func SendFollowup ¶
func SendFollowupWFile ¶
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"` }
Click to show internal directories.
Click to hide internal directories.