config

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0, BSD-2-Clause-Views, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callbacks

type Callbacks struct {
	Sanctions string
	AskUser   string `mapstructure:"ask_user"`
	FetchInfo string `mapstructure:"fetch_info"`
	TxStatus  string `mapstructure:"tx_status"`
}

Callbacks contains values of `callbacks` config group

type Config

type Config struct {
	ExternalPort      *int   `mapstructure:"external_port"`
	InternalPort      *int   `mapstructure:"internal_port"`
	LogFormat         string `mapstructure:"log_format"`
	NeedsAuth         bool   `mapstructure:"needs_auth"`
	NetworkPassphrase string `mapstructure:"network_passphrase"`
	Database          struct {
		Type string
		URL  string
	}
	Keys
	Callbacks
	TLS struct {
		CertificateFile string `mapstructure:"certificate_file"`
		PrivateKeyFile  string `mapstructure:"private_key_file"`
	}
	TxStatusAuth struct {
		Username string `mapstructure:"username"`
		Password string `mapstructure:"password"`
	} `mapstructure:"tx_status_auth"`
}

Config contains config params of the compliance server

func (*Config) Validate

func (c *Config) Validate() (err error)

Validate validates config and returns error if any of config values is incorrect

type Keys

type Keys struct {
	SigningSeed string `mapstructure:"signing_seed"`
}

Keys contains values of `keys` config group

Jump to

Keyboard shortcuts

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