resharding

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReshardingCheckTime = time.Second
)

Constants for resharding service.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is the role conversion service.

func New

func New(beaconChain *core.BlockChain) *Service

New returns role conversion service.

func (*Service) APIs

func (s *Service) APIs() []rpc.API

APIs for the services.

func (*Service) DoService

func (s *Service) DoService()

DoService does role conversion.

func (*Service) Init

func (s *Service) Init()

Init initializes role conversion service.

func (*Service) NotifyService

func (s *Service) NotifyService(params map[string]interface{})

NotifyService notify service

func (*Service) Run

func (s *Service) Run(stopChan chan struct{}, stoppedChan chan struct{})

Run runs role conversion.

func (*Service) SetMessageChan

func (s *Service) SetMessageChan(messageChan chan *msg_pb.Message)

SetMessageChan sets up message channel to service.

func (*Service) StartService

func (s *Service) StartService()

StartService starts role conversion service.

func (*Service) StopService

func (s *Service) StopService()

StopService stops role conversion service.

Jump to

Keyboard shortcuts

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