operations

package
v0.0.0-...-c85edb6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package operations defines the life-cycle of beacon block operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BeaconDB       *db.BeaconDB
	ReceiveExitBuf int
	ReceiveAttBuf  int
}

Config options for the service.

type Service

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

Service represents a service that handles the internal logic of beacon block operations.

func NewOperationService

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

NewOperationService instantiates a new service instance that will be registered into a running beacon node.

func (*Service) IncomingAttFeed

func (s *Service) IncomingAttFeed() *event.Feed

IncomingAttFeed returns a feed that any service can send incoming p2p attestations into. The beacon block operation service will subscribe to this feed in order to relay incoming attestations.

func (*Service) IncomingExitFeed

func (s *Service) IncomingExitFeed() *event.Feed

IncomingExitFeed returns a feed that any service can send incoming p2p exits object into. The beacon block operation service will subscribe to this feed in order to relay incoming exits.

func (*Service) Start

func (s *Service) Start()

Start an beacon block operation service's main event loop.

func (*Service) Status

func (s *Service) Status() error

Status returns the current service error if there's any.

func (*Service) Stop

func (s *Service) Stop() error

Stop the beacon block operation service's main event loop and associated goroutines.

Jump to

Keyboard shortcuts

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