connor

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, cfg *Config, log *zap.Logger) (*engine, error)

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"`
}

func NewConfig

func NewConfig(path string) (*Config, error)

type Corder

type Corder struct {
	*sonm.Order
	// contains filtered or unexported fields
}

func (*Corder) AsBID

func (co *Corder) AsBID() *sonm.BidOrder

func (*Corder) GetHashrate

func (co *Corder) GetHashrate() uint64

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
}

func (*Deal) Unwrap added in v0.4.10

func (d *Deal) Unwrap() *sonm.Deal

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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