Documentation
¶
Index ¶
- Constants
- Variables
- func CheckConfigFormat(format ConfigFormat) bool
- func CheckSettingNameValid(settingName string) bool
- type APIListItem
- type APIPermItem
- type AccessTokenItem
- type AppListWithEnvItem
- type AppPermItem
- type BatchCheckResourceVersionItem
- type ConfigFormat
- type ConfigResourceVersion
- type ConfigurationPublishData
- type ConfigurationStatus
- type EtcdInfo
- type GovernIdcStatus
- type GovernServerStats
- type JunoAgent
- type ListGroupItem
- type ListUserItem
- type MenuTree
- type MenuTreeItem
- type Metadata
- type Pagination
- type RelationApps
- type ReportInfo
- type ReqAddEtcd
- type ReqAppList
- type ReqAppListWithEnv
- type ReqAppSearch
- type ReqBatchCheckResourceVersion
- type ReqChangeAppGroup
- type ReqChangeUserGroup
- type ReqConfigInstanceList
- type ReqConfigPublish
- type ReqCreateAccessToken
- type ReqCreateConfig
- type ReqCreateConfigResource
- type ReqCreateConfigResourceVersion
- type ReqDeleteAccessToken
- type ReqDeleteConfig
- type ReqDetailConfig
- type ReqDetailConfigResource
- type ReqDiffConfig
- type ReqEtcdServiceList
- type ReqGetAppPerm
- type ReqGetConfigResourceByName
- type ReqGetEtcdList
- type ReqGetGroupAPIPerm
- type ReqGetGroupMenuPerm
- type ReqHTTPProxy
- type ReqHistoryConfig
- type ReqListAccessToken
- type ReqListConfig
- type ReqListConfigResource
- type ReqListUser
- type ReqNodeHeartBeat
- type ReqOptionCreate
- type ReqOptionDelete
- type ReqOptionInfo
- type ReqOptionList
- type ReqOptionUpdate
- type ReqPublishConfig
- type ReqRegistryQuery
- type ReqRelationApps
- type ReqReportList
- type ReqReportRangeList
- type ReqSentinelRuleAdd
- type ReqSetGroupAPIPerm
- type ReqSetGroupAppPerm
- type ReqSetGroupMenuPerm
- type ReqToolDedail
- type ReqToolList
- type ReqUpdateConfig
- type ReqUpdateGroup
- type ReqUpdateSettings
- type ReqUserAppViewHistory
- type ReqUserApps
- type ReqUserEvents
- type ResourceList
- type RespAppCommit
- type RespAppInfo
- type RespAppInstance
- type RespAppListWithEnv
- type RespAppNumber
- type RespAppPkgAllList
- type RespAppPkgLinkList
- type RespAppProjectList
- type RespAppResource
- type RespAppStatistics
- type RespBatchCheckResourceVersion
- type RespConfig
- type RespConfigInstanceItem
- type RespConfigInstanceList
- type RespDetailConfig
- type RespDetailConfigResource
- type RespDiffConfig
- type RespDroneStatus
- type RespEnvZone
- type RespEnvZoneItem
- type RespEtcdInfo
- type RespEtcdServiceList
- type RespGetAppPerm
- type RespGetGroupAPIPerm
- type RespGetMenuPerm
- type RespHistoryConfig
- type RespHistoryConfigItem
- type RespIDCList
- type RespIDCStructure
- type RespListAccessToken
- type RespListAppGroup
- type RespListConfig
- type RespListConfigItem
- type RespListConfigResource
- type RespListConfigResourceItem
- type RespListUser
- type RespListUserGroup
- type RespOneConfig
- type RespRegisterInfo
- type RespRegistryItem
- type RespRegistryQuery
- type RespRelationApps
- type RespReportList
- type RespToolDetail
- type RespToolList
- type RespUserApps
- type RespUserEvents
- type RuntimeStats
- type SelectData
- type ServerNode
- type Service
- type SettingConfigDep
- type SettingFieldConfig
- type SettingGateway
- type SettingGatewayItem
- type SettingGrafana
- type SettingName
- type UniqZone
- type UsedStatusResp
Constants ¶
const ( // ConfigFormatToml .. ConfigFormatToml = "toml" // ConfigFormatYaml .. ConfigFormatYaml = "yaml" )
const (
ConfigDepSettingName string = "config_dep"
)
Variables ¶
var ( // ConfigFormats Verified list ConfigFormats = []ConfigFormat{ConfigFormatToml, ConfigFormatYaml} )
var ( // todo can't global config // 对各项配置进行设置,设置项写到此处才能生效 SettingFieldConfigs = map[string]SettingFieldConfig{ "grafana": { Default: `{"host":"","header_name":"","api_dashboard_addr":"","instance_dashboard_addr":"","overview_dashboard_addr":""}`, Validate: func(value string) error { return nil }, }, ConfigDepSettingName: { Default: `{"interval":720}`, Validate: func(value string) error { return nil }, }, "gateway": { Default: "[]", Validate: func(value string) error { field := SettingGateway{} err := json.Unmarshal([]byte(value), &field) if err != nil { return err } settingMap := make(map[string]SettingGatewayItem) for _, item := range field { if _, ok := settingMap[item.Domain]; ok { return fmt.Errorf("域名 %s 存在重复配置", item.Domain) } settingMap[item.Domain] = item } return nil }, }, } )
Functions ¶
func CheckConfigFormat ¶ added in v0.2.0
func CheckConfigFormat(format ConfigFormat) bool
CheckConfigFormat 检查配置文件格式是否符合要求
func CheckSettingNameValid ¶ added in v0.2.0
Types ¶
type APIListItem ¶ added in v0.2.0
type APIPermItem ¶ added in v0.2.0
type AccessTokenItem ¶ added in v0.2.0
type AppListWithEnvItem ¶ added in v0.2.0
type AppPermItem ¶ added in v0.2.0
type BatchCheckResourceVersionItem ¶ added in v0.2.0
type ConfigResourceVersion ¶ added in v0.2.0
type ConfigurationPublishData ¶ added in v0.2.0
type ConfigurationPublishData struct { Content string `json:"content"` Metadata Metadata `json:"metadata"` }
ConfigurationPublishData ..
type ConfigurationStatus ¶ added in v0.2.0
type ConfigurationStatus struct { // etcd store data FileName string `json:"file_name"` Version string `json:"md5"` Hostname string `json:"hostname"` Env string `json:"env"` Timestamp int64 `json:"timestamp"` IP string `json:"ip"` HealthPort string `json:"health_port"` // attach key ZoneCode string `json:"zone_code"` EffectVersion string `json:"effect_version"` }
ConfigurationStatus ..
type GovernIdcStatus ¶
type GovernServerStats ¶
type ListGroupItem ¶ added in v0.2.0
type ListGroupItem struct {
Name string `json:"name"`
}
type ListUserItem ¶ added in v0.2.0
type MenuTree ¶ added in v0.2.0
type MenuTree []MenuTreeItem
type MenuTreeItem ¶ added in v0.2.0
type Metadata ¶ added in v0.2.0
type Metadata struct { Timestamp int64 `json:"timestamp"` Version string `json:"version"` Format string `json:"format"` Paths []string `json:"paths"` }
Metadata ..
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 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 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 ReqAppListWithEnv ¶ added in v0.2.0
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 ReqBatchCheckResourceVersion ¶ added in v0.2.0
type ReqChangeAppGroup ¶ added in v0.2.0
type ReqChangeUserGroup ¶ added in v0.2.0
type ReqConfigInstanceList ¶ added in v0.2.0
type ReqConfigPublish ¶ added in v0.2.0
type ReqConfigPublish struct { AppName string `json:"app_name"` ZoneCode string `json:"zone_code"` Port string `json:"port"` FileName string `json:"file_name"` Format string `json:"format"` Content string `json:"content"` InstanceList []string `json:"instance_list"` Env string `json:"env"` Version string `json:"version"` }
ReqConfigPublish configuration publish request struct
type ReqCreateAccessToken ¶ added in v0.2.0
type ReqCreateAccessToken struct {
Name string `json:"name" valid:"required"`
}
type ReqCreateConfig ¶ added in v0.2.0
type ReqCreateConfig struct { AppName string `json:"app_name" validate:"required"` Env string `json:"env" validate:"required"` Zone string `json:"zone" validate:"required"` FileName string `json:"file_name" validate:"required"` // 文件名(不带后缀) Format ConfigFormat `json:"format" validate:"required"` // 格式后缀名(比如: toml, yaml) }
ReqCreateConfig ..
type ReqCreateConfigResource ¶ added in v0.2.0
type ReqCreateConfigResource struct { Env string `json:"env" validate:"required"` Zone string `json:"zone" validate:"required"` Name string `json:"name" validate:"required"` Value string `json:"value" validate:"required"` IsGlobal bool `json:"is_global"` Description string `json:"description" validate:"required"` Visible bool `json:"visible"` Tags []string `json:"tags"` }
type ReqCreateConfigResourceVersion ¶ added in v0.2.0
type ReqDeleteAccessToken ¶ added in v0.2.0
type ReqDeleteAccessToken struct {
AppID string `json:"app_id" valid:"required"`
}
type ReqDeleteConfig ¶ added in v0.2.0
type ReqDeleteConfig struct {
ID uint `json:"id" validate:"required"`
}
ReqDeleteConfig ..
type ReqDetailConfig ¶ added in v0.2.0
type ReqDetailConfig struct {
ID uint `json:"id" validate:"required"`
}
ReqDetailConfig ..
type ReqDetailConfigResource ¶ added in v0.2.0
type ReqDetailConfigResource struct {
ID uint `json:"id" validate:"required"`
}
type ReqDiffConfig ¶ added in v0.2.0
type ReqDiffConfig struct { ID uint `query:"id" validate:"required"` // 配置ID HistoryID uint `query:"history_id" validate:"required"` // 版本ID }
ReqDiffConfig ..
type ReqEtcdServiceList ¶
type ReqGetAppPerm ¶ added in v0.2.0
type ReqGetConfigResourceByName ¶ added in v0.2.0
type ReqGetEtcdList ¶
type ReqGetGroupAPIPerm ¶ added in v0.2.0
type ReqGetGroupAPIPerm struct {
GroupName string `query:"group_name" valid:"required"`
}
type ReqGetGroupMenuPerm ¶ added in v0.2.0
type ReqGetGroupMenuPerm struct {
GroupName string `query:"group_name"`
}
type ReqHTTPProxy ¶ added in v0.2.0
type ReqHTTPProxy struct { Address string `json:"address"` URL string `json:"url"` Type string `json:"type"` // GET POST Params map[string]string `json:"params"` }
ReqHTTPProxy ..
type ReqHistoryConfig ¶ added in v0.2.0
type ReqHistoryConfig struct { ID uint `json:"id" validate:"required"` // 配置文件ID Size uint `json:"size" validate:"required"` Page uint `json:"page"` }
ReqHistoryConfig ..
type ReqListAccessToken ¶ added in v0.2.0
type ReqListConfig ¶ added in v0.2.0
type ReqListConfig struct { AppName string `query:"app_name" validate:"required"` Env string `query:"env" validate:"required"` }
ReqListConfig ..
type ReqListConfigResource ¶ added in v0.2.0
type ReqListUser ¶ added in v0.2.0
type ReqNodeHeartBeat ¶ added in v0.2.0
type ReqNodeHeartBeat struct { Hostname string `json:"hostname"` IP string `json:"ip"` 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"` AgentType int `json:"agent_type"` AgentVersion string `json:"agent_version"` ProxyType int `json:"proxy_type"` ProxyVersion string `json:"proxy_version"` }
ReqNodeHeartBeat ..
type ReqOptionCreate ¶ added in v0.2.0
type ReqOptionDelete ¶ added in v0.2.0
type ReqOptionInfo ¶ added in v0.2.0
机房信息
type ReqOptionList ¶ added in v0.2.0
type ReqOptionUpdate ¶ added in v0.2.0
type ReqPublishConfig ¶ added in v0.2.0
type ReqPublishConfig struct { ID uint `json:"id" validate:"required"` // 配置ID Version *string `json:"version" validate:"optional"` // 版本号 }
ReqPublishConfig ..
type ReqRegistryQuery ¶
type ReqRelationApps ¶
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 ReqSentinelRuleAdd ¶
type ReqSetGroupAPIPerm ¶ added in v0.2.0
type ReqSetGroupAPIPerm struct { GroupName string `json:"group_name"` APIList []APIListItem `json:"api_list"` }
type ReqSetGroupAppPerm ¶ added in v0.2.0
type ReqSetGroupMenuPerm ¶ added in v0.2.0
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 ReqUpdateConfig ¶ added in v0.2.0
type ReqUpdateConfig struct { ID uint `json:"id" validate:"required"` Message string `json:"message" validate:"required"` Content string `json:"content" validate:"required"` }
ReqUpdateConfig ..
type ReqUpdateGroup ¶ added in v0.2.0
type ReqUpdateSettings ¶ added in v0.2.0
更新设置
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 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 RespAppListWithEnv ¶ added in v0.2.0
type RespAppListWithEnv struct { List []AppListWithEnvItem `json:"list"` Pagination Pagination `json:"pagination"` }
type RespAppNumber ¶
type RespAppNumber struct { TotalNumber int `json:"totalNumber"` NewNumber int `json:"newNumber"` DeleteNumber int `json:"deleteNumber"` }
RespAppNumber ...
type RespAppPkgAllList ¶
type RespAppPkgLinkList ¶
type RespAppProjectList ¶
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 RespBatchCheckResourceVersion ¶ added in v0.2.0
type RespBatchCheckResourceVersion []BatchCheckResourceVersionItem
type RespConfig ¶
type RespConfig struct { AppName string `json:"app_name"` Aid int `json:"aid"` Config []RespOneConfig `json:"config"` }
type RespConfigInstanceItem ¶ added in v0.2.0
type RespConfigInstanceItem struct { ConfigurationStatusID uint `json:"configuration_status_id"` Env string `json:"env"` IP string `json:"ip"` HostName string `json:"host_name"` DeviceID int `json:"device_id"` RegionCode string `json:"region_code"` RegionName string `json:"region_name"` ZoneCode string `json:"zone_code"` ZoneName string `json:"zone_name"` ConfigFilePath string `json:"config_file_path"` ConfigFileUsed uint `json:"config_file_used"` // 1 supervisor 2 systemd ConfigFileSynced uint `json:"config_file_synced"` ConfigFileTakeEffect uint `json:"config_file_take_effect"` SyncAt time.Time `json:"sync_at"` ChangeLog string `json:"change_log"` Version string `json:"version"` // 发布到Juno Proxy的版本号 }
RespConfigInstanceItem ..
type RespConfigInstanceList ¶ added in v0.2.0
type RespConfigInstanceList []RespConfigInstanceItem
type RespDetailConfig ¶ added in v0.2.0
type RespDetailConfig struct { ID uint `json:"id"` AID uint `json:"aid"` Name string `json:"name"` Content string `json:"content"` Format string `json:"format"` // Yaml/Toml Env string `json:"env"` // 环境 Zone string `json:"zone"` // 机房Zone CreatedAt time.Time `json:"created_time"` UpdatedAt time.Time `json:"update_time"` PublishedAt *time.Time `json:"published"` // 未发布/发布时间 }
RespDetailConfig Contains configuration content
type RespDetailConfigResource ¶ added in v0.2.0
type RespDetailConfigResource struct { UserName string `json:"user_name"` Name string `json:"name"` Env string `json:"env"` ZoneName string `json:"zone_name"` ZoneCode string `json:"zone_code"` IsGlobal bool `json:"is_global"` Description string `json:"description"` LatestVersion uint `json:"latest_version"` LastUpdate time.Time `json:"last_update"` Versions []ConfigResourceVersion `json:"versions"` Tags []string `json:"tags"` Value string `json:"value"` }
type RespDiffConfig ¶ added in v0.2.0
type RespDiffConfig struct { Origin *RespDetailConfig `json:"origin,omitempty"` Modified RespDetailConfig `json:"modified"` }
RespDiffConfig ..
type RespDroneStatus ¶
type RespEnvZone ¶ added in v0.2.0
type RespEnvZone map[string][]RespEnvZoneItem // env => zones
type RespEnvZoneItem ¶ added in v0.2.0
type RespEtcdInfo ¶
type RespEtcdServiceList ¶
type RespGetAppPerm ¶ added in v0.2.0
type RespGetAppPerm struct { List []AppPermItem `json:"list"` Pagination Pagination `json:"pagination"` }
type RespGetGroupAPIPerm ¶ added in v0.2.0
type RespGetGroupAPIPerm []APIPermItem
type RespGetMenuPerm ¶ added in v0.2.0
type RespGetMenuPerm []string
type RespHistoryConfig ¶ added in v0.2.0
type RespHistoryConfig struct { Pagination Pagination `json:"pagination"` List []RespHistoryConfigItem `json:"list"` }
RespHistoryConfig ..
type RespHistoryConfigItem ¶ added in v0.2.0
type RespHistoryConfigItem struct { ID uint `json:"id"` UID uint `json:"uid"` // 发布人ID AccessTokenID uint `json:"access_token_id"` AccessTokenName string `json:"access_token_name"` UserName string `json:"user_name"` ChangeLog string `json:"change_log"` ConfigurationID uint `json:"configuration_id"` Version string `json:"version"` // 发布到Juno Proxy的版本号 CreatedAt time.Time `json:"created_at"` }
RespHistoryConfigItem ..
type RespIDCList ¶
type RespIDCStructure ¶
type RespIDCStructure struct { JunoZone string `json:"junoZone"` GovernStatusList []GovernIdcStatus `json:"governIdcList"` IDCList []db.Zone `json:"idcList"` }
type RespListAccessToken ¶ added in v0.2.0
type RespListAccessToken struct { Pagination Pagination `json:"pagination"` List []AccessTokenItem `json:"list"` }
type RespListAppGroup ¶ added in v0.2.0
type RespListAppGroup []ListGroupItem
type RespListConfigItem ¶ added in v0.2.0
type RespListConfigItem struct { ID uint `json:"id"` AID uint `json:"aid"` Name string `json:"name"` Format string `json:"format"` // Yaml/Toml Env string `json:"env"` // 环境 Zone string `json:"zone"` // 机房Zone CreatedAt time.Time `json:"created_time"` UpdatedAt time.Time `json:"update_time"` DeletedAt *time.Time `json:"deleted_at"` PublishedAt *time.Time `json:"published"` // 未发布/发布时间 }
RespListConfigItem Does not contain configuration content to prevent configuration from being too long
type RespListConfigResource ¶ added in v0.2.0
type RespListConfigResource struct { Pagination Pagination `json:"pagination"` List []RespListConfigResourceItem `json:"list"` }
type RespListConfigResourceItem ¶ added in v0.2.0
type RespListConfigResourceItem struct { ID uint `json:"id"` UID uint `json:"uid"` UserName string `json:"user_name"` Name string `json:"name"` Env string `json:"env"` ZoneName string `json:"zone_name"` ZoneCode string `json:"zone_code"` IsGlobal bool `json:"is_global"` Description string `json:"description"` LatestVersion uint `json:"latest_version"` LastUpdate time.Time `json:"last_update"` Value string `json:"value"` Tags []string `json:"tags"` }
type RespListUser ¶ added in v0.2.0
type RespListUser struct { List []ListUserItem `json:"list"` Pagination Pagination `json:"pagination"` }
type RespListUserGroup ¶ added in v0.2.0
type RespListUserGroup []ListGroupItem
type RespOneConfig ¶
type RespRegisterInfo ¶
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 output.Pagination `json:"pagination"` }
RespUserEvents 用户相关事件的出参
type RuntimeStats ¶
type SelectData ¶
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 SettingConfigDep ¶ added in v0.2.0
type SettingConfigDep struct {
Interval uint `json:"interval"` // 配置依赖解析的
}
type SettingFieldConfig ¶ added in v0.2.0
type SettingFieldConfig struct { Default string // 默认值 Validate func(value string) error // 参数检查函数 }
设置项配置
func GetSettingFieldConfig ¶ added in v0.2.0
func GetSettingFieldConfig(name string) (SettingFieldConfig, bool)
type SettingGateway ¶ added in v0.2.0
type SettingGateway []SettingGatewayItem
type SettingGatewayItem ¶ added in v0.2.0
type SettingGatewayItem struct { Name string `json:"name"` // 设置项名称 Domain string `json:"domain"` // 访问地址,Juno根据这个域名进行代理 Host string `json:"host"` // 被代理的服务真实地址 Scheme string `json:"scheme"` // 被代理的服务的协议 Timeout uint `json:"timeout"` // 超时(秒) Headers []struct { Name string `json:"name"` Value string `json:"value"` } `json:"headers"` // header头 }
type SettingGrafana ¶ added in v0.2.0
type SettingGrafana struct { Host string `json:"host"` HeaderName string `json:"header_name"` ApiDashboardAddr string `json:"api_dashboard_addr"` // api监控面板路径 InstanceDashboardAddr string `json:"instance_dashboard_addr"` // 实例监控面板 OverviewDashboardAddr string `json:"overview_dashboard_addr"` // 概览面板 }
type UsedStatusResp ¶ added in v0.2.0
type UsedStatusResp struct {
IsUsed int `json:"is_used"`
}
UsedStatusResp ..