toml

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: 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 BitcoinBlockConf

type BitcoinBlockConf struct {
	ConfirmationNum int `toml:"confirmation_num"`
}

BitcoinBlockConf Bitcoinブロック情報

type BitcoinConf

type BitcoinConf struct {
	Host       string `toml:"host"`
	User       string `toml:"user"`
	Pass       string `toml:"pass"`
	PostMode   bool   `toml:"http_post_mode"`
	DisableTLS bool   `toml:"disable_tls"`
	IsMain     bool   `toml:"is_main"`

	Block BitcoinBlockConf `toml:"block"`
	Fee   BitcoinFeeConf   `toml:"fee"`
}

BitcoinConf Bitcoin情報

type BitcoinFeeConf

type BitcoinFeeConf struct {
	AdjustmentMin float64 `toml:"adjustment_min"`
	AdjustmentMax float64 `toml:"adjustment_max"`
}

BitcoinFeeConf fee調整Range

type Config

type Config struct {
	Environment string         `toml:"environment"`
	CoinType    string         `toml:"coin_type"`
	Bitcoin     BitcoinConf    `toml:"bitcoin"`
	MySQL       MySQLConf      `toml:"mysql"`
	TxFile      TxFileConf     `toml:"tx_file"`
	PubkeyFile  PubKeyFileConf `toml:"pubkey_file"`
	GCS         GCSConf        `toml:"gcs"`
	Key         KeyConf        `toml:"key"`
}

Config ルート

func New

func New(file string) (*Config, error)

New configオブジェクトを生成する

type GCSConf

type GCSConf struct {
	StorageKeyPath     string `toml:"storage_key_path"`
	ReceiptBucketName  string `toml:"receipt_bucket_name"`
	PaymentBucketName  string `toml:"payment_bucket_name"`
	TransferBucketName string `toml:"transfer_bucket_name"`
}

GCSConf Google Cloud Storage

type KeyConf

type KeyConf struct {
	Seed string `toml:"seed"`
}

KeyConf keyのデフォルト情報(devモード時にしか利用しない)

type MySQLConf

type MySQLConf struct {
	Host string `toml:"host"`
	DB   string `toml:"dbname"`
	User string `toml:"user"`
	Pass string `toml:"pass"`
}

MySQLConf MySQL情報

type PubKeyFileConf

type PubKeyFileConf struct {
	BasePath string `toml:"base_path"`
}

PubKeyFileConf 保存されるtransactionファイル情報 import/export共にこのパスが使われる

type TxFileConf

type TxFileConf struct {
	BasePath string `toml:"base_path"`
}

TxFileConf 保存されるtransactionファイル情報 import/export共にこのパスが使われる

Jump to

Keyboard shortcuts

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