123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- package model
- import (
- "container/list"
- )
- const (
-
- CodePlatDefaut = 1
-
- CodePlatDefautMsg = "common"
-
- CodeDelStatus = 2
-
- HostOffline = 0
- )
- type RPC struct {
- Proto string `json:"Proto"`
- Addr string `json:"Addr"`
- Group string `json:"Group"`
- Weight int `json:"Weight"`
- }
- type Code struct {
- Ver int64
- Code int
- Msg string
- }
- type Codes struct {
- Ver int64
- MD5 string
- Code map[int]string
- }
- type Version struct {
- List *list.List
- Map map[int64]*list.Element
- }
- type Databus struct {
- Topic string `json:"topic"`
- Group string `json:"group"`
- Cluster string `json:"cluster"`
- Business string `json:"business"`
- Operation int8 `json:"operation"`
- Leader string `json:"leader"`
- Phone string `json:"phone"`
- Email string `json:"email"`
- AlarmSwitch int8 `json:"alarmSwitch"`
- Users string `json:"users"`
- AlarmRule string `json:"alarmRule"`
- }
- type Databuss struct {
- Rules []*Databus `json:"rules"`
- MD5 string `json:"md5"`
- }
- type Limit struct {
- Burst int `json:"burst"`
- Rate float64 `json:"rate"`
- }
- type Limits struct {
- Apps map[string]*Limit `json:"apps"`
- MD5 string `json:"md5"`
- }
- type Host struct {
- Name string `json:"hostname"`
- State int `json:"state"`
- }
- type CodesLangs struct {
- Ver int64
- MD5 string
- Code map[int]map[string]string
- }
- type CodeLangs struct {
- Ver int64
- Code int
- Msg map[string]string
- }
|