-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.go
45 lines (41 loc) · 1.05 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package slack
type Config struct {
Ok bool
Error string
Self User
Channels []Channel
Url string
Users []User
}
type User struct {
Id string
Name string
RealName string `json:"real_name"`
Deleted bool
IsAdmin bool `json:"is_admin"`
IsOwner bool `json:"is_owner"`
IsPrimaryOwner bool `json:"is_primary_owner"`
IsBot bool `json:"is_bot"`
Profile UserProfile
}
type Channel struct {
Id string
Name string
IsChannel bool `json:"is_channel"`
IsIm bool `json:"is_im"`
User string
Created int
Creator string
IsArchived bool `json:"is_archived"`
IsGeneral bool `json:"is_general"`
IsMember bool `json:"is_member"`
Members []string
}
type UserProfile struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
RealName string `json:"real_name"`
Title string
RealNameNormalized string `json:"real_name_normalized"`
Email string `json:"email"`
}