config

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCfdConfig

func SetCfdConfig(config CfdConfig) error

SetCfdConfig ...

Types

type CfdConfig

type CfdConfig struct {
	Network                 types.NetworkType
	BitcoinGenesisBlockHash string
	BitcoinAssetId          string
}

CfdConfig This struct is cfd's configuration.

func GetCurrentCfdConfig

func GetCurrentCfdConfig() *CfdConfig

GetCurrentCfdConfig ...

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.

Jump to

Keyboard shortcuts

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