Documentation ¶
Index ¶
- Variables
- func CurlUic(team string) []*uic.User
- func GetAmsTag(endpoint string) string
- func GetEndpointTplGroups(tplId int, endpoint string) (grps string)
- func GetUsers(teams string) map[string]*uic.User
- func HttpCurlUic(team string) []*uic.User
- func HttpGetEndpointTplGroups(tplId int, endpoint string) (grps string)
- func HttpGetTag(endpoint string) string
- func HttpLink(content string) (string, error)
- func LinkToSMS(content string) (string, error)
- func ParseTeams(teams string) ([]string, []string)
- func ParseTeamsForLarkGroup(teams, LarkGroupId string) ([]string, []string)
- func UsersOf(team string) []*uic.User
- type APIGetTeamOutput
- type Action
- type ActionCache
- type AmsOwner
- type HostGroups
- type Owners
- type UsersCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ActionsCache = cache.New(g.CacheTTl, g.CacheTTl) EndTplGroupCache = cache.New(g.CacheTTl, g.CacheTTl) EndTagsCache = cache.New(g.CacheTTl, g.CacheTTl) OtherCache = cache.New(g.CacheTTl, g.CacheTTl) )
var Actions = &ActionCache{M: make(map[int]*Action)}
View Source
var UserCache = cache.New(g.CacheTTl, g.CacheTTl)
cache : key team name ,value []*users
View Source
var Users = &UsersCache{M: make(map[string][]*uic.User)}
Functions ¶
func GetEndpointTplGroups ¶
func HttpCurlUic ¶
func HttpGetTag ¶
func ParseTeamsForLarkGroup ¶
return phones, emails, IM
Types ¶
type APIGetTeamOutput ¶
type Action ¶
type Action struct { Id int `json:"id"` Uic string `json:"uic"` LarkGroupId string `json:"lark_group_id"` Url string `json:"url"` Callback int `json:"callback"` BeforeCallbackSms int `json:"before_callback_sms"` BeforeCallbackMail int `json:"before_callback_mail"` AfterCallbackSms int `json:"after_callback_sms"` AfterCallbackMail int `json:"after_callback_mail"` }
TODO:use api/app/model/falcon_portal/action.go
func CurlAction ¶
func HttpGetAction ¶
type HostGroups ¶
Click to show internal directories.
Click to hide internal directories.