Documentation
¶
Index ¶
- func Validator(cv reflect.Value) (bool, error)
- type AccessorOptions
- type AccountManagerOptions
- type CommonOptions
- type ExtractorOptions
- type GateWayOptions
- type GatewayFiltersOptions
- type GlobalConfig
- type IpfsOptions
- type JsonrpcOptions
- type KeyStoreOptions
- type LogOptions
- type MarketCapOptions
- type MarketOptions
- type MinerOptions
- type MysqlOptions
- type NormalMinerAddress
- type OrderManagerOptions
- type PercentMinerAddress
- type ProtocolOptions
- type RedisOptions
- type TimingMatcher
- type UserManagerOptions
- type WebsocketOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessorOptions ¶
type AccountManagerOptions ¶
type AccountManagerOptions struct {
CacheDuration int64
}
type CommonOptions ¶
type CommonOptions struct {
Erc20Abi string
WethAbi string
ProtocolImpl ProtocolOptions `required:"true"`
OrderMinAmounts map[string]int64 //最小的订单金额,低于该数,则终止匹配订单,每个token的值不同
}
type ExtractorOptions ¶
type GateWayOptions ¶
type GatewayFiltersOptions ¶
type GlobalConfig ¶
type GlobalConfig struct {
Title string `required:"true"`
Mode string `required:"true"`
Owner struct {
Name string
}
Mysql MysqlOptions
Redis RedisOptions
Ipfs IpfsOptions
Jsonrpc JsonrpcOptions
Websocket WebsocketOptions
GatewayFilters GatewayFiltersOptions
OrderManager OrderManagerOptions
Gateway GateWayOptions
Accessor AccessorOptions
Extractor ExtractorOptions
Common CommonOptions
Miner MinerOptions
Log LogOptions
Keystore KeyStoreOptions
Market MarketOptions
MarketCap MarketCapOptions
UserManager UserManagerOptions
AccountManager AccountManagerOptions
}
func LoadConfig ¶
func LoadConfig(file string) *GlobalConfig
type IpfsOptions ¶
func (IpfsOptions) Url ¶
func (opts IpfsOptions) Url() string
type JsonrpcOptions ¶
type JsonrpcOptions struct {
Port string
}
type KeyStoreOptions ¶
type LogOptions ¶
type MarketCapOptions ¶
type MarketOptions ¶
type MinerOptions ¶
type MinerOptions struct {
RingMaxLength int `` //recommended value:4
Name string
Subsidy float64
WalletSplit float64
NormalMiners []NormalMinerAddress //
PercentMiners []PercentMinerAddress //
TimingMatcher *TimingMatcher
RateRatioCVSThreshold int64
MinGasLimit int64
MaxGasLimit int64
FeeReceipt string
}
type MysqlOptions ¶
type NormalMinerAddress ¶
type NormalMinerAddress struct {
Address string
MaxPendingTtl int //if a tx is still pending after MaxPendingTtl blocks, the nonce used by it will be used again.
MaxPendingCount int64 //this addr will be used to send tx again until the count of pending txs belows MaxPendingCount.
GasPriceLimit int64 //the max gas price
}
type OrderManagerOptions ¶
type PercentMinerAddress ¶
type ProtocolOptions ¶
type RedisOptions ¶
type TimingMatcher ¶
type UserManagerOptions ¶
type WebsocketOptions ¶
type WebsocketOptions struct {
Port string
}
Click to show internal directories.
Click to hide internal directories.