archiver

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BeaconDB        db.Database
	HeadFetcher     blockchain.HeadFetcher
	NewHeadNotifier blockchain.NewHeadNotifier
}

Config options for the archiver service.

type Service

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

Service defining archiver functionality for persisting checkpointed beacon chain information to a database backend for historical purposes.

func NewArchiverService

func NewArchiverService(ctx context.Context, cfg *Config) *Service

NewArchiverService initializes the service from configuration options.

func (*Service) Start

func (s *Service) Start()

Start the archiver service event loop.

func (*Service) Status

func (s *Service) Status() error

Status reports the healthy status of the archiver. Returning nil means service is correctly running without error.

func (*Service) Stop

func (s *Service) Stop() error

Stop the archiver service event loop.

Jump to

Keyboard shortcuts

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