Documentation ¶
Index ¶
- type IAddress
- type IConfig
- type IConfigSettings
- type IEditor
- type IService
- type IWrapper
- type SAddress
- type SConfig
- func (p *SConfig) GetAddress() IAddress
- func (p *SConfig) GetConnections() []string
- func (p *SConfig) GetF2FDisabled() bool
- func (p *SConfig) GetFriends() map[string]asymmetric.IPubKey
- func (p *SConfig) GetLogging() logger.ILogging
- func (p *SConfig) GetService(name string) (IService, bool)
- func (p *SConfig) GetSettings() IConfigSettings
- type SConfigSettings
- func (p *SConfigSettings) GetKeySizeBits() uint64
- func (p *SConfigSettings) GetLimitVoidSizeBytes() uint64
- func (p *SConfigSettings) GetMessageSizeBytes() uint64
- func (p *SConfigSettings) GetNetworkKey() string
- func (p *SConfigSettings) GetQueuePeriodMS() uint64
- func (p *SConfigSettings) GetWorkSizeBits() uint64
- type SService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IConfig ¶
type IConfig interface { GetSettings() IConfigSettings GetLogging() logger.ILogging GetAddress() IAddress GetF2FDisabled() bool GetFriends() map[string]asymmetric.IPubKey GetConnections() []string GetService(string) (IService, bool) }
func BuildConfig ¶ added in v1.5.6
func InitConfig ¶ added in v1.5.14
func LoadConfig ¶
type IConfigSettings ¶ added in v1.5.18
type IWrapper ¶
func NewWrapper ¶
type SAddress ¶
type SConfig ¶
type SConfig struct { FSettings *SConfigSettings `yaml:"settings"` FLogging []string `yaml:"logging,omitempty"` FAddress *SAddress `yaml:"address,omitempty"` FF2FDisabled bool `yaml:"f2f_disabled,omitempty"` FServices map[string]*SService `yaml:"services,omitempty"` FConnections []string `yaml:"connections,omitempty"` FFriends map[string]string `yaml:"friends,omitempty"` // contains filtered or unexported fields }
func (*SConfig) GetAddress ¶ added in v1.5.6
func (*SConfig) GetConnections ¶ added in v1.5.6
func (*SConfig) GetF2FDisabled ¶ added in v1.5.27
func (*SConfig) GetFriends ¶ added in v1.5.6
func (p *SConfig) GetFriends() map[string]asymmetric.IPubKey
func (*SConfig) GetLogging ¶ added in v1.5.6
func (*SConfig) GetService ¶ added in v1.5.6
func (*SConfig) GetSettings ¶ added in v1.5.18
func (p *SConfig) GetSettings() IConfigSettings
type SConfigSettings ¶ added in v1.5.18
type SConfigSettings struct { FMessageSizeBytes uint64 `json:"message_size_bytes" yaml:"message_size_bytes"` FQueuePeriodMS uint64 `json:"queue_period_ms" yaml:"queue_period_ms"` FKeySizeBits uint64 `json:"key_size_bits" yaml:"key_size_bits"` FWorkSizeBits uint64 `json:"work_size_bits,omitempty" yaml:"work_size_bits,omitempty"` FLimitVoidSizeBytes uint64 `json:"limit_void_size_bytes,omitempty" yaml:"limit_void_size_bytes,omitempty"` FNetworkKey string `json:"network_key,omitempty" yaml:"network_key,omitempty"` // contains filtered or unexported fields }
func (*SConfigSettings) GetKeySizeBits ¶ added in v1.5.18
func (p *SConfigSettings) GetKeySizeBits() uint64
func (*SConfigSettings) GetLimitVoidSizeBytes ¶ added in v1.5.18
func (p *SConfigSettings) GetLimitVoidSizeBytes() uint64
func (*SConfigSettings) GetMessageSizeBytes ¶ added in v1.5.18
func (p *SConfigSettings) GetMessageSizeBytes() uint64
func (*SConfigSettings) GetNetworkKey ¶ added in v1.5.22
func (p *SConfigSettings) GetNetworkKey() string
func (*SConfigSettings) GetQueuePeriodMS ¶ added in v1.5.18
func (p *SConfigSettings) GetQueuePeriodMS() uint64
func (*SConfigSettings) GetWorkSizeBits ¶ added in v1.5.18
func (p *SConfigSettings) GetWorkSizeBits() uint64
Click to show internal directories.
Click to hide internal directories.