Documentation ¶
Index ¶
- Constants
- func NewConfig() export.IAppConfig
- type Config
- func (c Config) GetEndpointIP() string
- func (c Config) GetEndpointPort() int
- func (c Config) GetExitWaitSecond() time.Duration
- func (c Config) GetID() export.AppID
- func (c Config) GetLogDir() string
- func (c Config) GetPprofIP() string
- func (c Config) GetPprofPort() int
- func (c Config) GetServiceConfigs() []export.IServiceConfig
- func (c Config) GetStartServiceIntervalMillisecond() time.Duration
- func (c Config) GetStopServiceIntervalMillisecond() time.Duration
- func (c *Config) SetEndpointIP(endpointIP string)
- func (c *Config) SetEndpointPort(endpointPort int)
- func (c *Config) SetExitWaitSecond(exitWaitSecond time.Duration)
- func (c *Config) SetID(id export.AppID)
- func (c *Config) SetLogDir(logDir string)
- func (c *Config) SetPprofIP(pprofIP string)
- func (c *Config) SetPprofPort(pprofPort int)
- func (c *Config) SetServiceConfigs(serviceConfigs []export.IServiceConfig)
- func (c *Config) SetStartServiceIntervalMillisecond(startServiceIntervalMillisecond time.Duration)
- func (c *Config) SetStopServiceIntervalMillisecond(stopServiceIntervalMillisecond time.Duration)
- func (c *Config) TidyAndCheck() error
- type Super
Constants ¶
View Source
const ActorName = "app"
View Source
const ConfigName = "app"
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶
func NewConfig() export.IAppConfig
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (Config) GetEndpointIP ¶
func (Config) GetEndpointPort ¶
func (Config) GetExitWaitSecond ¶
func (Config) GetPprofIP ¶
func (Config) GetPprofPort ¶
func (Config) GetServiceConfigs ¶
func (c Config) GetServiceConfigs() []export.IServiceConfig
func (Config) GetStartServiceIntervalMillisecond ¶
func (Config) GetStopServiceIntervalMillisecond ¶
func (*Config) SetEndpointIP ¶
func (*Config) SetEndpointPort ¶
func (*Config) SetExitWaitSecond ¶
func (*Config) SetPprofIP ¶
func (*Config) SetPprofPort ¶
func (*Config) SetServiceConfigs ¶
func (c *Config) SetServiceConfigs(serviceConfigs []export.IServiceConfig)
func (*Config) SetStartServiceIntervalMillisecond ¶
func (*Config) SetStopServiceIntervalMillisecond ¶
func (*Config) TidyAndCheck ¶
Click to show internal directories.
Click to hide internal directories.