cfg

package
v0.0.0-...-61ae1b1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(f string)

Init prepares the configuration and reads it

func SetDefaults

func SetDefaults()

SetDefaults sets the default configurations for Viper

Types

type DRLMAgentConfig

type DRLMAgentConfig struct {
	Core  DRLMAgentCoreConfig  `mapstructure:"core"`
	Minio DRLMAgentMinioConfig `mapstructure:"minio"`
	Log   logger.Config        `mapstructure:"log"`
}

DRLMAgentConfig is the configuration of an Agent of DRLM

var Config *DRLMAgentConfig

Config has the values of the configuration

type DRLMAgentCoreConfig

type DRLMAgentCoreConfig struct {
	Host     string `mapstructure:"host"`
	Port     int    `mapstructure:"port"`
	TLS      bool   `mapstructure:"tls"`
	CertPath string `mapstructure:"cert_path"`
	Secret   string `mapstructure:"secret"`
}

DRLMAgentCoreConfig is the configuration related with the DRLM Core of an Agent of DRLM

type DRLMAgentMinioConfig

type DRLMAgentMinioConfig struct {
	Host      string `mapstructure:"host"`
	Port      int    `mapstructure:"port"`
	SSL       bool   `mapstructure:"ssl"`
	CertPath  string `mapstructure:"cert_path"`
	AccessKey string `mapstructure:"access_key"`
	SecretKey string `mapstructure:"secret_key"`
}

DRLMAgentMinioConfig is the configuration related wtih the Minio of a DRLM Agent

Jump to

Keyboard shortcuts

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