config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfig = errors.New("configuration error")
)

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	FacilityCode string    `mapstructure:"facility"`
	LogLevel     string    `mapstructure:"log_level"`
	Endpoints    Endpoints `mapstructure:"endpoints"`
	Dryrun       bool      `mapstructure:"dryrun"`
	Concurrency  int       `mapstructure:"concurrency"`
}

func Load

func Load(cfgFilePath, loglevel string) (*Configuration, error)

type Endpoints

type Endpoints struct {
	// NatsOptions defines the NATs events broker configuration parameters.
	Nats events.NatsOptions `mapstructure:"nats"`

	// FleetDBConfig defines the fleetdb client configuration parameters
	FleetDB fleetdb.Config `mapstructure:"fleetdb"`
}

Jump to

Keyboard shortcuts

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