Documentation
¶
Index ¶
Constants ¶
View Source
const ( EtcdSymbolPrefix = "Symbol/" EtcdCoinPrefix = "Coin/" )
Variables ¶
This section is empty.
Functions ¶
func InitSymbolConfig ¶
func InitSymbolConfig(key string, etcdConfig etcd.EtcdConfig, symbolInfo *SymbolInfo)
Types ¶
type SymbolCoinConfig ¶
type SymbolCoinConfig[Key string | int32, Value *SymbolInfo | *CoinInfo] map[Key]Value
func (SymbolCoinConfig[Key, Value]) CastToSyncMap ¶
func (s SymbolCoinConfig[Key, Value]) CastToSyncMap() *sync.Map
type SymbolInfo ¶
type SymbolInfo struct {
SymbolName string
SymbolID int32
BaseCoinName string
BaseCoinID int32
QuoteCoinName string
QuoteCoinID int32
BaseCoinPrecValue int32 `yaml:"baseCoinPrec"`
QuoteCoinPrecValue int32 `yaml:"quoteCoinPrec"`
BaseCoinPrec atomic.Int32 `yaml:"-"`
QuoteCoinPrec atomic.Int32 `yaml:"-"`
}
Click to show internal directories.
Click to hide internal directories.