Documentation ¶
Index ¶
- func GenContactMap() (contactMap map[string]Contactor)
- func GenPlatMap(repons PlatformList, filterList *hashset.Set) (ipMapper *hashmap.Map, platList *hashset.Set, popIds []int)
- func GetContactIfo() (contmap map[string]Contactor)
- func GetIPMap() (hostmap map[string]Hosts)
- func GetPlatfromContactInfo(platList *hashset.Set) (contactorMap map[string][]Contactor, err error)
- func IdcMapping(popIDs []int) (idcmapping map[int]string, err error)
- type Contactor
- type Contacts
- type Hosts
- type IDC
- type IPInfo
- type Platform
- type PlatformList
- type Platforms
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenContactMap ¶
func GenPlatMap ¶
func GenPlatMap(repons PlatformList, filterList *hashset.Set) (ipMapper *hashmap.Map, platList *hashset.Set, popIds []int)
generate platform mapping of triggered alarm cases
func GetContactIfo ¶
func GetPlatfromContactInfo ¶
Types ¶
type Contactor ¶
type Contactor struct { Phone string `json:"phone"` Email string `json:"email"` Name string `json:"name"` }
func QueryContact ¶
type Contacts ¶
type Contacts struct { Id int `orm:"column(id)"` Name string `orm:"column(name)"` Phone string `orm:"column(phone)"` Email string `orm:"column(email)"` Updated time.Time `orm:"column(updated)"` }
orm model
type Hosts ¶
type Hosts struct { Id int `orm:"column(id)"` Hostname string `orm:"column(hostname)"` Exist int `orm:"column(exist)"` Activate int `orm:"column(activate)"` Platform string `orm:"column(platform)"` Idc string `orm:"column(idc)"` Ip string `orm:"column(ip)"` Isp string `orm:"column(isp)"` Province string `orm:"column(province)"` City string `orm:"column(city)"` Status string `orm:"column(status)"` Updated time.Time `orm:"column(updated)"` }
orm model
type IDC ¶
type IDC struct { Id int `orm:"column(id)"` PopId int `orm:"column(pop_id)"` Name string `orm:"column(name)"` Count int `orm:"column(count)"` Area string `orm:"column(area)"` Province string `orm:"column(province)"` City string `orm:"column(city)"` UpdatAt time.Time `orm:"column(update_at)"` }
orm model
type PlatformList ¶
type PlatformList struct { Status int `json:"status"` Info string `json:"info"` Result []Platform `json:"result"` }
func GetPlatformASJSON ¶
func GetPlatformASJSON() (repons PlatformList, err error)
Click to show internal directories.
Click to hide internal directories.