chainsched

package
v1.26.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeAPI

type NodeAPI interface {
	ChainHead(context.Context) (*types.TipSet, error)
	ChainNotify(context.Context) (<-chan []*api.HeadChange, error)
}

type ProviderChainSched

type ProviderChainSched struct {
	// contains filtered or unexported fields
}

func New

func New(api NodeAPI) *ProviderChainSched

func (*ProviderChainSched) AddHandler

func (s *ProviderChainSched) AddHandler(ch UpdateFunc) error

func (*ProviderChainSched) Run

func (s *ProviderChainSched) Run(ctx context.Context)

type UpdateFunc

type UpdateFunc func(ctx context.Context, revert, apply *types.TipSet) error

Jump to

Keyboard shortcuts

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