view

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdInfo

type EtcdInfo struct {
	Key            string `json:"key"`
	CreateRevision int    `json:"createRevision"`
	ModRevision    int    `json:"modRevision"`
	Version        int    `json:"version"`
	Value          []byte `json:"value"`
}

type GovernIdcStatus

type GovernIdcStatus struct {
	ZoneCode string `json:"zone_code"`
	Status   string `json:"status"`
	Message  string `json:"message"`
}

type GovernServerStats

type GovernServerStats struct {
	IP       string      `json:"ip"`
	Hostname string      `json:"hostname"`
	Time     string      `json:"time"` // 每次展示数据的时间
	Err      string      `json:"err"`
	Servers  interface{} `json:"servers"`
}

type Pagination

type Pagination struct {
	Current  int `json:"current"`
	Total    int `json:"total"`
	PageSize int `json:"pageSize"`
}

响应

func NewPagination

func NewPagination(current int, pageSize int) *Pagination

type RelationApps

type RelationApps struct {
	AppName    string `json:"appName"`
	Name       string `json:"name"`
	Type       string `json:"type"`
	Addr       string `json:"addr"`
	UpdateTime int64  `json:"update_time"`
	Info       string `json:"info"`
}

type ReportInfo

type ReportInfo struct {
	Id         int     `json:"id"`
	Aid        int     `json:"aid"`
	AppName    string  `json:"appName" gorm:"column:app_name"`
	Normalized float64 `json:"normalized"`
	Warn       int     `json:"warn"`
	Dpainc     int     `json:"dpainc" gorm:"column:dpainc"`
	Error      int     `json:"error"`
	Merror     int     `json:"merror" gorm:"column:merror"`
	Fatal      int     `json:"fatal"`
	Person     string  `json:"person" gorm:"column:users"`
	Timestamp  int     `json:"timestamp" gorm:"column:timestamp"`
}

type ReqAddEtcd

type ReqAddEtcd struct {
	Prefix      string `json:"prefix"`
	AppName     string `json:"appName"`
	ServiceName string `json:"serviceName"`
	Suffix      string `json:"suffix"`
	ZoneCode    string `json:"zone_code"`
	Env         string `json:"env"`
	DataSource  string `json:"dataSource"`
	Value       string `json:"value"`
}

type ReqAppList

type ReqAppList struct {
	CurrentPage int    `json:"currentPage" form:"currentPage"` // 项目名称
	ShowNum     int    `json:"showNum"  form:"showNum"`        // gitlab项目ID
	Lang        string `json:"lang" form:"lang"`               // filter by lang
	Qs          string `json:"qs" form:"qs"`                   // 模糊搜索
	Sort        string `json:"sort" form:"sort"`               // 模糊搜索
}

ReqAppList ...

type ReqAppSearch

type ReqAppSearch struct {
	Repos string `json:"repos" form:"repos"`
	Stats string `json:"stats" form:"stats"`
	Q     string `json:"q" form:"q"`
	Files string `json:"files" form:"files"`
	I     string `json:"i" form:"i"`
	Ctx   string `json:"ctx" form:"ctx"`
}

ReqAppSearch ...

type ReqEtcdServiceList

type ReqEtcdServiceList struct {
	AppName  string `json:"appName"`
	ZoneCode string `json:"zone_code"`
}

type ReqGetEtcdList

type ReqGetEtcdList struct {
	Prefix      string `json:"prefix"`
	AppName     string `json:"appName"`
	ServiceName string `json:"serviceName"`
	Suffix      string `json:"suffix"`
	ZoneCode    string `json:"zone_code"`
	Env         string `json:"env"`
}

type ReqRegistryQuery

type ReqRegistryQuery struct {
	AppName  string `json:"appName"`
	IDCCode  string `json:"zone_code"`
	IP       string `json:"ip"`
	HostName string `json:"hostname"`
	Env      string `json:"env"`
}

type ReqRelationApps

type ReqRelationApps struct {
	Current  int      `json:"current"`
	PageSize int      `json:"pageSize"`
	Env      string   `json:"env"`
	IsAddr   int      `json:"isAddr"`
	IsApp    int      `json:"isApp"`
	AppList  []string `json:"appList"`
	Types    []string `json:"types"`
	AddrList []string `json:"addrList"`
}

type ReqReportList

type ReqReportList struct {
	Current  int    `json:"current"`
	PageSize int    `json:"pageSize"`
	Aid      int    `json:"aid"`
	AppName  string `json:"appName"`
	StatDate int64  `json:"statDate"`
}

请求

type ReqReportRangeList

