resource

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppCreate

func AppCreate(c echo.Context) error

创建数据

func AppDelete

func AppDelete(c echo.Context) error

删除数据

func AppEnvZoneList

func AppEnvZoneList(c echo.Context) error

func AppInfo

func AppInfo(c echo.Context) error

AppInfo application message

func AppList

func AppList(c echo.Context) error

AppList ..

func AppListWithEnv added in v0.2.0

func AppListWithEnv(c echo.Context) error

AppListWithEnv ..

func AppNodeInfo

func AppNodeInfo(c echo.Context) error

func AppNodeList

func AppNodeList(c echo.Context) error

func AppNodeListSync added in v0.4.12

func AppNodeListSync(c echo.Context) error

func AppNodePut

func AppNodePut(c echo.Context) error

func AppNodeTransferList

func AppNodeTransferList(c echo.Context) error

func AppNodeTransferPut

func AppNodeTransferPut(c echo.Context) error

func AppPut

func AppPut(c echo.Context) error

创建数据或者修改数据

func AppUpdate

func AppUpdate(c echo.Context) error

更新数据

func GetFrameVersion added in v0.3.0

func GetFrameVersion(c echo.Context) error

GetFrameVersion ..

func GrpcAddrList added in v0.3.0

func GrpcAddrList(c *core.Context) error

GrpcAddrList 获取 Grpc 的地址列表

func HttpAddrList added in v0.3.0

func HttpAddrList(c *core.Context) error

HttpAddrList 获取 Http 地址列表

func NodeCreate

func NodeCreate(c echo.Context) error

只有可用区的创建功能

func NodeDelete

func NodeDelete(c echo.Context) error

只有可用区的删除功能

func NodeEnvZone added in v0.2.0

func NodeEnvZone(c echo.Context) (err error)

根据Node数据表聚合数据获取Zone和Env关联列表

func NodeHeartBeat

func NodeHeartBeat(c echo.Context) error

只有可用区的创建功能

func NodeInfo

func NodeInfo(c echo.Context) error

func NodeList

func NodeList(c echo.Context) error

func NodePut

func NodePut(c echo.Context) error

func NodeStatics

func NodeStatics(c echo.Context) error

NodeStatics

func NodeTransferList

func NodeTransferList(c echo.Context) error

NodeTransferList list of available areas of the node

func NodeTransferPut

func NodeTransferPut(c echo.Context) error

NodeTransferPut Update the list of available areas of the node

func NodeUpdate

func NodeUpdate(c echo.Context) error

func ZoneCreate

func ZoneCreate(c echo.Context) error

只有可用区的创建功能

func ZoneDelete

func ZoneDelete(c echo.Context) error

只有可用区的删除功能

func ZoneEnv added in v0.2.0

func ZoneEnv(c echo.Context) (err error)

获取可用区、环境的关联列表

func ZoneInfo

func ZoneInfo(c echo.Context) error

可用区信息

func ZoneList

func ZoneList(c echo.Context) error

ZoneList List of available areas

func ZonePut

func ZonePut(c echo.Context) error

ZonePut The available areas are automatically created, if not created, and updated if there are

func ZoneUpdate

func ZoneUpdate(c echo.Context) error

只有可用区的更新功能

Types

type AddrEnvItem added in v0.3.0

type AddrEnvItem struct {
	Env  string `json:"env"`
	Addr string `json:"addr"`
}

type NodeStaticsInfo

type NodeStaticsInfo struct {
	Value int    `json:"value"`
	Name  string `json:"name"`
}

type QueryAppByAppName added in v0.3.0

type QueryAppByAppName struct {
	AppName string `query:"app_name"`
}

type ReqAppCreate

type ReqAppCreate struct {
	db.AppInfo
}

type ReqAppDelete

type ReqAppDelete struct {
	db.AppInfo
}

type ReqAppEnvNodeList added in v0.2.0

type ReqAppEnvNodeList struct {
	AppName string `query:"app_name"`
}

type ReqAppInfo

type ReqAppInfo struct {
	Aid     int    `query:"aid"`
	AppName string `query:"app_name"`
}

应用信息

type ReqAppList

type ReqAppList struct {
	db.AppInfo
	KeywordsType string `query:"keywords_type"`
	Keywords     string `query:"keywords"`
	CurrentPage  int    `query:"currentPage"`
	PageSize     int    `query:"pageSize"`
	SearchPort   string `query:"search_port"`
}

type ReqAppNodeCreate

type ReqAppNodeCreate struct {
	db.AppNode
}

type ReqAppNodeDelete

type ReqAppNodeDelete struct {
	db.AppNode
}

type ReqAppNodeInfo

type ReqAppNodeInfo struct {
	Id int `query:"id"`
}

