Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidConfig = &SConfigError{"invalid config"} ErrLoadLogging = &SConfigError{"load logging"} 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"} )
Functions ¶
This section is empty.
Types ¶
type IConfig ¶
type IConfig interface { GetLogging() logger.ILogging GetSettings() IConfigSettings GetAddress() string GetConnection() IConnection }
func LoadConfig ¶
type IConfigSettings ¶
type IConfigSettings interface { net_message.ISettings }
type IConnection ¶
type IConnection interface {
GetPostID() string
}
type SConfig ¶
type SConfig struct { FSettings *SConfigSettings `yaml:"settings"` FLogging []string `yaml:"logging,omitempty"` FAddress string `yaml:"address"` FConnection *SConnection `yaml:"connection"` // contains filtered or unexported fields }
func (*SConfig) GetAddress ¶
func (*SConfig) GetConnection ¶
func (p *SConfig) GetConnection() IConnection
func (*SConfig) GetLogging ¶
func (*SConfig) GetSettings ¶
func (p *SConfig) GetSettings() IConfigSettings
type SConfigError ¶ added in v1.6.8
type SConfigError struct {
// contains filtered or unexported fields
}
func (*SConfigError) Error ¶ added in v1.6.8
func (err *SConfigError) Error() string
type SConfigSettings ¶
type SConfigSettings struct { FWorkSizeBits uint64 `json:"work_size_bits,omitempty" yaml:"work_size_bits,omitempty"` FNetworkKey string `json:"network_key,omitempty" yaml:"network_key,omitempty"` }
func (*SConfigSettings) GetNetworkKey ¶
func (p *SConfigSettings) GetNetworkKey() string
func (*SConfigSettings) GetWorkSizeBits ¶
func (p *SConfigSettings) GetWorkSizeBits() uint64
type SConnection ¶
type SConnection struct {
FPostID string `yaml:"post_id"`
}
func (*SConnection) GetPostID ¶
func (p *SConnection) GetPostID() string
Click to show internal directories.
Click to hide internal directories.