config

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func (*Config) GetConnectionString

func (c *Config) GetConnectionString() string

func (*Config) GetHost

func (c *Config) GetHost() string

func (*Config) GetPassword

func (c *Config) GetPassword() string

func (*Config) GetPort

func (c *Config) GetPort() string

func (*Config) GetUsername

func (c *Config) GetUsername() string

func (*Config) SetHost

func (c *Config) SetHost(host string)

func (*Config) SetPassword

func (c *Config) SetPassword(password string)

func (*Config) SetPort

func (c *Config) SetPort(port string)

func (*Config) SetUsername

func (c *Config) SetUsername(username string)

func (*Config) Validate

func (c *Config) Validate() error

type IConfig

type IConfig interface {
	Validate() error
	GetHost() string
	SetHost(host string)
	GetPort() string
	SetPort(port string)
	GetUsername() string
	SetUsername(username string)
	GetPassword() string
	SetPassword(password string)
	GetConnectionString() string
}

func NewBrokerConfig

func NewBrokerConfig() IConfig

Jump to

Keyboard shortcuts

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