Documentation ¶
Index ¶
- func GetAPI(url string, queries map[string]string, header LoginData, target interface{}) error
- func PostAPI(url string, jsonStr []byte, header LoginData, target interface{}) error
- type Attachment
- type Channel
- type ChannelsInfoResult
- type ChannelsMsgResult
- type ChatBot
- type DeleteMsgResult
- type LoginData
- type LoginResult
- type Message
- type PostMsgResult
- type SearchItem
- type SearchResult
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attachment ¶ added in v0.5.0
type Channel ¶ added in v0.5.0
type Channel struct { Id string `json:"_id"` Name string `json:"name"` Msgs int `json:"msgs"` UsersCount int `json:"usersCount"` }
See: https://docs.rocket.chat/api/rest-api/methods/channels/info
type ChannelsInfoResult ¶ added in v0.5.0
type ChannelsMsgResult ¶
type ChannelsMsgResult struct { Success bool `json:"success"` Messages []Message `json:"messages"` Total int `json:"total"` }
See: https://rocket.chat/docs/developer-guides/rest-api/channels/messages/
type ChatBot ¶
type ChatBot struct {
// contains filtered or unexported fields
}
type DeleteMsgResult ¶ added in v0.5.0
See: https://docs.rocket.chat/api/rest-api/methods/chat/delete
type SearchResult ¶
type SearchResult struct {
Items []SearchItem `json:"items"`
}
Click to show internal directories.
Click to hide internal directories.