Documentation ¶
Index ¶
Constants ¶
View Source
const BASE_API = "https://slack.com/api/rtm.start"
View Source
const WS_ORIGIN = "https://api.slack.com/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseEvent ¶
type BaseEvent struct { Id uint64 `json:"id"` Type string `json:"type"` Channel string `json:"channel"` Text string `json:"text"` }
func (BaseEvent) ConcreteEvent ¶
type MessageEvent ¶
type MessageEvent struct {
*BaseEvent
}
type RtmStartApi ¶
type RtmStartApi struct {
Token string
}
func (*RtmStartApi) WssUrl ¶
func (api *RtmStartApi) WssUrl() (url string, err error)
Click to show internal directories.
Click to hide internal directories.