APP NODE信息

type ReqAppNodeList

type ReqAppNodeList struct {
	Aid         int    `query:"aid"`
	Env         string `query:"env"`
	AppName     string `query:"app_name"`
	HostName    string `query:"host_name"`
	Ip          string `query:"ip"`
	CurrentPage int    `query:"currentPage"`
	PageSize    int    `query:"pageSize"`
	ZoneCode    string `query:"zone_code"`
}

type ReqAppNodePut

type ReqAppNodePut struct {
	Id      int          `json:"id"`
	AppName string       `json:"app_name"`
	List    []db.AppNode `json:"list"`
}

type ReqAppNodeTransferList

type ReqAppNodeTransferList struct {
	Aid int `query:"aid"`
}

type ReqAppNodeTransferPut

type ReqAppNodeTransferPut struct {
	Target []db.Node `query:"target"`
	Aid    int       `json:"aid"`
}

type ReqAppNodeUpdate

type ReqAppNodeUpdate struct {
	db.AppNode
}

type ReqAppPut

type ReqAppPut struct {
	List []db.AppInfo `json:"list"`
}

type ReqAppUpdate

type ReqAppUpdate struct {
	db.AppInfo
}

type ReqCluterInfo added in v0.4.3

type ReqCluterInfo struct {
	Name     string   `query:"name"`
	Env      []string `json:"env"`
	ZoneCode string   `json:"zone_code"`
	ZoneName string   `json:"zone_name"`
}

type ReqNodeCreate

type ReqNodeCreate struct {
	db.Node
}

type ReqNodeDelete

type ReqNodeDelete struct {
	db.Node
}

type ReqNodeHeartBeat

type ReqNodeHeartBeat struct {
	Hostname     string `json:"hostname"`
	IP           string `json:"ip"`
	AgentVersion string `json:"agent_version"`
	RegionCode   string `json:"region_code"`
	RegionName   string `json:"region_name"`
	ZoneCode     string `json:"zone_code"`
	ZoneName     string `json:"zone_name"`
	AppName      string `json:"app_name"`
	Env          string `json:"env"`
}

type ReqNodeInfo

type ReqNodeInfo struct {
	Id       int    `query:"id"`
	HostName string `query:"host_name"`
}

节点信息

type ReqNodeList

type ReqNodeList struct {
	db.Node
	CurrentPage  int    `query:"currentPage"`
	PageSize     int    `query:"pageSize"`
	KeywordsType string `query:"keywords_type"`
	Keywords     string `query:"keywords"`
}

type ReqNodePut

type ReqNodePut struct {
	List []db.Node `json:"list"`
}

type ReqNodeTransferList

type ReqNodeTransferList struct {
	ZoneCode string `query:"zone_code"`
	Env      string `query:"env"`
}

type ReqNodeTransferPut

type ReqNodeTransferPut struct {
	Target []db.Node `query:"target"`
	ZoneId int       `json:"zone_id"`
}

type ReqNodeUpdate

type ReqNodeUpdate struct {
	db.Node
}

type ReqZoneCreate

type ReqZoneCreate struct {
	db.Zone
}

type ReqZoneDelete

type ReqZoneDelete struct {
	db.Zone
}

type ReqZoneInfo

type ReqZoneInfo struct {
	Id       int    `query:"id"`
	ZoneCode string `query:"idc_code"`
}

机房信息

type ReqZoneList

type ReqZoneList struct {
	Env          string `query:"env"`
	RegionCode   string `query:"region_code"`
	RegionName   string `query:"region_name"`
	CurrentPage  int    `query:"currentPage"`
	PageSize     int    `query:"pageSize"`
	KeywordsType string `query:"keywords_type"`
	Keywords     string `query:"keywords"`
}

type ReqZonePut

type ReqZonePut struct {
	List []db.Zone `json:"list"`
}

type ReqZoneUpdate

type ReqZoneUpdate struct {
	db.Zone
}

type RespAppGrpcAddrList added in v0.3.0

type RespAppGrpcAddrList struct {
	Port  string        `json:"port"`
	Hosts []AddrEnvItem `json:"hosts"`
}

type RespAppHTTPAddrList added in v0.3.0

type RespAppHTTPAddrList struct {
	Port  string        `json:"port"`
	Hosts []AddrEnvItem `json:"hosts"`
}

type RespNodeStatics

type RespNodeStatics struct {
	DayCnt     []NodeStaticsInfo `json:"day_cnt"`
	NodeStatus []NodeStaticsInfo `json:"node_status"`
	NodeApp    []NodeStaticsInfo `json:"node_app"`
	EnvZone    []NodeStaticsInfo `json:"env_zone"`
}

Jump to

Keyboard shortcuts

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