config

package
v1.5.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAddress added in v1.5.13

type IAddress interface {
	GetTCP() string
	GetHTTP() string
}

type IConfig

type IConfig interface {
	IConfigSettingsHLT

	GetLogging() logger.ILogging
	GetAddress() IAddress
	GetNetworkKey() string
	GetConnections() []string
	GetConsumers() []string
}

func BuildConfig added in v1.5.6

func BuildConfig(pFilepath string, pCfg *SConfig) (IConfig, error)

func InitConfig added in v1.5.8

func InitConfig(cfgPath string, initCfg *SConfig) (IConfig, error)

func LoadConfig

func LoadConfig(pFilepath string) (IConfig, error)

type IConfigSettingsHLT added in v1.5.14

type IConfigSettingsHLT interface {
	IsValidHLT() bool
	settings.IConfigSettings

	GetMessagesCapacity() uint64
	GetQueuePeriodMS() uint64
	GetLimitVoidSizeBytes() uint64
}

type SAddress added in v1.5.13

type SAddress struct {
	FTCP  string `json:"tcp,omitempty"`
	FHTTP string `json:"http,omitempty"`
}

func (*SAddress) GetHTTP added in v1.5.13

func (p *SAddress) GetHTTP() string

func (*SAddress) GetTCP added in v1.5.13

func (p *SAddress) GetTCP() string

type SConfig

type SConfig struct {
	settings.SConfigSettings

	FLogging     []string  `json:"logging,omitempty"`
	FAddress     *SAddress `json:"address,omitempty"`
	FNetworkKey  string    `json:"network_key,omitempty"`
	FConnections []string  `json:"connections,omitempty"`
	FConsumers   []string  `json:"consumers,omitempty"`
	// contains filtered or unexported fields
}

func (*SConfig) GetAddress added in v1.5.6

func (p *SConfig) GetAddress() IAddress

func (*SConfig) GetConnections added in v1.5.13

func (p *SConfig) GetConnections() []string

func (*SConfig) GetConsumers added in v1.5.6

func (p *SConfig) GetConsumers() []string

func (*SConfig) GetLogging added in v1.5.6

func (p *SConfig) GetLogging() logger.ILogging

func (*SConfig) GetNetworkKey added in v1.5.16

func (p *SConfig) GetNetworkKey() string

func (*SConfig) IsValidHLT added in v1.5.14

func (p *SConfig) IsValidHLT() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL