debug

package
v0.0.0-...-d79950a Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package debug defines a gRPC server implementation of a debugging service which allows for helpful endpoints to debug a beacon node at runtime, this server is gated behind the feature flag --enable-debug-rpc-endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	GenesisTimeFetcher blockchain.TimeFetcher
	StateGen           *stategen.State
}

Server defines a server implementation of the gRPC Debug service, providing RPC endpoints for runtime debugging of a node, this server is gated behind the feature flag --enable-debug-rpc-endpoints.

func (*Server) GetBeaconState

func (ds *Server) GetBeaconState(
	ctx context.Context,
	req *pbrpc.BeaconStateRequest,
) (*pbp2p.BeaconState, error)

GetBeaconState retrieves a beacon state from the beacon node by either a slot or block root.

func (*Server) SetLoggingLevel

func (ds *Server) SetLoggingLevel(ctx context.Context, req *pbrpc.LoggingLevelRequest) (*ptypes.Empty, error)

SetLoggingLevel of a beacon node according to a request type, either INFO, DEBUG, or TRACE.

Jump to

Keyboard shortcuts

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