config

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConfig

type IConfig interface {
	GetLogging() logger.ILogging
	GetNetwork() string
	GetAddress() string
	GetConnection() 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 SConfig

type SConfig struct {
	FLogging    []string `json:"logging,omitempty"`
	FNetwork    string   `json:"network,omitempty"`
	FAddress    string   `json:"address,omitempty"`
	FConnection string   `json:"connection,omitempty"`
	FConsumers  []string `json:"consumers,omitempty"`
	// contains filtered or unexported fields
}

func (*SConfig) GetAddress added in v1.5.6

func (p *SConfig) GetAddress() string

func (*SConfig) GetConnection added in v1.5.6

func (p *SConfig) GetConnection() 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) GetNetwork added in v1.5.6

func (p *SConfig) GetNetwork() string

Jump to

Keyboard shortcuts

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