http

package
v0.0.0-...-629276b Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2016 License: Apache-2.0 Imports: 33 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()

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)

Types

type City

type City struct {
	Id         int
	City       string
	Province   string
	Count      int
	Updated_at 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 Idc

type Idc struct {
	Id         int
	Pop_id     int
	Name       string
	Count      int
	Area       string
	Province   string
	City       string
	Updated_at 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 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 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