nodemanager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.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 Superviser

type Superviser struct {
	*superviser.Superviser
	// contains filtered or unexported fields
}

func NewSuperviser

func NewSuperviser(
	binary string,
	arguments []string,
	dataDir string,
	debugDeepMind bool,
	logToZap bool,
	lastSeenBlockNum uint64,
	appLogger *zap.Logger,
	nodelogger *zap.Logger,
) *Superviser

func (*Superviser) GetCommand

func (s *Superviser) GetCommand() string

func (*Superviser) GetName

func (s *Superviser) GetName() string

func (*Superviser) LastSeenBlockNum

func (s *Superviser) LastSeenBlockNum() uint64

func (*Superviser) MarshalLogObject

func (s *Superviser) MarshalLogObject(enc zapcore.ObjectEncoder) error

func (*Superviser) ServerID

func (s *Superviser) ServerID() (string, error)

func (*Superviser) SetLastBlockSeen

func (s *Superviser) SetLastBlockSeen(blockNum uint64)

FIXME: Right now we have the real version because our "Block" are actual Aptos transaction but if we change so that a `Block` becomes a set of transactions, then we need to change here.

func (*Superviser) Start

func (s *Superviser) Start(options ...nodeManager.StartOption) error

Jump to

Keyboard shortcuts

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