lccc_model

package
Version: v0.0.0-...-631233f Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneralConfig

type GeneralConfig struct {
	Registry struct {
		Kind      string
		Endpoints []string
		Username  string
		Password  string
	}
	Service struct {
		Namespace    string
		SecretId     string `yaml:"secret_id"`
		SecretKey    string `yaml:"secret_key"`
		OverrideHost string `yaml:"override_host"`
		Port         uint16
	}
}

func (*GeneralConfig) GetRegistryUrl

func (gc *GeneralConfig) GetRegistryUrl() string

type ServiceApplicationInfo

type ServiceApplicationInfo struct {
	ApplicationVersion    string `json:"service_version"`     // 应用的可读版本号字符串
	ApplicationVersionNum uint16 `json:"service_version_num"` // 应用的版本号码
}

用于描述某一服务的可执行应用的信息,如应用程序版本号等

type ServiceBaseInfo

type ServiceBaseInfo struct {
	ServiceKey       string `json:"service_key"`       // 服务的唯一标识
	ServiceName      string `json:"service_name"`      // 服务名称
	ServiceIntroduce string `json:"service_introduce"` // 服务的介绍
}

用于描述某一服务的基本信息,如服务名称,服务介绍等

type ServiceInstanceInfo

type ServiceInstanceInfo struct {
	EndpointHost    string                  `json:"endpoint_host"`    // 服务运行所在主机的访问地址
	EndpointPort    uint16                  `json:"endpoint_port"`    // 服务开放的端口号
	ApplicationInfo *ServiceApplicationInfo `json:"application_info"` // 服务实例所使用的的可执行程序的信息
}

用于描述某服务的某一个运行实例信息

type SystemSettingGroupDefine

type SystemSettingGroupDefine struct {
	Key         string                     `json:"key"`
	Name        string                     `json:"name"`
	Introduce   string                     `json:"introduce"`
	SettingList []*SystemSettingItemDefine `json:"setting_list"`
}

type SystemSettingItemDefine

type SystemSettingItemDefine struct {
	Key          string `json:"key"`
	Name         string `json:"name"`
	UiType       string `json:"ui_type"`
	UiParams     string `json:"ui_params"`
	DefaultValue string `json:"default_value"`
	Introduce    string `json:"introduce"`
	NeedRestart  bool   `json:"need_restart"`
}

type SystemSettingItemKeyDefine

type SystemSettingItemKeyDefine struct {
	GroupKey string `json:"group_key"`
	ItemKey  string `json:"item_key"`
}

type SystemSettingsDefine

type SystemSettingsDefine struct {
	Introduce        string                      `json:"introduce"`
	SettingGroupList []*SystemSettingGroupDefine `json:"setting_group_list"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL