core

package
v0.0.0-...-78bbe0b Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const HeartbeatCheckInterval = 5 * time.Second
View Source
const OfflineKickThreshold = 2 * time.Hour
View Source
const OfflineTimeout = 30 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

type Core

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

func New

func New(config Config, store *store.Store, notifChan chan types.Notification) *Core

func (*Core) Attestations

func (c *Core) Attestations(ctx context.Context, req *proto.AttestationsRequest) (*proto.DefaultResponse, error)

func (*Core) ChainHead

func (c *Core) ChainHead(ctx context.Context, req *proto.ChainHeadRequest) (*proto.ChainHeadResponse, error)

func (*Core) Close

func (c *Core) Close()

func (*Core) Connect

func (c *Core) Connect(ctx context.Context, req *proto.ConnectRequest) (*proto.ConnectResponse, error)

func (*Core) Heartbeat

func (c *Core) Heartbeat(ctx context.Context, req *proto.HeartbeatRequest) (*proto.HeartbeatResponse, error)

func (*Core) MemoryUsage

func (c *Core) MemoryUsage(ctx context.Context, req *proto.MemoryUsageRequest) (*proto.DefaultResponse, error)

func (*Core) Peers

func (c *Core) Peers(ctx context.Context, req *proto.PeersRequest) (*proto.DefaultResponse, error)

func (*Core) Run

func (c *Core) Run()

func (*Core) Syncing

func (c *Core) Syncing(ctx context.Context, req *proto.SyncingRequest) (*proto.DefaultResponse, error)

func (*Core) Telemetry

func (c *Core) Telemetry(ctx context.Context, req *proto.TelemetryRequest) (*proto.TelemetryResponse, error)

Deprecated

Jump to

Keyboard shortcuts

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