Documentation ¶
Overview ¶
Package ethereum_beacon_rpc_v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterDebugHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDebugHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DebugClient) error
- func RegisterDebugHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDebugHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DebugServer) error
- func RegisterDebugServer(s *grpc.Server, srv DebugServer)
- type BeaconStateRequest
- func (*BeaconStateRequest) Descriptor() ([]byte, []int)
- func (m *BeaconStateRequest) GetBlockRoot() []byte
- func (m *BeaconStateRequest) GetQueryFilter() isBeaconStateRequest_QueryFilter
- func (m *BeaconStateRequest) GetSlot() uint64
- func (*BeaconStateRequest) ProtoMessage()
- func (m *BeaconStateRequest) Reset()
- func (m *BeaconStateRequest) String() string
- func (m *BeaconStateRequest) XXX_DiscardUnknown()
- func (m *BeaconStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BeaconStateRequest) XXX_Merge(src proto.Message)
- func (*BeaconStateRequest) XXX_OneofWrappers() []interface{}
- func (m *BeaconStateRequest) XXX_Size() int
- func (m *BeaconStateRequest) XXX_Unmarshal(b []byte) error
- type BeaconStateRequest_BlockRoot
- type BeaconStateRequest_Slot
- type BlockRequest
- func (*BlockRequest) Descriptor() ([]byte, []int)
- func (m *BlockRequest) GetBlockRoot() []byte
- func (*BlockRequest) ProtoMessage()
- func (m *BlockRequest) Reset()
- func (m *BlockRequest) String() string
- func (m *BlockRequest) XXX_DiscardUnknown()
- func (m *BlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockRequest) XXX_Merge(src proto.Message)
- func (m *BlockRequest) XXX_Size() int
- func (m *BlockRequest) XXX_Unmarshal(b []byte) error
- type DebugClient
- type DebugPeerResponse
- func (*DebugPeerResponse) Descriptor() ([]byte, []int)
- func (m *DebugPeerResponse) GetConnectionState() v1alpha1.ConnectionState
- func (m *DebugPeerResponse) GetDirection() v1alpha1.PeerDirection
- func (m *DebugPeerResponse) GetEnr() string
- func (m *DebugPeerResponse) GetLastUpdated() uint64
- func (m *DebugPeerResponse) GetListeningAddresses() []string
- func (m *DebugPeerResponse) GetPeerId() string
- func (m *DebugPeerResponse) GetPeerInfo() *DebugPeerResponse_PeerInfo
- func (m *DebugPeerResponse) GetPeerStatus() *v1.Status
- func (*DebugPeerResponse) ProtoMessage()
- func (m *DebugPeerResponse) Reset()
- func (m *DebugPeerResponse) String() string
- func (m *DebugPeerResponse) XXX_DiscardUnknown()
- func (m *DebugPeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugPeerResponse) XXX_Merge(src proto.Message)
- func (m *DebugPeerResponse) XXX_Size() int
- func (m *DebugPeerResponse) XXX_Unmarshal(b []byte) error
- type DebugPeerResponse_PeerInfo
- func (*DebugPeerResponse_PeerInfo) Descriptor() ([]byte, []int)
- func (m *DebugPeerResponse_PeerInfo) GetAgentVersion() string
- func (m *DebugPeerResponse_PeerInfo) GetFaultCount() uint64
- func (m *DebugPeerResponse_PeerInfo) GetMetadata() *v1.MetaData
- func (m *DebugPeerResponse_PeerInfo) GetPeerLatency() uint64
- func (m *DebugPeerResponse_PeerInfo) GetProtocolVersion() string
- func (m *DebugPeerResponse_PeerInfo) GetProtocols() []string
- func (*DebugPeerResponse_PeerInfo) ProtoMessage()
- func (m *DebugPeerResponse_PeerInfo) Reset()
- func (m *DebugPeerResponse_PeerInfo) String() string
- func (m *DebugPeerResponse_PeerInfo) XXX_DiscardUnknown()
- func (m *DebugPeerResponse_PeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugPeerResponse_PeerInfo) XXX_Merge(src proto.Message)
- func (m *DebugPeerResponse_PeerInfo) XXX_Size() int
- func (m *DebugPeerResponse_PeerInfo) XXX_Unmarshal(b []byte) error
- type DebugPeerResponses
- func (*DebugPeerResponses) Descriptor() ([]byte, []int)
- func (m *DebugPeerResponses) GetResponses() []*DebugPeerResponse
- func (*DebugPeerResponses) ProtoMessage()
- func (m *DebugPeerResponses) Reset()
- func (m *DebugPeerResponses) String() string
- func (m *DebugPeerResponses) XXX_DiscardUnknown()
- func (m *DebugPeerResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DebugPeerResponses) XXX_Merge(src proto.Message)
- func (m *DebugPeerResponses) XXX_Size() int
- func (m *DebugPeerResponses) XXX_Unmarshal(b []byte) error
- type DebugServer
- type LoggingLevelRequest
- func (*LoggingLevelRequest) Descriptor() ([]byte, []int)
- func (m *LoggingLevelRequest) GetLevel() LoggingLevelRequest_Level
- func (*LoggingLevelRequest) ProtoMessage()
- func (m *LoggingLevelRequest) Reset()
- func (m *LoggingLevelRequest) String() string
- func (m *LoggingLevelRequest) XXX_DiscardUnknown()
- func (m *LoggingLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoggingLevelRequest) XXX_Merge(src proto.Message)
- func (m *LoggingLevelRequest) XXX_Size() int
- func (m *LoggingLevelRequest) XXX_Unmarshal(b []byte) error
- type LoggingLevelRequest_Level
- type ProtoArrayForkChoiceResponse
- func (*ProtoArrayForkChoiceResponse) Descriptor() ([]byte, []int)
- func (m *ProtoArrayForkChoiceResponse) GetFinalizedEpoch() uint64
- func (m *ProtoArrayForkChoiceResponse) GetIndices() map[string]uint64
- func (m *ProtoArrayForkChoiceResponse) GetJustifiedEpoch() uint64
- func (m *ProtoArrayForkChoiceResponse) GetProtoArrayNodes() []*ProtoArrayNode
- func (m *ProtoArrayForkChoiceResponse) GetPruneThreshold() uint64
- func (*ProtoArrayForkChoiceResponse) ProtoMessage()
- func (m *ProtoArrayForkChoiceResponse) Reset()
- func (m *ProtoArrayForkChoiceResponse) String() string
- func (m *ProtoArrayForkChoiceResponse) XXX_DiscardUnknown()
- func (m *ProtoArrayForkChoiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProtoArrayForkChoiceResponse) XXX_Merge(src proto.Message)
- func (m *ProtoArrayForkChoiceResponse) XXX_Size() int
- func (m *ProtoArrayForkChoiceResponse) XXX_Unmarshal(b []byte) error
- type ProtoArrayNode
- func (*ProtoArrayNode) Descriptor() ([]byte, []int)
- func (m *ProtoArrayNode) GetBestChild() uint64
- func (m *ProtoArrayNode) GetBestDescendant() uint64
- func (m *ProtoArrayNode) GetFinalizedEpoch() uint64
- func (m *ProtoArrayNode) GetJustifiedEpoch() uint64
- func (m *ProtoArrayNode) GetParent() uint64
- func (m *ProtoArrayNode) GetRoot() []byte
- func (m *ProtoArrayNode) GetSlot() uint64
- func (m *ProtoArrayNode) GetWeight() uint64
- func (*ProtoArrayNode) ProtoMessage()
- func (m *ProtoArrayNode) Reset()
- func (m *ProtoArrayNode) String() string
- func (m *ProtoArrayNode) XXX_DiscardUnknown()
- func (m *ProtoArrayNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProtoArrayNode) XXX_Merge(src proto.Message)
- func (m *ProtoArrayNode) XXX_Size() int
- func (m *ProtoArrayNode) XXX_Unmarshal(b []byte) error
- type SSZResponse
- func (*SSZResponse) Descriptor() ([]byte, []int)
- func (m *SSZResponse) GetEncoded() []byte
- func (*SSZResponse) ProtoMessage()
- func (m *SSZResponse) Reset()
- func (m *SSZResponse) String() string
- func (m *SSZResponse) XXX_DiscardUnknown()
- func (m *SSZResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SSZResponse) XXX_Merge(src proto.Message)
- func (m *SSZResponse) XXX_Size() int
- func (m *SSZResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedDebugServer
- func (*UnimplementedDebugServer) GetBeaconState(ctx context.Context, req *BeaconStateRequest) (*SSZResponse, error)
- func (*UnimplementedDebugServer) GetBlock(ctx context.Context, req *BlockRequest) (*SSZResponse, error)
- func (*UnimplementedDebugServer) GetPeer(ctx context.Context, req *v1alpha1.PeerRequest) (*DebugPeerResponse, error)
- func (*UnimplementedDebugServer) GetProtoArrayForkChoice(ctx context.Context, req *empty.Empty) (*ProtoArrayForkChoiceResponse, error)
- func (*UnimplementedDebugServer) ListPeers(ctx context.Context, req *empty.Empty) (*DebugPeerResponses, error)
- func (*UnimplementedDebugServer) SetLoggingLevel(ctx context.Context, req *LoggingLevelRequest) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
var LoggingLevelRequest_Level_name = map[int32]string{
0: "INFO",
1: "DEBUG",
2: "TRACE",
}
var LoggingLevelRequest_Level_value = map[string]int32{
"INFO": 0,
"DEBUG": 1,
"TRACE": 2,
}
Functions ¶
func RegisterDebugHandler ¶ added in v1.0.0
RegisterDebugHandler registers the http handlers for service Debug to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDebugHandlerClient ¶ added in v1.0.0
func RegisterDebugHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DebugClient) error
RegisterDebugHandlerClient registers the http handlers for service Debug to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DebugClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DebugClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DebugClient" to call the correct interceptors.
func RegisterDebugHandlerFromEndpoint ¶ added in v1.0.0
func RegisterDebugHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDebugHandlerFromEndpoint is same as RegisterDebugHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDebugHandlerServer ¶ added in v1.0.0
func RegisterDebugHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DebugServer) error
RegisterDebugHandlerServer registers the http handlers for service Debug to "mux". UnaryRPC :call DebugServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterDebugServer ¶ added in v1.0.0
func RegisterDebugServer(s *grpc.Server, srv DebugServer)
Types ¶
type BeaconStateRequest ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (*BeaconStateRequest) Descriptor() ([]byte, []int)
func (*BeaconStateRequest) GetBlockRoot ¶ added in v1.0.0
func (m *BeaconStateRequest) GetBlockRoot() []byte
func (*BeaconStateRequest) GetQueryFilter ¶ added in v1.0.0
func (m *BeaconStateRequest) GetQueryFilter() isBeaconStateRequest_QueryFilter
func (*BeaconStateRequest) GetSlot ¶ added in v1.0.0
func (m *BeaconStateRequest) GetSlot() uint64
func (*BeaconStateRequest) ProtoMessage ¶ added in v1.0.0
func (*BeaconStateRequest) ProtoMessage()
func (*BeaconStateRequest) Reset ¶ added in v1.0.0
func (m *BeaconStateRequest) Reset()
func (*BeaconStateRequest) String ¶ added in v1.0.0
func (m *BeaconStateRequest) String() string
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 ¶ added in v1.0.0
type BeaconStateRequest_BlockRoot struct {
BlockRoot []byte `protobuf:"bytes,2,opt,name=block_root,json=blockRoot,proto3,oneof"`
}
type BeaconStateRequest_Slot ¶ added in v1.0.0
type BeaconStateRequest_Slot struct {
Slot uint64 `protobuf:"varint,1,opt,name=slot,proto3,oneof"`
}
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 ¶ added in v1.0.0
func (m *BlockRequest) GetBlockRoot() []byte
func (*BlockRequest) ProtoMessage ¶
func (*BlockRequest) ProtoMessage()
func (*BlockRequest) Reset ¶
func (m *BlockRequest) Reset()
func (*BlockRequest) String ¶
func (m *BlockRequest) String() string
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 ¶ added in v1.0.0
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) (*empty.Empty, error) GetProtoArrayForkChoice(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ProtoArrayForkChoiceResponse, error) ListPeers(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*DebugPeerResponses, error) GetPeer(ctx context.Context, in *v1alpha1.PeerRequest, opts ...grpc.CallOption) (*DebugPeerResponse, 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 ¶ added in v1.0.0
func NewDebugClient(cc grpc.ClientConnInterface) DebugClient
type DebugPeerResponse ¶ added in v1.0.0
type DebugPeerResponse struct { ListeningAddresses []string `protobuf:"bytes,1,rep,name=listening_addresses,json=listeningAddresses,proto3" json:"listening_addresses,omitempty"` Direction v1alpha1.PeerDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=ethereum.eth.v1alpha1.PeerDirection" json:"direction,omitempty"` ConnectionState v1alpha1.ConnectionState `` /* 150-byte string literal not displayed */ PeerId string `protobuf:"bytes,4,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` Enr string `protobuf:"bytes,5,opt,name=enr,proto3" json:"enr,omitempty"` PeerInfo *DebugPeerResponse_PeerInfo `protobuf:"bytes,6,opt,name=peer_info,json=peerInfo,proto3" json:"peer_info,omitempty"` PeerStatus *v1.Status `protobuf:"bytes,7,opt,name=peer_status,json=peerStatus,proto3" json:"peer_status,omitempty"` LastUpdated uint64 `protobuf:"varint,8,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DebugPeerResponse) Descriptor ¶ added in v1.0.0
func (*DebugPeerResponse) Descriptor() ([]byte, []int)
func (*DebugPeerResponse) GetConnectionState ¶ added in v1.0.0
func (m *DebugPeerResponse) GetConnectionState() v1alpha1.ConnectionState
func (*DebugPeerResponse) GetDirection ¶ added in v1.0.0
func (m *DebugPeerResponse) GetDirection() v1alpha1.PeerDirection
func (*DebugPeerResponse) GetEnr ¶ added in v1.0.0
func (m *DebugPeerResponse) GetEnr() string
func (*DebugPeerResponse) GetLastUpdated ¶ added in v1.0.0
func (m *DebugPeerResponse) GetLastUpdated() uint64
func (*DebugPeerResponse) GetListeningAddresses ¶ added in v1.0.0
func (m *DebugPeerResponse) GetListeningAddresses() []string
func (*DebugPeerResponse) GetPeerId ¶ added in v1.0.0
func (m *DebugPeerResponse) GetPeerId() string
func (*DebugPeerResponse) GetPeerInfo ¶ added in v1.0.0
func (m *DebugPeerResponse) GetPeerInfo() *DebugPeerResponse_PeerInfo
func (*DebugPeerResponse) GetPeerStatus ¶ added in v1.0.0
func (m *DebugPeerResponse) GetPeerStatus() *v1.Status
func (*DebugPeerResponse) ProtoMessage ¶ added in v1.0.0
func (*DebugPeerResponse) ProtoMessage()
func (*DebugPeerResponse) Reset ¶ added in v1.0.0
func (m *DebugPeerResponse) Reset()
func (*DebugPeerResponse) String ¶ added in v1.0.0
func (m *DebugPeerResponse) String() string
func (*DebugPeerResponse) XXX_DiscardUnknown ¶
func (m *DebugPeerResponse) XXX_DiscardUnknown()
func (*DebugPeerResponse) XXX_Marshal ¶
func (m *DebugPeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugPeerResponse) XXX_Merge ¶
func (m *DebugPeerResponse) XXX_Merge(src proto.Message)
func (*DebugPeerResponse) XXX_Size ¶
func (m *DebugPeerResponse) XXX_Size() int
func (*DebugPeerResponse) XXX_Unmarshal ¶
func (m *DebugPeerResponse) XXX_Unmarshal(b []byte) error
type DebugPeerResponse_PeerInfo ¶ added in v1.0.0
type DebugPeerResponse_PeerInfo struct { Metadata *v1.MetaData `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` Protocols []string `protobuf:"bytes,2,rep,name=protocols,proto3" json:"protocols,omitempty"` FaultCount uint64 `protobuf:"varint,3,opt,name=fault_count,json=faultCount,proto3" json:"fault_count,omitempty"` ProtocolVersion string `protobuf:"bytes,4,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"` AgentVersion string `protobuf:"bytes,5,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"` PeerLatency uint64 `protobuf:"varint,6,opt,name=peer_latency,json=peerLatency,proto3" json:"peer_latency,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DebugPeerResponse_PeerInfo) Descriptor ¶ added in v1.0.0
func (*DebugPeerResponse_PeerInfo) Descriptor() ([]byte, []int)
func (*DebugPeerResponse_PeerInfo) GetAgentVersion ¶ added in v1.0.0
func (m *DebugPeerResponse_PeerInfo) GetAgentVersion() string
func (*DebugPeerResponse_PeerInfo) GetFaultCount ¶ added in v1.0.0
func (m *DebugPeerResponse_PeerInfo) GetFaultCount() uint64
func (*DebugPeerResponse_PeerInfo) GetMetadata ¶ added in v1.0.0
func (m *DebugPeerResponse_PeerInfo) GetMetadata() *v1.MetaData
func (*DebugPeerResponse_PeerInfo) GetPeerLatency ¶ added in v1.0.0
func (m *DebugPeerResponse_PeerInfo) GetPeerLatency() uint64
func (*DebugPeerResponse_PeerInfo) GetProtocolVersion ¶ added in v1.0.0
func (m *DebugPeerResponse_PeerInfo) GetProtocolVersion() string
func (*DebugPeerResponse_PeerInfo) GetProtocols ¶ added in v1.0.0
func (m *DebugPeerResponse_PeerInfo) GetProtocols() []string
func (*DebugPeerResponse_PeerInfo) ProtoMessage ¶ added in v1.0.0
func (*DebugPeerResponse_PeerInfo) ProtoMessage()
func (*DebugPeerResponse_PeerInfo) Reset ¶ added in v1.0.0
func (m *DebugPeerResponse_PeerInfo) Reset()
func (*DebugPeerResponse_PeerInfo) String ¶ added in v1.0.0
func (m *DebugPeerResponse_PeerInfo) String() string
func (*DebugPeerResponse_PeerInfo) XXX_DiscardUnknown ¶
func (m *DebugPeerResponse_PeerInfo) XXX_DiscardUnknown()
func (*DebugPeerResponse_PeerInfo) XXX_Marshal ¶
func (m *DebugPeerResponse_PeerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugPeerResponse_PeerInfo) XXX_Merge ¶
func (m *DebugPeerResponse_PeerInfo) XXX_Merge(src proto.Message)
func (*DebugPeerResponse_PeerInfo) XXX_Size ¶
func (m *DebugPeerResponse_PeerInfo) XXX_Size() int
func (*DebugPeerResponse_PeerInfo) XXX_Unmarshal ¶
func (m *DebugPeerResponse_PeerInfo) XXX_Unmarshal(b []byte) error
type DebugPeerResponses ¶ added in v1.0.0
type DebugPeerResponses struct { Responses []*DebugPeerResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DebugPeerResponses) Descriptor ¶ added in v1.0.0
func (*DebugPeerResponses) Descriptor() ([]byte, []int)
func (*DebugPeerResponses) GetResponses ¶ added in v1.0.0
func (m *DebugPeerResponses) GetResponses() []*DebugPeerResponse
func (*DebugPeerResponses) ProtoMessage ¶ added in v1.0.0
func (*DebugPeerResponses) ProtoMessage()
func (*DebugPeerResponses) Reset ¶ added in v1.0.0
func (m *DebugPeerResponses) Reset()
func (*DebugPeerResponses) String ¶ added in v1.0.0
func (m *DebugPeerResponses) String() string
func (*DebugPeerResponses) XXX_DiscardUnknown ¶
func (m *DebugPeerResponses) XXX_DiscardUnknown()
func (*DebugPeerResponses) XXX_Marshal ¶
func (m *DebugPeerResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DebugPeerResponses) XXX_Merge ¶
func (m *DebugPeerResponses) XXX_Merge(src proto.Message)
func (*DebugPeerResponses) XXX_Size ¶
func (m *DebugPeerResponses) XXX_Size() int
func (*DebugPeerResponses) XXX_Unmarshal ¶
func (m *DebugPeerResponses) XXX_Unmarshal(b []byte) error
type DebugServer ¶ added in v1.0.0
type DebugServer interface { GetBeaconState(context.Context, *BeaconStateRequest) (*SSZResponse, error) GetBlock(context.Context, *BlockRequest) (*SSZResponse, error) SetLoggingLevel(context.Context, *LoggingLevelRequest) (*empty.Empty, error) GetProtoArrayForkChoice(context.Context, *empty.Empty) (*ProtoArrayForkChoiceResponse, error) ListPeers(context.Context, *empty.Empty) (*DebugPeerResponses, error) GetPeer(context.Context, *v1alpha1.PeerRequest) (*DebugPeerResponse, error) }
DebugServer is the server API for Debug service.
type LoggingLevelRequest ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (*LoggingLevelRequest) Descriptor() ([]byte, []int)
func (*LoggingLevelRequest) GetLevel ¶ added in v1.0.0
func (m *LoggingLevelRequest) GetLevel() LoggingLevelRequest_Level
func (*LoggingLevelRequest) ProtoMessage ¶ added in v1.0.0
func (*LoggingLevelRequest) ProtoMessage()
func (*LoggingLevelRequest) Reset ¶ added in v1.0.0
func (m *LoggingLevelRequest) Reset()
func (*LoggingLevelRequest) String ¶ added in v1.0.0
func (m *LoggingLevelRequest) String() string
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 ¶ added in v1.0.0
type LoggingLevelRequest_Level int32
const ( LoggingLevelRequest_INFO LoggingLevelRequest_Level = 0 LoggingLevelRequest_DEBUG LoggingLevelRequest_Level = 1 LoggingLevelRequest_TRACE LoggingLevelRequest_Level = 2 )
func (LoggingLevelRequest_Level) EnumDescriptor ¶ added in v1.0.0
func (LoggingLevelRequest_Level) EnumDescriptor() ([]byte, []int)
func (LoggingLevelRequest_Level) String ¶ added in v1.0.0
func (x LoggingLevelRequest_Level) String() string
type ProtoArrayForkChoiceResponse ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (*ProtoArrayForkChoiceResponse) Descriptor() ([]byte, []int)
func (*ProtoArrayForkChoiceResponse) GetFinalizedEpoch ¶ added in v1.0.0
func (m *ProtoArrayForkChoiceResponse) GetFinalizedEpoch() uint64
func (*ProtoArrayForkChoiceResponse) GetIndices ¶ added in v1.0.0
func (m *ProtoArrayForkChoiceResponse) GetIndices() map[string]uint64
func (*ProtoArrayForkChoiceResponse) GetJustifiedEpoch ¶ added in v1.0.0
func (m *ProtoArrayForkChoiceResponse) GetJustifiedEpoch() uint64
func (*ProtoArrayForkChoiceResponse) GetProtoArrayNodes ¶ added in v1.0.0
func (m *ProtoArrayForkChoiceResponse) GetProtoArrayNodes() []*ProtoArrayNode
func (*ProtoArrayForkChoiceResponse) GetPruneThreshold ¶ added in v1.0.0
func (m *ProtoArrayForkChoiceResponse) GetPruneThreshold() uint64
func (*ProtoArrayForkChoiceResponse) ProtoMessage ¶ added in v1.0.0
func (*ProtoArrayForkChoiceResponse) ProtoMessage()
func (*ProtoArrayForkChoiceResponse) Reset ¶ added in v1.0.0
func (m *ProtoArrayForkChoiceResponse) Reset()
func (*ProtoArrayForkChoiceResponse) String ¶ added in v1.0.0
func (m *ProtoArrayForkChoiceResponse) String() string
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 ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (*ProtoArrayNode) Descriptor() ([]byte, []int)
func (*ProtoArrayNode) GetBestChild ¶ added in v1.0.0
func (m *ProtoArrayNode) GetBestChild() uint64
func (*ProtoArrayNode) GetBestDescendant ¶ added in v1.0.0
func (m *ProtoArrayNode) GetBestDescendant() uint64
func (*ProtoArrayNode) GetFinalizedEpoch ¶ added in v1.0.0
func (m *ProtoArrayNode) GetFinalizedEpoch() uint64
func (*ProtoArrayNode) GetJustifiedEpoch ¶ added in v1.0.0
func (m *ProtoArrayNode) GetJustifiedEpoch() uint64
func (*ProtoArrayNode) GetParent ¶ added in v1.0.0
func (m *ProtoArrayNode) GetParent() uint64
func (*ProtoArrayNode) GetRoot ¶ added in v1.0.0
func (m *ProtoArrayNode) GetRoot() []byte
func (*ProtoArrayNode) GetSlot ¶ added in v1.0.0
func (m *ProtoArrayNode) GetSlot() uint64
func (*ProtoArrayNode) GetWeight ¶ added in v1.0.0
func (m *ProtoArrayNode) GetWeight() uint64
func (*ProtoArrayNode) ProtoMessage ¶ added in v1.0.0
func (*ProtoArrayNode) ProtoMessage()
func (*ProtoArrayNode) Reset ¶ added in v1.0.0
func (m *ProtoArrayNode) Reset()
func (*ProtoArrayNode) String ¶ added in v1.0.0
func (m *ProtoArrayNode) String() string
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 ¶ added in v1.0.0
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 ¶ added in v1.0.0
func (*SSZResponse) Descriptor() ([]byte, []int)
func (*SSZResponse) GetEncoded ¶ added in v1.0.0
func (m *SSZResponse) GetEncoded() []byte
func (*SSZResponse) ProtoMessage ¶ added in v1.0.0
func (*SSZResponse) ProtoMessage()
func (*SSZResponse) Reset ¶ added in v1.0.0
func (m *SSZResponse) Reset()
func (*SSZResponse) String ¶ added in v1.0.0
func (m *SSZResponse) String() string
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 ¶ added in v1.0.0
type UnimplementedDebugServer struct { }
UnimplementedDebugServer can be embedded to have forward compatible implementations.
func (*UnimplementedDebugServer) GetBeaconState ¶ added in v1.0.0
func (*UnimplementedDebugServer) GetBeaconState(ctx context.Context, req *BeaconStateRequest) (*SSZResponse, error)
func (*UnimplementedDebugServer) GetBlock ¶ added in v1.0.0
func (*UnimplementedDebugServer) GetBlock(ctx context.Context, req *BlockRequest) (*SSZResponse, error)
func (*UnimplementedDebugServer) GetPeer ¶ added in v1.0.0
func (*UnimplementedDebugServer) GetPeer(ctx context.Context, req *v1alpha1.PeerRequest) (*DebugPeerResponse, error)
func (*UnimplementedDebugServer) GetProtoArrayForkChoice ¶ added in v1.0.0
func (*UnimplementedDebugServer) GetProtoArrayForkChoice(ctx context.Context, req *empty.Empty) (*ProtoArrayForkChoiceResponse, error)
func (*UnimplementedDebugServer) ListPeers ¶ added in v1.0.0
func (*UnimplementedDebugServer) ListPeers(ctx context.Context, req *empty.Empty) (*DebugPeerResponses, error)
func (*UnimplementedDebugServer) SetLoggingLevel ¶ added in v1.0.0
func (*UnimplementedDebugServer) SetLoggingLevel(ctx context.Context, req *LoggingLevelRequest) (*empty.Empty, error)