type ReqReportRangeList struct {
	Aid       int `json:"aid"`
	StartTime int `json:"startTime"`
	EndTime   int `json:"endTime"`
}

type ReqSentinelRuleAdd

type ReqSentinelRuleAdd struct {
	Prefix      string `json:"prefix"`
	AppName     string `json:"appName"`
	ServiceName string `json:"serviceName"`
	Suffix      string `json:"suffix"`
	ZoneCode    string `json:"zone_code"`
	DataSource  string `json:"dataSource"`
}

type ReqToolDedail

type ReqToolDedail struct {
	Id int `json:"id" form:"id"`
}

ReqToolDedail ...

type ReqToolList

type ReqToolList struct {
	CurrentPage int    `json:"currentPage" form:"currentPage"`
	ShowNum     int    `json:"showNum"  form:"showNum"`
	QueryObj    string `json:"queryObj" form:"queryObj"`
}

ReqToolList ...

type ReqUserAppViewHistory

type ReqUserAppViewHistory struct {
	Aid uint `json:"aid" valid:"required"`
}

ReqUserAppViewHistory 应用浏览记录埋点请求

type ReqUserApps

type ReqUserApps struct {
	Page     uint   `json:"page" valid:"required"`
	PageSize uint   `json:"pageSize" valid:"required"`
	QS       string `json:"qs"`
}

ReqUserApps 用户应用的请求

type ReqUserEvents

type ReqUserEvents struct {
	// FromTime uint `json:"fromTime" valid:"required"` // 获取从什么时候开始的数据
	PageSize uint `json:"pageSize" valid:"required"`
	Page     uint `json:"page" valid:"required"`
}

ReqUserEvents 获取用户相关事件的入参

type ResourceList

type ResourceList []db.AppTopology

func (ResourceList) Len

func (p ResourceList) Len() int

func (ResourceList) Less

func (p ResourceList) Less(i, j int) bool

func (ResourceList) Swap

func (p ResourceList) Swap(i, j int)

type RespAppCommit

type RespAppCommit struct {
	Aid          int    `json:"aid"`
	Commit       string `json:"commit"`
	ReporterPath string `json:"reporterPath"`
}

type RespAppInfo

type RespAppInfo struct {
	Aid       int    `json:"aid"`
	Name      string `json:"name"`
	Lang      string `json:"lang"`
	AppName   string `json:"appName"`
	GitlabURL string `json:"gitlabUrl"`
	ProtoDir  string `json:"proto_dir"`
}

RespAppInfo ...

type RespAppInstance

type RespAppInstance struct {
	IP   string
	Host string
}

RespAppInstance ...

type RespAppNumber

type RespAppNumber struct {
	TotalNumber  int `json:"totalNumber"`
	NewNumber    int `json:"newNumber"`
	DeleteNumber int `json:"deleteNumber"`
}

RespAppNumber ...

type RespAppPkgAllList

type RespAppPkgAllList struct {
	Aid        int    `json:"aid"`
	AppName    string `json:"appName"`
	DepName    string `json:"depName"`
	DepBranch  string `json:"depBranch"`
	DepVersion string `json:"depVersion"`
	UpdateTime string `json:"update_time"`
}
type RespAppPkgLinkList struct {
	Aid     int    `json:"aid"`
	DepName string `json:"depName"`
}

type RespAppProjectList

type RespAppProjectList struct {
	Aid     int    `json:"aid"`
	AppName string `json:"appName"`
	WebUrl  string `json:"webUrl"`
}

type RespAppResource

type RespAppResource struct {
	Aid   int    `json:"aid"`
	Addr  string `json:"addr"`
	Name  string `json:"name"`
	Env   string `json:"env"`
	Type  string `json:"type"`
	Info  string `json:"info"`
	IdcID int    `json:"idcId"`
}

RespAppResource ...

type RespAppStatistics

type RespAppStatistics struct {
	AppCount     int `json:"appCount"`
	AppNodeCount int `json:"appNodeCount"`
}

type RespConfig

type RespConfig struct {
	AppName string          `json:"app_name"`
	Aid     int             `json:"aid"`
	Config  []RespOneConfig `json:"config"`
}

type RespDroneStatus

type RespDroneStatus struct {
	RepoId      int    `json:"repoId"`
	RepoLink    string `json:"repoLink"`
	BuildStatus string `json:"buildStatus"`
	BuildEvent  string `json:"buildEvent"`
}

type RespEtcdInfo

type RespEtcdInfo struct {
	Key            string `json:"key"`
	CreateRevision int    `json:"createRevision"`
	ModRevision    int    `json:"modRevision"`
	Version        int    `json:"version"`
	Value          string `json:"value"`
}

