ethereum_beacon_rpc_v1

package
v1.0.0-alpha.10.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDebug        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDebug          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDebug = fmt.Errorf("proto: unexpected end of group")
)
View Source
var LoggingLevelRequest_Level_name = map[int32]string{
	0: "INFO",
	1: "DEBUG",
	2: "TRACE",
}
View Source
var LoggingLevelRequest_Level_value = map[string]int32{
	"INFO":  0,
	"DEBUG": 1,
	"TRACE": 2,
}

Functions

func RegisterDebugServer

func RegisterDebugServer(s *grpc.Server, srv DebugServer)

Types

type BeaconStateRequest

type BeaconStateRequest struct {
	// Types that are valid to be assigned to QueryFilter:
	//	*BeaconStateRequest_Slot
	//	*BeaconStateRequest_BlockRoot
	QueryFilter          isBeaconStateRequest_QueryFilter `protobuf_oneof:"query_filter"`
	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
	XXX_unrecognized     []byte                           `json:"-"`
	XXX_sizecache        int32                            `json:"-"`
}

func (*BeaconStateRequest) Descriptor

func (*BeaconStateRequest) Descriptor() ([]byte, []int)

func (*BeaconStateRequest) GetBlockRoot

func (m *BeaconStateRequest) GetBlockRoot() []byte

func (*BeaconStateRequest) GetQueryFilter

func (m *BeaconStateRequest) GetQueryFilter() isBeaconStateRequest_QueryFilter

func (*BeaconStateRequest) GetSlot

func (m *BeaconStateRequest) GetSlot() uint64

func (*BeaconStateRequest) Marshal

func (m *BeaconStateRequest) Marshal() (dAtA []byte, err error)

func (*BeaconStateRequest) MarshalTo

func (m *BeaconStateRequest) MarshalTo(dAtA []byte) (int, error)

func (*BeaconStateRequest) MarshalToSizedBuffer

func (m *BeaconStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BeaconStateRequest) ProtoMessage

func (*BeaconStateRequest) ProtoMessage()

func (*BeaconStateRequest) Reset

func (m *BeaconStateRequest) Reset()

func (*BeaconStateRequest) Size

func (m *BeaconStateRequest) Size() (n int)

func (*BeaconStateRequest) String

func (m *BeaconStateRequest) String() string

func (*BeaconStateRequest) Unmarshal

func (m *BeaconStateRequest) Unmarshal(dAtA []byte) error

func (*BeaconStateRequest) XXX_DiscardUnknown

func (m *BeaconStateRequest) XXX_DiscardUnknown()

func (*BeaconStateRequest) XXX_Marshal

func (m *BeaconStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BeaconStateRequest) XXX_Merge

func (m *BeaconStateRequest) XXX_Merge(src proto.Message)

func (*BeaconStateRequest) XXX_OneofWrappers

func (*BeaconStateRequest) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BeaconStateRequest) XXX_Size

func (m *BeaconStateRequest) XXX_Size() int

func (*BeaconStateRequest) XXX_Unmarshal

func (m *BeaconStateRequest) XXX_Unmarshal(b []byte) error

type BeaconStateRequest_BlockRoot

type BeaconStateRequest_BlockRoot struct {
	BlockRoot []byte `protobuf:"bytes,2,opt,name=block_root,json=blockRoot,proto3,oneof" json:"block_root,omitempty"`
}

func (*BeaconStateRequest_BlockRoot) MarshalTo

func (m *BeaconStateRequest_BlockRoot) MarshalTo(dAtA []byte) (int, error)

func (*BeaconStateRequest_BlockRoot) MarshalToSizedBuffer

func (m *BeaconStateRequest_BlockRoot) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BeaconStateRequest_BlockRoot) Size

func (m *BeaconStateRequest_BlockRoot) Size() (n int)

type BeaconStateRequest_Slot

type BeaconStateRequest_Slot struct {
	Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3,oneof" json:"slot,omitempty"`
}

func (*BeaconStateRequest_Slot) MarshalTo

func (m *BeaconStateRequest_Slot) MarshalTo(dAtA []byte) (int, error)

func (*BeaconStateRequest_Slot) MarshalToSizedBuffer

func (m *BeaconStateRequest_Slot) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BeaconStateRequest_Slot) Size

func (m *BeaconStateRequest_Slot) Size() (n int)

type BlockRequest

