Documentation ¶
Index ¶
- Variables
- type App
- func (a *App) GetConfig() *Config
- func (a *App) GetDebug() bool
- func (a *App) GetEnv() EnvName
- func (a *App) GetName() string
- func (a *App) GetProcess() *process
- func (a *App) GetPwdPath() string
- func (a *App) GetRootPath() string
- func (a *App) GetRuntimePath() string
- func (a *App) GetShortRuntimePath() string
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetDebug() bool
- func (x *Config) GetEnv() EnvName
- func (x *Config) GetName() string
- func (x *Config) GetPid() string
- func (x *Config) GetProxy() string
- func (x *Config) GetRuntimePath() string
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type EnvName
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnvName_name = map[int32]string{ 0: "prod", 1: "uat", 2: "sit", 3: "test", 4: "dev", } EnvName_value = map[string]int32{ "prod": 0, "uat": 1, "sit": 2, "test": 3, "dev": 4, } )
Enum value maps for EnvName.
View Source
var File_component_app_app_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GetProcess ¶
func (a *App) GetProcess() *process
func (*App) GetPwdPath ¶
func (*App) GetRootPath ¶
func (*App) GetRuntimePath ¶
func (*App) GetShortRuntimePath ¶
type Config ¶
type Config struct { // debug 开启调试模式 Debug bool `protobuf:"varint,1,opt,name=debug,proto3" json:"debug,omitempty"` // name 应用名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // env 应用环境 Env EnvName `protobuf:"varint,3,opt,name=env,proto3,enum=component.app.EnvName" json:"env,omitempty"` // runtime_path 缓存文件目录 RuntimePath string `protobuf:"bytes,4,opt,name=runtime_path,json=runtimePath,proto3" json:"runtime_path,omitempty"` // proxy 网络代理访问 Proxy string `protobuf:"bytes,5,opt,name=proxy,proto3" json:"proxy,omitempty"` // pid 进程PID Pid string `protobuf:"bytes,6,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetRuntimePath ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type EnvName ¶
type EnvName int32
func (EnvName) Descriptor ¶
func (EnvName) Descriptor() protoreflect.EnumDescriptor
func (EnvName) EnumDescriptor
deprecated
func (EnvName) Number ¶
func (x EnvName) Number() protoreflect.EnumNumber
func (EnvName) Type ¶
func (EnvName) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.