servicesctrl

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricProduceProcessedCountKey = "produce_records_processed"
	MetricProduceSuccessCountKey   = "produce_records_success"
	MetricProduceFailureCountKey   = "produce_records_failure"

	MetricConsumeProcessedCountKey       = "consume_records_processed"
	MetricConsumeProcessMillisCounterKey = "consume_records_process_millis"
	MetricConsumeSuccessCountKey         = "consume_records_success"
	MetricConsumeFailureCountKey         = "consume_records_failure"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	Services                   cfg.Services
	ServicesCfg                cfg.Config
	Chains                     map[string]cfg.Chain `json:"chains"`
	Log                        logging.Logger
	Persist                    idb.Persist
	Features                   map[string]struct{}
	BalanceManager             *balance.Manager
	GenesisContainer           *servicesgenesis.GenesisContainer
	IsAccumulateBalanceIndexer bool
	IsAccumulateBalanceReader  bool
	IsDisableBootstrap         bool
	IsAggregateCache           bool
	IsCChainIndex              bool
	IndexedList                indexedlist.IndexedList
	LocalTxPool                chan *LocalTxPoolJob
}

func (*Control) DatabaseOnly

func (s *Control) DatabaseOnly() (*servicesconn.Connections, error)

func (*Control) DatabaseRO

func (s *Control) DatabaseRO() (*servicesconn.Connections, error)

func (*Control) Enqueue

func (s *Control) Enqueue(pool *idb.TxPool)

func (*Control) Init

func (s *Control) Init(networkID uint32) error

func (*Control) InitConsumeMetrics

func (s *Control) InitConsumeMetrics()

func (*Control) InitProduceMetrics

func (s *Control) InitProduceMetrics()

func (*Control) Logger

func (s *Control) Logger() logging.Logger

type LocalTxPoolJob

type LocalTxPoolJob struct {
	TxPool *idb.TxPool
	Errs   *avlancheGoUtils.AtomicInterface
}

Jump to

Keyboard shortcuts

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