services

package
v1.10.17 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package services contain the key components of the Chainlink node. This includes the Application, JobRunner, LogListener, and Scheduler.

Application

The Application is the main component used for starting and stopping the Chainlink node.

JobRunner

The JobRunner keeps track of Runs within a Job and ensures that they're executed in order. Within each Run, the tasks are also executed from the JobRunner.

JobSubscriber

The JobSubscriber coordinates running job events with the EventLog in the Store, and also subscribes to the given address on the Ethereum blockchain.

Scheduler

The Scheduler ensures that recurring events are executed according to their schedule, and one-time events occur only when the specified time has passed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproximateFloat64 added in v1.10.16

func ApproximateFloat64(e *assets.Eth) (float64, error)

func NewPromReporter added in v1.10.16

func NewPromReporter(db *sql.DB, opts ...interface{}) *promReporter

Types

type BalanceMonitor added in v1.10.16

type BalanceMonitor interface {
	httypes.HeadTrackable
	GetEthBalance(gethCommon.Address) *assets.Eth
	service.Service
}

BalanceMonitor checks the balance for each key on every new head

func NewBalanceMonitor added in v1.10.16

func NewBalanceMonitor(db *gorm.DB, ethClient eth.Client, ethKeyStore keystore.Eth, logger logger.Logger) BalanceMonitor

NewBalanceMonitor returns a new balanceMonitor

type NullBalanceMonitor added in v1.10.16

type NullBalanceMonitor struct{}

func (*NullBalanceMonitor) Close added in v1.10.16

func (*NullBalanceMonitor) Close() error

func (*NullBalanceMonitor) GetEthBalance added in v1.10.16

func (*NullBalanceMonitor) GetEthBalance(gethCommon.Address) *assets.Eth

func (*NullBalanceMonitor) Healthy added in v1.10.16

func (*NullBalanceMonitor) Healthy() error

func (*NullBalanceMonitor) OnNewLongestChain added in v1.10.16

func (*NullBalanceMonitor) OnNewLongestChain(ctx context.Context, head eth.Head)

func (*NullBalanceMonitor) Ready added in v1.10.16

func (*NullBalanceMonitor) Ready() error

func (*NullBalanceMonitor) Start added in v1.10.16

func (*NullBalanceMonitor) Start() error

type PrometheusBackend added in v1.10.16

type PrometheusBackend interface {
	SetUnconfirmedTransactions(*big.Int, int64)
	SetMaxUnconfirmedAge(*big.Int, float64)
	SetMaxUnconfirmedBlocks(*big.Int, int64)
	SetPipelineRunsQueued(n int)
	SetPipelineTaskRunsQueued(n int)
}

Directories

Path Synopsis
eth
gas
job
log
signatures
cryptotest
Package cryptotest provides convenience functions for kyber-based APIs.
Package cryptotest provides convenience functions for kyber-based APIs.
ethdss
Package ethdss implements the Distributed Schnorr Signature protocol from the ////////////////////////////////////////////////////////////////////////////// XXX: Do not use in production until this code has been audited.
Package ethdss implements the Distributed Schnorr Signature protocol from the ////////////////////////////////////////////////////////////////////////////// XXX: Do not use in production until this code has been audited.
ethschnorr
Package ethschnorr implements a version of the Schnorr signature which is ////////////////////////////////////////////////////////////////////////////// XXX: Do not use in production until this code has been audited.
Package ethschnorr implements a version of the Schnorr signature which is ////////////////////////////////////////////////////////////////////////////// XXX: Do not use in production until this code has been audited.
secp256k1
Package secp256k1 is an implementation of the kyber.{Group,Point,Scalar} ////////////////////////////////////////////////////////////////////////////// XXX: Do not use in production until this code has been audited.
Package secp256k1 is an implementation of the kyber.{Group,Point,Scalar} ////////////////////////////////////////////////////////////////////////////// XXX: Do not use in production until this code has been audited.
vrf

Jump to

Keyboard shortcuts

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