Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CfdConfig ¶
type CfdConfig struct { Network types.NetworkType BitcoinGenesisBlockHash string BitcoinAssetId string }
CfdConfig This struct is cfd's configuration.
func (CfdConfig) GetOptions ¶ added in v0.3.10
func (config CfdConfig) GetOptions() []CfdConfigOption
GetConfigOptions ...
func (*CfdConfig) WithOptions ¶ added in v0.3.10
func (config *CfdConfig) WithOptions(options ...CfdConfigOption) *CfdConfig
WithOptions ...
type CfdConfigOption ¶ added in v0.3.10
type CfdConfigOption func(*CfdConfig)
func BitcoinAssetIdOption ¶ added in v0.3.10
func BitcoinAssetIdOption(bitcoinAssetId string) CfdConfigOption
BitcoinAssetIdOption returns configuration option function.
func BitcoinGenesisBlockHashOption ¶ added in v0.3.10
func BitcoinGenesisBlockHashOption(genesisBlockHash string) CfdConfigOption
BitcoinGenesisBlockHashOption returns configuration option function.
func NetworkOption ¶ added in v0.3.10
func NetworkOption(networkType types.NetworkType) CfdConfigOption
NetworkOption returns configuration option function.
Click to show internal directories.
Click to hide internal directories.