Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Benchmarks ¶
type Benchmarks sonm.Benchmarks
type Config ¶
type Config struct {
Node nodeConfig `yaml:"node"`
Eth accounts.EthConfig `yaml:"ethereum"`
Market marketConfig `yaml:"market"`
Mining miningConfig `yaml:"mining"`
Log logging.Config `yaml:"log"`
Engine engineConfig `yaml:"engine"`
BenchmarkList benchmarks.Config `yaml:"benchmarks"`
AntiFraud antifraud.Config `yaml:"antifraud"`
Metrics string `yaml:"metrics" default:"127.0.0.1:14005"`
}
type Corder ¶
type Corder struct {
*sonm.Order
// contains filtered or unexported fields
}
func (*Corder) GetHashrate ¶
type CorderCancelTuple ¶ added in v0.4.9
type CorderCancelTuple struct {
// contains filtered or unexported fields
}
type CorderFactoriy ¶ added in v0.4.9
type CorderFactoriy interface {
FromOrder(order *sonm.Order) *Corder
FromParams(price *big.Int, hashrate uint64, bench Benchmarks) *Corder
FromSlice(orders []*sonm.Order) []*Corder
}
func NewCorderFactory ¶ added in v0.4.9
func NewCorderFactory(token string, benchmarkIndex int) CorderFactoriy
type Deal ¶ added in v0.4.10
type Deal struct {
*sonm.Deal
// contains filtered or unexported fields
}
type DealFactory ¶ added in v0.4.10
type DealFactory interface {
FromDeal(deal *sonm.Deal) *Deal
}
func NewDealFactory ¶ added in v0.4.10
func NewDealFactory(benchmarkIndex int) DealFactory
Click to show internal directories.
Click to hide internal directories.