http

package
v3.15.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2018 License: Apache-2.0, Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoRender

func AutoRender(w http.ResponseWriter, data interface{}, err error)

func InitDatabase

func InitDatabase() error

func RenderDataJson

func RenderDataJson(w http.ResponseWriter, data interface{})

func RenderJson

func RenderJson(w http.ResponseWriter, v interface{})

func RenderMsgJson

func RenderMsgJson(w http.ResponseWriter, msg string)

func Start

func Start()

func StdRender

func StdRender(w http.ResponseWriter, data interface{}, err error)

func SyncHostsAndContactsTable

func SyncHostsAndContactsTable()

Types

type City

type City struct {
	Id         int
	City       string
	Province   string
	Count      int
	Updated_at string
}

type Contacts

type Contacts struct {
	Id      int
	Name    string
	Phone   string
	Email   string
	Updated string
}

type Dto

type Dto struct {
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

type GraphHistoryParam

type GraphHistoryParam struct {
	Start            int                     `json:"start"`
	End              int                     `json:"end"`
	CF               string                  `json:"cf"`
	Step             int                     `json:"step"`
	EndpointCounters []cmodel.GraphInfoParam `json:"endpoint_counters"`
}

type Grp

type Grp struct {
	Id          int
	Grp_name    string
	Create_user string
	Create_at   string
	Come_from   int
}

type Grp_host

type Grp_host struct {
	Id      int
	Grp_id  int
	Host_id int
}

type Grp_tpl

type Grp_tpl struct {
	Id        int
	Grp_id    int
	Tpl_id    int
	Bind_user string
}

type Host

type Host struct {
	Id             int
	Hostname       string
	Ip             string
	Agent_version  string
	Plugin_version string
	Maintain_begin int64
	Maintain_end   int64
	Update_at      string
}

type Hosts

type Hosts struct {
	Id        int
	Hostname  string
	Exist     int
	Activate  int
	Platform  string
	Platforms string
	Idc       string
	Ip        string
	Isp       string
	Province  string
	City      string
	Status    string
	Bonding   int
	Speed     int
	Remark    string
	Updated   string
}

type IDCMapItem

type IDCMapItem struct {
	Popid    int
	Idc      string
	Province string
	City     string
}

type Idc

type Idc struct {
	Id         int
	Pop_id     int
	Name       string
	Count      int
	Area       string
	Province   string
	City       string
	Updated_at string
}

type Idcs

type Idcs struct {
	Id        int
	Popid     int
	Idc       string
	Bandwidth int
	Count     int
	Area      string
	Province  string
	City      string
	Updated   string
}

type Ips

type Ips struct {
	Id       int
	Ip       string
	Exist    int
	Status   int
	Type     string
	Hostname string
	Platform string
	Updated  string
}

type Nqm_node

type Nqm_node struct {
	Id         int
	Nid        string
	Pid        string
	Pname      string
	Pname_abbr string
	Cid        string
	Cname      string
	Cname_abbr string
	Iid        int
	Iname      string
	Status     int
	Note       string
	Addtime    int
}

type Platforms

type Platforms struct {
	Id          int
	Platform    string
	Type        string
	Visible     int
	Contacts    string
	Principal   string
	Deputy      string
	Upgrader    string
	Count       int
	Department  string
	Team        string
	Description string
	Updated     string
}

type Plugin_dir

type Plugin_dir struct {
	Id          int
	Grp_id      int
	Dir         string
	Create_user string
}

type Province

type Province struct {
	Id         int
	Province   string
	Count      int
	Updated_at string
}

type Remark

type Remark struct {
	User string
	Sig  string
	Host string
	Text string
}

type Tag

type Tag struct {
	StrategyId int
	Name       string
	Value      string
	CreateAt   string
	UpdateAt   string
}

type Tpl

type Tpl struct {
	Id          int
	Tpl_name    string
	Parent_id   int
	Action_id   int
	Create_user string
	Create_at   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL