config

package
v1.6.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceWorker

type BalanceWorker struct {
	WaitResponseTimeout int64 `yaml:"wait_response_timeout"` // in seconds
	ScrapingTime        int64 `yaml:"scraping_time"`         // in seconds
}

BalanceWorker represents worker options described in "workers.balance" section of the config yaml file.

type Consumer

type Consumer struct {
	ID    string `yaml:"id"`
	ExtID string `yaml:"ext_id"`
	Host  string `yaml:"host"`
}

Consumer represents config used for registration of node.

func (*Consumer) Read

func (c *Consumer) Read(path string) error

Read reads config yaml file from path.

type Handler

type Handler struct {
	RateLimit float64    `yaml:"rate_limit"` // per second
	Log       LogHandler `yaml:"log"`
}

Handler represents config options for handlers.

type LogHandler

type LogHandler struct {
	BufLength int64 `yaml:"buf_length"` // in kilobytes
}

LogHandler represents config options described in "handler.log" section of the config yaml file.

type Provider

type Provider struct {
	ID       string `yaml:"id"`
	ExtID    string `yaml:"ext_id"`
	Host     string `yaml:"host"`
	MinStake int64  `yaml:"min_stake"`
}

Provider represents configs of the providers' node.

func (*Provider) Read

func (p *Provider) Read(path string) error

Read reads config yaml file from path.

type ServerChain

type ServerChain struct {
	ID              string `yaml:"id"`
	OwnerID         string `yaml:"owner_id"`
	BlockWorker     string `yaml:"block_worker"`
	SignatureScheme string `yaml:"signature_scheme"`
}

ServerChain represents config describes blockchain options and signature scheme options.

Jump to

Keyboard shortcuts

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