type RespEtcdServiceList

type RespEtcdServiceList struct {
	AppName  string `json:"appName"`
	ZoneCode string `json:"zone_code"`
}

type RespIDCList

type RespIDCList struct {
	RegionCode string `json:"regionCode" gorm:"column:region_code"`
	RegionName string `json:"regionName" gorm:"column:region_name"`
	ZoneCode   string `json:"zone_code" gorm:"column:zone_code"`
}

type RespIDCStructure

type RespIDCStructure struct {
	JunoZone         string            `json:"junoZone"`
	GovernStatusList []GovernIdcStatus `json:"governIdcList"`
	IDCList          []db.Zone         `json:"idcList"`
}

type RespOneConfig

type RespOneConfig struct {
	Caid     int    `json:"caid"`
	Env      string `json:"env"`
	ZoneCode string `json:"zone_code"`
	Content  string `json:"content"`
	AppName  string `json:"app_name"`
	Aid      int    `json:"aid"`
	Format   string `json:"format"`
	FileName string `json:"file_name"`
}

type RespRegisterInfo

type RespRegisterInfo struct {
	AppName   string `json:"app_name"`
	IP        string `json:"ip"`
	HostName  string `json:"host_name"`
	RegKey    string `json:"reg_key"`
	StartTime string `json:"start_time"`
	VCSInfo   string `json:"vcs_info"`
}

type RespRegistryItem

type RespRegistryItem struct {
	ID             int32  `json:"id"`
	AppName        string `json:"appName"`
	RegKey         string `json:"regKey"`
	RegValue       string `json:"regValue"`
	Region         string `json:"region"`
	Zone           string `json:"zone"`
	Scheme         string `json:"scheme"`
	Address        string `json:"address"`
	IP             string `json:"ip"`
	HostName       string `json:"hostname"`
	Type           string `json:"type"`
	Enable         int8   `json:"enable"`
	Group          string `json:"group"`
	Weight         int64  `json:"weight"`
	ProcessStartAt int64  `json:"processStartAt"`
	CreateAt       int64  `json:"createAt"`
	UpdateAt       int64  `json:"updateAt"`
}

查询结果记录

type RespRegistryQuery

type RespRegistryQuery struct {
	List []RespRegistryItem `json:"list"`
}

查询结果

type RespRelationApps

type RespRelationApps struct {
	Current  int            `json:"current"`
	PageSize int            `json:"pageSize"`
	Total    int            `json:"total"`
	List     []RelationApps `json:"list"`
	AddrList []string       `json:"addrList"`
}

type RespReportList

type RespReportList struct {
	Pagination Pagination   `json:"pagination"`
	List       []ReportInfo `json:"list"`
}

type RespToolDetail

type RespToolDetail struct {
	Id         uint64 `gorm:"primary_key"`
	Name       string
	Url        string
	PicUrl     string
	Desc       string
	CreateTime int64
}

RespToolDetail ...

type RespToolList

type RespToolList struct {
	CurrentPage int            `json:"currentPage"`
	TotalPage   int            `json:"totalPage"`
	ShowNum     int            `json:"showNum"`
	List        []*db.ToolInfo `json:"list"`
}

RespToolList ...

type RespUserApps

type RespUserApps struct {
	Pagination Pagination   `json:"pagination"`
	List       []db.AppInfo `json:"list"`
}

RespUserApps 用户应用响应

type RespUserEvents

type RespUserEvents struct {
	Events     []db.AppEvent   `json:"events"`
	Pagination base.Pagination `json:"pagination"`
}

RespUserEvents 用户相关事件的出参

type RuntimeStats

type RuntimeStats struct {
	IP       string `json:"ip"`
	Hostname string `json:"hostname"`
	Time     string `json:"time"` // 每次展示数据的时间
	Err      string `json:"err"`
}

type SelectData

type SelectData struct {
	Title string `json:"name"`
	Value string `json:"value"`
}

type ServerNode

type ServerNode struct {
	Name     string              `json:"name" toml:"name"`
	Scheme   string              `json:"scheme" toml:"scheme"` // http | grpc
	Address  string              `json:"address" toml:"address"`
	Labels   map[string]string   `json:"labels" toml:"labels"` // 标签: group, weight, enable 等
	Services map[string]*Service `json:"services" toml:"services"`
}

type Service

type Service struct {
	Namespace string            `json:"namespace" toml:"namespace"`
	Name      string            `json:"name" toml:"name"`
	Labels    map[string]string `json:"labels" toml:"labels"`
	Methods   []string          `json:"methods" toml:"methods"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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