type BlockRequest struct {
	BlockRoot            []byte   `protobuf:"bytes,1,opt,name=block_root,json=blockRoot,proto3" json:"block_root,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockRequest) Descriptor

func (*BlockRequest) Descriptor() ([]byte, []int)

func (*BlockRequest) GetBlockRoot

func (m *BlockRequest) GetBlockRoot() []byte

func (*BlockRequest) Marshal

func (m *BlockRequest) Marshal() (dAtA []byte, err error)

func (*BlockRequest) MarshalTo

func (m *BlockRequest) MarshalTo(dAtA []byte) (int, error)

func (*BlockRequest) MarshalToSizedBuffer

func (m *BlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BlockRequest) ProtoMessage

func (*BlockRequest) ProtoMessage()

func (*BlockRequest) Reset

func (m *BlockRequest) Reset()

func (*BlockRequest) Size

func (m *BlockRequest) Size() (n int)

func (*BlockRequest) String

func (m *BlockRequest) String() string

func (*BlockRequest) Unmarshal

func (m *BlockRequest) Unmarshal(dAtA []byte) error

func (*BlockRequest) XXX_DiscardUnknown

func (m *BlockRequest) XXX_DiscardUnknown()

func (*BlockRequest) XXX_Marshal

func (m *BlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockRequest) XXX_Merge

func (m *BlockRequest) XXX_Merge(src proto.Message)

func (*BlockRequest) XXX_Size

func (m *BlockRequest) XXX_Size() int

func (*BlockRequest) XXX_Unmarshal

func (m *BlockRequest) XXX_Unmarshal(b []byte) error

type DebugClient

type DebugClient interface {
	GetBeaconState(ctx context.Context, in *BeaconStateRequest, opts ...grpc.CallOption) (*SSZResponse, error)
	GetBlock(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (*SSZResponse, error)
	SetLoggingLevel(ctx context.Context, in *LoggingLevelRequest, opts ...grpc.CallOption) (*types.Empty, error)
	GetProtoArrayForkChoice(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*ProtoArrayForkChoiceResponse, error)
}

DebugClient is the client API for Debug service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDebugClient

func NewDebugClient(cc *grpc.ClientConn) DebugClient

type DebugServer

type DebugServer interface {
	GetBeaconState(context.Context, *BeaconStateRequest) (*SSZResponse, error)
	GetBlock(context.Context, *BlockRequest) (*SSZResponse, error)
	SetLoggingLevel(context.Context, *LoggingLevelRequest) (*types.Empty, error)
	GetProtoArrayForkChoice(context.Context, *types.Empty) (*ProtoArrayForkChoiceResponse, error)
}

DebugServer is the server API for Debug service.

type LoggingLevelRequest

type LoggingLevelRequest struct {
	Level                LoggingLevelRequest_Level `protobuf:"varint,1,opt,name=level,proto3,enum=ethereum.beacon.rpc.v1.LoggingLevelRequest_Level" json:"level,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*LoggingLevelRequest) Descriptor

func (*LoggingLevelRequest) Descriptor() ([]byte, []int)

func (*LoggingLevelRequest) GetLevel

func (*LoggingLevelRequest) Marshal

func (m *LoggingLevelRequest) Marshal() (dAtA []byte, err error)

func (*LoggingLevelRequest) MarshalTo

func (m *LoggingLevelRequest) MarshalTo(dAtA []byte) (int, error)

func (*LoggingLevelRequest) MarshalToSizedBuffer

func (m *LoggingLevelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoggingLevelRequest) ProtoMessage

func (*LoggingLevelRequest) ProtoMessage()

func (*LoggingLevelRequest) Reset

func (m *LoggingLevelRequest) Reset()

func (*LoggingLevelRequest) Size

func (m *LoggingLevelRequest) Size() (n int)

func (*LoggingLevelRequest) String

func (m *LoggingLevelRequest) String() string

func (*LoggingLevelRequest) Unmarshal

func (m *LoggingLevelRequest) Unmarshal(dAtA []byte) error

func (*LoggingLevelRequest) XXX_DiscardUnknown

func (m *LoggingLevelRequest) XXX_DiscardUnknown()

func (*LoggingLevelRequest) XXX_Marshal

func (m *LoggingLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoggingLevelRequest) XXX_Merge

func (m *LoggingLevelRequest) XXX_Merge(src proto.Message)

func (*LoggingLevelRequest) XXX_Size

func (m *LoggingLevelRequest) XXX_Size() int

func (*LoggingLevelRequest) XXX_Unmarshal

func (m *LoggingLevelRequest) XXX_Unmarshal(b []byte) error

type LoggingLevelRequest_Level

type LoggingLevelRequest_Level int32
const (
	LoggingLevelRequest_INFO  LoggingLevelRequest_Level = 0
	LoggingLevelRequest_DEBUG LoggingLevelRequest_Level = 1
	LoggingLevelRequest_TRACE LoggingLevelRequest_Level = 2
)

func (LoggingLevelRequest_Level) EnumDescriptor

func (LoggingLevelRequest_Level) EnumDescriptor() ([]byte, []int)

func (LoggingLevelRequest_Level) String

func (x LoggingLevelRequest_Level) String() string

type ProtoArrayForkChoiceResponse

type ProtoArrayForkChoiceResponse struct {
	PruneThreshold       uint64            `protobuf:"varint,1,opt,name=prune_threshold,json=pruneThreshold,proto3" json:"prune_threshold,omitempty"`
	JustifiedEpoch       uint64            `protobuf:"varint,2,opt,name=justified_epoch,json=justifiedEpoch,proto3" json:"justified_epoch,omitempty"`
	FinalizedEpoch       uint64            `protobuf:"varint,3,opt,name=finalized_epoch,json=finalizedEpoch,proto3" json:"finalized_epoch,omitempty"`
	ProtoArrayNodes      []*ProtoArrayNode `protobuf:"bytes,4,rep,name=proto_array_nodes,json=protoArrayNodes,proto3" json:"proto_array_nodes,omitempty"`
	Indices              map[string]uint64 `` /* 156-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*ProtoArrayForkChoiceResponse) Descriptor

func (*ProtoArrayForkChoiceResponse) Descriptor() ([]byte, []int)

func (*ProtoArrayForkChoiceResponse) GetFinalizedEpoch

func (m *ProtoArrayForkChoiceResponse) GetFinalizedEpoch() uint64

func (*ProtoArrayForkChoiceResponse) GetIndices

func (m *ProtoArrayForkChoiceResponse) GetIndices() map[string]uint64

func (*ProtoArrayForkChoiceResponse) GetJustifiedEpoch

func (m *ProtoArrayForkChoiceResponse) GetJustifiedEpoch() uint64

func (*ProtoArrayForkChoiceResponse) GetProtoArrayNodes

func (m *ProtoArrayForkChoiceResponse) GetProtoArrayNodes() []*ProtoArrayNode

func (*ProtoArrayForkChoiceResponse) GetPruneThreshold

func (m *ProtoArrayForkChoiceResponse) GetPruneThreshold() uint64

func (*ProtoArrayForkChoiceResponse) Marshal

func (m *ProtoArrayForkChoiceResponse) Marshal() (dAtA []byte, err error)

func (*ProtoArrayForkChoiceResponse) MarshalTo

func (m *ProtoArrayForkChoiceResponse) MarshalTo(dAtA []byte) (int, error)

func (*ProtoArrayForkChoiceResponse) MarshalToSizedBuffer

func (m *ProtoArrayForkChoiceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProtoArrayForkChoiceResponse) ProtoMessage

func (*ProtoArrayForkChoiceResponse) ProtoMessage()

func (*ProtoArrayForkChoiceResponse) Reset

func (m *ProtoArrayForkChoiceResponse) Reset()

func (*ProtoArrayForkChoiceResponse) Size

func (m *ProtoArrayForkChoiceResponse) Size() (n int)

func (*ProtoArrayForkChoiceResponse) String

func (*ProtoArrayForkChoiceResponse) Unmarshal

func (m *ProtoArrayForkChoiceResponse) Unmarshal(dAtA []byte) error

func (*ProtoArrayForkChoiceResponse) XXX_DiscardUnknown

func (m *ProtoArrayForkChoiceResponse) XXX_DiscardUnknown()

func (*ProtoArrayForkChoiceResponse) XXX_Marshal

func (m *ProtoArrayForkChoiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProtoArrayForkChoiceResponse) XXX_Merge

func (m *ProtoArrayForkChoiceResponse) XXX_Merge(src proto.Message)

func (*ProtoArrayForkChoiceResponse) XXX_Size

func (m *ProtoArrayForkChoiceResponse) XXX_Size() int

func (*ProtoArrayForkChoiceResponse) XXX_Unmarshal

func (m *ProtoArrayForkChoiceResponse) XXX_Unmarshal(b []byte) error

type ProtoArrayNode

type ProtoArrayNode struct {
	Slot                 uint64   `protobuf:"varint,1,opt,name=slot,proto3" json:"slot,omitempty"`
	Root                 []byte   `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"`
	Parent               uint64   `protobuf:"varint,3,opt,name=parent,proto3" json:"parent,omitempty"`
	JustifiedEpoch       uint64   `protobuf:"varint,4,opt,name=justified_epoch,json=justifiedEpoch,proto3" json:"justified_epoch,omitempty"`
	FinalizedEpoch       uint64   `protobuf:"varint,5,opt,name=finalized_epoch,json=finalizedEpoch,proto3" json:"finalized_epoch,omitempty"`
	Weight               uint64   `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"`
	BestChild            uint64   `protobuf:"varint,7,opt,name=best_child,json=bestChild,proto3" json:"best_child,omitempty"`
	BestDescendant       uint64   `protobuf:"varint,8,opt,name=best_descendant,json=bestDescendant,proto3" json:"best_descendant,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ProtoArrayNode) Descriptor

func (*ProtoArrayNode) Descriptor() ([]byte, []int)

func (*ProtoArrayNode) GetBestChild

func (m *ProtoArrayNode) GetBestChild() uint64

func (*ProtoArrayNode) GetBestDescendant

func (m *ProtoArrayNode) GetBestDescendant() uint64

func (*ProtoArrayNode) GetFinalizedEpoch

func (m *ProtoArrayNode) GetFinalizedEpoch() uint64

func (*ProtoArrayNode) GetJustifiedEpoch

func (m *ProtoArrayNode) GetJustifiedEpoch() uint64

func (*ProtoArrayNode) GetParent

func (m *ProtoArrayNode) GetParent() uint64

func (*ProtoArrayNode) GetRoot

func (m *ProtoArrayNode) GetRoot() []byte

func (*ProtoArrayNode) GetSlot

func (m *ProtoArrayNode) GetSlot() uint64

func (*ProtoArrayNode) GetWeight

func (m *ProtoArrayNode) GetWeight() uint64

func (*ProtoArrayNode) Marshal

func (m *ProtoArrayNode) Marshal() (dAtA []byte, err error)

func (*ProtoArrayNode) MarshalTo

func (m *ProtoArrayNode) MarshalTo(dAtA []byte) (int, error)

func (*ProtoArrayNode) MarshalToSizedBuffer

func (m *ProtoArrayNode) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ProtoArrayNode) ProtoMessage

func (*ProtoArrayNode) ProtoMessage()

func (*ProtoArrayNode) Reset

func (m *ProtoArrayNode) Reset()

func (*ProtoArrayNode) Size

func (m *ProtoArrayNode) Size() (n int)

func (*ProtoArrayNode) String

func (m *ProtoArrayNode) String() string

func (*ProtoArrayNode) Unmarshal

func (m *ProtoArrayNode) Unmarshal(dAtA []byte) error

func (*ProtoArrayNode) XXX_DiscardUnknown

func (m *ProtoArrayNode) XXX_DiscardUnknown()

func (*ProtoArrayNode) XXX_Marshal

func (m *ProtoArrayNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProtoArrayNode) XXX_Merge

func (m *ProtoArrayNode) XXX_Merge(src proto.Message)

func (*ProtoArrayNode) XXX_Size

func (m *ProtoArrayNode) XXX_Size() int

func (*ProtoArrayNode) XXX_Unmarshal

func (m *ProtoArrayNode) XXX_Unmarshal(b []byte) error

type SSZResponse

type SSZResponse struct {
	Encoded              []byte   `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SSZResponse) Descriptor

func (*SSZResponse) Descriptor() ([]byte, []int)

func (*SSZResponse) GetEncoded

func (m *SSZResponse) GetEncoded() []byte

func (*SSZResponse) Marshal

func (m *SSZResponse) Marshal() (dAtA []byte, err error)

func (*SSZResponse) MarshalTo

func (m *SSZResponse) MarshalTo(dAtA []byte) (int, error)

func (*SSZResponse) MarshalToSizedBuffer

func (m *SSZResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SSZResponse) ProtoMessage

func (*SSZResponse) ProtoMessage()

func (*SSZResponse) Reset

func (m *SSZResponse) Reset()

func (*SSZResponse) Size

func (m *SSZResponse) Size() (n int)

func (*SSZResponse) String

func (m *SSZResponse) String() string

func (*SSZResponse) Unmarshal

func (m *SSZResponse) Unmarshal(dAtA []byte) error

func (*SSZResponse) XXX_DiscardUnknown

func (m *SSZResponse) XXX_DiscardUnknown()

func (*SSZResponse) XXX_Marshal

func (m *SSZResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SSZResponse) XXX_Merge

func (m *SSZResponse) XXX_Merge(src proto.Message)

func (*SSZResponse) XXX_Size

func (m *SSZResponse) XXX_Size() int

func (*SSZResponse) XXX_Unmarshal

func (m *SSZResponse) XXX_Unmarshal(b []byte) error

type UnimplementedDebugServer

type UnimplementedDebugServer struct {
}

UnimplementedDebugServer can be embedded to have forward compatible implementations.

func (*UnimplementedDebugServer) GetBeaconState

func (*UnimplementedDebugServer) GetBlock

func (*UnimplementedDebugServer) GetProtoArrayForkChoice

func (*UnimplementedDebugServer) GetProtoArrayForkChoice(ctx context.Context, req *types.Empty) (*ProtoArrayForkChoiceResponse, error)

func (*UnimplementedDebugServer) SetLoggingLevel

Jump to

Keyboard shortcuts

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