Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLoadLogging = &SConfigError{"load logging"} ErrInvalidLogging = &SConfigError{"invalid logging"} ErrInvalidConfig = &SConfigError{"invalid config"} ErrInitConfig = &SConfigError{"init config"} ErrDeserializeConfig = &SConfigError{"deserialize config"} ErrReadConfig = &SConfigError{"read config"} ErrConfigNotExist = &SConfigError{"config not exist"} ErrWriteConfig = &SConfigError{"write config"} ErrConfigAlreadyExist = &SConfigError{"config already exist"} ErrLoadConfig = &SConfigError{"load config"} ErrRebuildConfig = &SConfigError{"rebuild config"} ErrNetworkNotFound = &SConfigError{"network not found"} ErrBuildConfig = &SConfigError{"build config"} ErrParseURL = &SConfigError{"parse url"} )
Functions ¶
This section is empty.
Types ¶
type IConfig ¶
type IConfig interface { GetLogging() logger.ILogging GetSettings() IConfigSettings GetAddress() IAddress GetEndpoints() []string GetConnections() []string }
func InitConfig ¶
func LoadConfig ¶
type IConfigSettings ¶
type IConfigSettings interface { net_message.ISettings GetMessageSizeBytes() uint64 GetDatabaseEnabled() bool }
type IWrapper ¶
func NewWrapper ¶
type SAddress ¶
type SAddress struct { FExternal string `yaml:"external,omitempty"` FInternal string `yaml:"internal,omitempty"` FPPROF string `yaml:"pprof,omitempty"` }
func (*SAddress) GetExternal ¶
func (*SAddress) GetInternal ¶
type SConfig ¶
type SConfig struct { FSettings *SConfigSettings `yaml:"settings"` FLogging []string `yaml:"logging,omitempty"` FAddress *SAddress `yaml:"address,omitempty"` FEndpoints []string `yaml:"endpoints,omitempty"` FConnections []string `yaml:"connections,omitempty"` // contains filtered or unexported fields }
func (*SConfig) GetAddress ¶
func (*SConfig) GetConnections ¶
func (*SConfig) GetEndpoints ¶
func (*SConfig) GetLogging ¶
func (*SConfig) GetSettings ¶
func (p *SConfig) GetSettings() IConfigSettings
type SConfigError ¶
type SConfigError struct {
// contains filtered or unexported fields
}
func (*SConfigError) Error ¶
func (err *SConfigError) Error() string
type SConfigSettings ¶
type SConfigSettings struct { FMessageSizeBytes uint64 `json:"message_size_bytes" yaml:"message_size_bytes"` FWorkSizeBits uint64 `json:"work_size_bits,omitempty" yaml:"work_size_bits,omitempty"` FNetworkKey string `json:"network_key,omitempty" yaml:"network_key,omitempty"` FDatabaseEnabled bool `json:"database_enabled,omitempty" yaml:"database_enabled,omitempty"` }
func (*SConfigSettings) GetDatabaseEnabled ¶
func (p *SConfigSettings) GetDatabaseEnabled() bool
func (*SConfigSettings) GetMessageSizeBytes ¶
func (p *SConfigSettings) GetMessageSizeBytes() uint64
func (*SConfigSettings) GetNetworkKey ¶
func (p *SConfigSettings) GetNetworkKey() string
func (*SConfigSettings) GetWorkSizeBits ¶
func (p *SConfigSettings) GetWorkSizeBits() uint64
Click to show internal directories.
Click to hide internal directories.