config

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerConfig

type BrokerConfig struct {
	*viper.Viper
}

func NewBrokerConfig

func NewBrokerConfig() BrokerConfig

func (BrokerConfig) BindAddress added in v1.0.3

func (b BrokerConfig) BindAddress() string

func (BrokerConfig) Host added in v1.0.3

func (b BrokerConfig) Host() string

func (BrokerConfig) Load

func (b BrokerConfig) Load(configPath string) BrokerConfig

func (BrokerConfig) LogLevel

func (b BrokerConfig) LogLevel() zapcore.Level

func (BrokerConfig) Port

func (b BrokerConfig) Port() uint

func (BrokerConfig) SetBindAddress added in v1.0.3

func (b BrokerConfig) SetBindAddress(name string)

func (BrokerConfig) SetHost added in v1.0.3

func (b BrokerConfig) SetHost(name string)

func (BrokerConfig) SetLogLevel

func (b BrokerConfig) SetLogLevel(logLevel zapcore.Level)

func (BrokerConfig) SetPort

func (b BrokerConfig) SetPort(port uint)

func (BrokerConfig) SetTimeout

func (b BrokerConfig) SetTimeout(timeout int)

func (BrokerConfig) SetZKQuorum added in v1.0.3

func (b BrokerConfig) SetZKQuorum(quorum []string)

func (BrokerConfig) SetZKTimeout

func (b BrokerConfig) SetZKTimeout(timeout uint)

func (BrokerConfig) Timeout

func (b BrokerConfig) Timeout() int

func (BrokerConfig) ZKQuorum added in v1.0.3

func (b BrokerConfig) ZKQuorum() []string

func (BrokerConfig) ZKTimeout

func (b BrokerConfig) ZKTimeout() uint

Jump to

Keyboard shortcuts

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