config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataSourceKindTzKT = "tzkt"
	DataSourceKindNode = "tezos-node"
)

Data source kinds

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	config.Config `yaml:",inline"`
	Mempool       Mempool `yaml:"mempool"`
}

Config

func Load

func Load(filename string) (cfg Config, err error)

Load -

func (*Config) Substitute

func (c *Config) Substitute() error

Substitute -

func (*Config) Validate

func (c *Config) Validate() error

Validate -

type Filters

type Filters struct {
	Accounts []string `yaml:"accounts"`
	Kinds    []string `yaml:"kinds"`
}

Filters -

func (Filters) Validate

func (cfg Filters) Validate() error

Validate -

type Indexer

type Indexer struct {
	Filters    Filters           `yaml:"filters"`
	DataSource MempoolDataSource `yaml:"datasources"`
}

Indexer -

type Mempool

type Mempool struct {
	Indexers map[string]*Indexer `yaml:"indexers"`
	Settings Settings            `yaml:"settings"`
}

Mempool -

type MempoolDataSource

type MempoolDataSource struct {
	Tzkt string   `yaml:"tzkt"`
	RPC  []string `yaml:"rpc"`
}

MempoolDataSource -

func (MempoolDataSource) Validate

func (cfg MempoolDataSource) Validate() error

Validate -

type Settings

type Settings struct {
	KeepOperations         uint64 `yaml:"keep_operations_seconds"`
	ExpiredAfter           uint64 `yaml:"expired_after_blocks"`
	KeepInChainBlocks      uint64 `yaml:"keep_in_chain_blocks"`
	MempoolRequestInterval uint64 `yaml:"mempool_request_interval_seconds"`
	RPCTimeout             uint64 `yaml:"rpc_timeout_seconds"`
	GasStatsLifetime       uint64 `yaml:"gas_stats_lifetime"`
}

Settings -

func (*Settings) Validate

func (settings *Settings) Validate() error

Validate -

Jump to

Keyboard shortcuts

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