Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port int `valid:"required"` UsingProxy bool `valid:"optional" toml:"using_proxy"` Bitcoin *bitcoinConfig `valid:"optional" toml:"bitcoin"` Ethereum *ethereumConfig `valid:"optional" toml:"ethereum"` AccessControlAllowOriginHeader string `valid:"optional" toml:"access-control-allow-origin-header"` Stellar struct { Horizon string `valid:"required" toml:"horizon"` NetworkPassphrase string `valid:"required" toml:"network_passphrase"` // TokenAssetCode is asset code of token that will be purchased using BTC or ETH. TokenAssetCode string `valid:"required" toml:"token_asset_code"` // NeedsAuthorize should be set to true if issuers's authorization required flag is set. NeedsAuthorize bool `valid:"optional" toml:"needs_authorize"` // IssuerPublicKey is public key of the assets issuer or hot wallet. IssuerPublicKey string `valid:"required" toml:"issuer_public_key"` // SignerSecretKey is: // * Issuer's secret key if only one instance of Bifrost is deployed. // * Channel's secret key if more than one instance of Bifrost is deployed. // https://www.stellar.org/developers/guides/channels.html // Signer's sequence number will be consumed in transaction's sequence number. SignerSecretKey string `valid:"required" toml:"signer_secret_key"` // StartingBalance is the starting amount of XLM for newly created accounts. // Default value is 41. Increase it if you need Data records / other custom entities on new account. StartingBalance string `valid:"optional,numeric" toml:"starting_balance"` } `valid:"required" toml:"stellar"` Database struct { Type string `valid:"matches(^postgres$)"` DSN string `valid:"required"` } `valid:"required"` }
Click to show internal directories.
Click to hide internal directories.