amqpconfig

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 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 Config

type Config struct {
	AmqpURL string
	TLSConf tls.Config
	Workers int // Used only by consumer
}

Config structure for Collector

func LoadConfigFromFile

func LoadConfigFromFile(configPath string) (c Config, err error)

LoadConfigFromFile loads the configuration from a file

func (*Config) LoadCACert

func (c *Config) LoadCACert(path string) (err error)

LoadCACert loads server certificate

func (*Config) LoadClientKeyPair

func (c *Config) LoadClientKeyPair(certPath, keyPath string) (err error)

LoadClientKeyPair loads the client certificate and key

Jump to

Keyboard shortcuts

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