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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accounts

type Accounts struct {
	AuthorizingSeed    string `mapstructure:"authorizing_seed"`
	BaseSeed           string `mapstructure:"base_seed"`
	IssuingAccountID   string `mapstructure:"issuing_account_id"`
	ReceivingAccountID string `mapstructure:"receiving_account_id"`
}

Accounts contains values of `accounts` config group

type Asset

type Asset struct {
	Code   string
	Issuer string
}

Asset represents credit asset

type Callbacks

type Callbacks struct {
	Receive string
	Error   string
}

Callbacks contains values of `callbacks` config group

type Config

type Config struct {
	Port              *int
	Horizon           string
	Compliance        string
	LogFormat         string `mapstructure:"log_format"`
	MACKey            string `mapstructure:"mac_key"`
	APIKey            string `mapstructure:"api_key"`
	NetworkPassphrase string `mapstructure:"network_passphrase"`
	Develop           bool
	Assets            []Asset
	Database          struct {
		Type string
		URL  string
	}
	Accounts
	Callbacks
}

Config contains config params of the bridge server

func (*Config) Validate

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

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

Jump to

Keyboard shortcuts

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