Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
Token string
// contains filtered or unexported fields
}
func (API) RTMConnect ¶ added in v1.0.0
func (a API) RTMConnect() (r RTMConnectInfo, err error)
type BasicResponse ¶
func (*BasicResponse) Error ¶
func (r *BasicResponse) Error() error
func (*BasicResponse) Ok ¶
func (r *BasicResponse) Ok() bool
type Channel ¶
type Channel struct {
ID string `json:"id"`
Name string `json:"name"`
IsChannel string `json:"is_channel"`
IsGroup string `json:"is_group"`
Created int `json:"created"`
Creator string `json:"creator"`
IsArchived bool `json:"is_archived"`
IsGeneral bool `json:"is_general"`
Members []string `json:"members"`
Topic Topic `json:"topic"`
Purpose Topic `json:"purpose"`
IsMember bool `json:"is_member"`
LastRead string `json:"last_read"`
UnreadCount int `json:"unread_count"`
UnreadCountDisplay int `json:"unread_count_display"`
Latest map[string]interface{} `json:"latest"`
}
type RTMConnectInfo ¶ added in v1.0.0
type RTMConnectInfo struct {
BasicResponse
URL string `json:"url"`
}
type SlackError ¶
type SlackError struct {
ErrorString string
}
func (SlackError) Error ¶
func (err SlackError) Error() string
type User ¶
type User struct {
ID string `json:"id"`
Name string `json:"name"`
Deleted bool `json"deleted"`
Color string `json:"color"`
Profile UserProfile `json:"profile"`
IsAdmin bool `json:"is_admin"`
IsOwner bool `json:"is_owner"`
IsPrimaryOwner bool `json:"is_primary_owner"`
IsRestricted bool `json:"is_restricted"`
IsUltraRestricted bool `json:"is_ultra_restricted"`
Has2FA bool `json:"has_2fa"`
HasFiles bool `json:"has_files"`
}
type UserInfo ¶
type UserInfo struct {
ID string `json:"id"`
Name string `json:"name"`
Delete bool `json:"delete"`
Color string `json:"color"`
Profile struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
RealName string `json:"real_name"`
DisplayName string `json:"display_name"`
Email string `json:"email"`
Skype string `json:"skype"`
Phone string `json:"phone"`
Image24 string `json:"image_24"`
Image32 string `json:"image_32"`
Image48 string `json:"image_48"`
Image72 string `json:"image_72"`
Image192 string `json:"image_192"`
} `json:"profile"`
IsAdmin bool
IsOwner bool
Has2FA bool
HasFiles bool
}
type UserProfile ¶
type UserProfile struct {
DisplayName string `json:"display_name"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
RealName string `json:"real_name"`
Email string `json:"email"`
Skype string `json:"skype"`
Phone string `json:"phone"`
Image24 string `json:"image_24"`
Image32 string `json:"image_32"`
Image48 string `json:"image_48"`
Image72 string `json:"image_72"`
Image192 string `json:"image_192"`
}
Click to show internal directories.
Click to hide internal directories.