Documentation ¶
Overview ¶
Package ethereum_beacon_rpc_v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
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)
- func RegisterHealthHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterHealthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HealthClient) error
- func RegisterHealthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterHealthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HealthServer) error
- func RegisterHealthServer(s *grpc.Server, srv HealthServer)
- type BeaconStateRequest
- func (*BeaconStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BeaconStateRequest) GetBlockRoot() []byte
- func (m *BeaconStateRequest) GetQueryFilter() isBeaconStateRequest_QueryFilter
- func (x *BeaconStateRequest) GetSlot() uint64
- func (*BeaconStateRequest) ProtoMessage()
- func (x *BeaconStateRequest) ProtoReflect() protoreflect.Message
- func (x *BeaconStateRequest) Reset()
- func (x *BeaconStateRequest) String() string
- type BeaconStateRequest_BlockRoot
- type BeaconStateRequest_Slot
- type BlockRequest
- type DebugClient
- type DebugPeerResponse
- func (*DebugPeerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DebugPeerResponse) GetConnectionState() v1alpha1.ConnectionState
- func (x *DebugPeerResponse) GetDirection() v1alpha1.PeerDirection
- func (x *DebugPeerResponse) GetEnr() string
- func (x *DebugPeerResponse) GetLastUpdated() uint64
- func (x *DebugPeerResponse) GetListeningAddresses() []string
- func (x *DebugPeerResponse) GetPeerId() string
- func (x *DebugPeerResponse) GetPeerInfo() *DebugPeerResponse_PeerInfo
- func (x *DebugPeerResponse) GetPeerStatus() *v1.Status
- func (x *DebugPeerResponse) GetScoreInfo() *ScoreInfo
- func (*DebugPeerResponse) ProtoMessage()
- func (x *DebugPeerResponse) ProtoReflect() protoreflect.Message
- func (x *DebugPeerResponse) Reset()
- func (x *DebugPeerResponse) String() string
- type DebugPeerResponse_PeerInfo
- func (*DebugPeerResponse_PeerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DebugPeerResponse_PeerInfo) GetAgentVersion() string
- func (x *DebugPeerResponse_PeerInfo) GetFaultCount() uint64
- func (x *DebugPeerResponse_PeerInfo) GetMetadata() *v1.MetaData
- func (x *DebugPeerResponse_PeerInfo) GetPeerLatency() uint64
- func (x *DebugPeerResponse_PeerInfo) GetProtocolVersion() string
- func (x *DebugPeerResponse_PeerInfo) GetProtocols() []string
- func (*DebugPeerResponse_PeerInfo) ProtoMessage()
- func (x *DebugPeerResponse_PeerInfo) ProtoReflect() protoreflect.Message
- func (x *DebugPeerResponse_PeerInfo) Reset()
- func (x *DebugPeerResponse_PeerInfo) String() string
- type DebugPeerResponses
- func (*DebugPeerResponses) Descriptor() ([]byte, []int)deprecated
- func (x *DebugPeerResponses) GetResponses() []*DebugPeerResponse
- func (*DebugPeerResponses) ProtoMessage()
- func (x *DebugPeerResponses) ProtoReflect() protoreflect.Message
- func (x *DebugPeerResponses) Reset()
- func (x *DebugPeerResponses) String() string
- type DebugServer
- type HealthClient
- type HealthServer
- type Health_StreamBeaconLogsClient
- type Health_StreamBeaconLogsServer
- type InclusionSlotRequest
- func (*InclusionSlotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InclusionSlotRequest) GetId() uint64
- func (x *InclusionSlotRequest) GetSlot() uint64
- func (*InclusionSlotRequest) ProtoMessage()
- func (x *InclusionSlotRequest) ProtoReflect() protoreflect.Message
- func (x *InclusionSlotRequest) Reset()
- func (x *InclusionSlotRequest) String() string
- type InclusionSlotResponse
- func (*InclusionSlotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InclusionSlotResponse) GetSlot() uint64
- func (*InclusionSlotResponse) ProtoMessage()
- func (x *InclusionSlotResponse) ProtoReflect() protoreflect.Message
- func (x *InclusionSlotResponse) Reset()
- func (x *InclusionSlotResponse) String() string
- type LoggingLevelRequest
- func (*LoggingLevelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoggingLevelRequest) GetLevel() LoggingLevelRequest_Level
- func (*LoggingLevelRequest) ProtoMessage()
- func (x *LoggingLevelRequest) ProtoReflect() protoreflect.Message
- func (x *LoggingLevelRequest) Reset()
- func (x *LoggingLevelRequest) String() string
- type LoggingLevelRequest_Level
- func (LoggingLevelRequest_Level) Descriptor() protoreflect.EnumDescriptor
- func (x LoggingLevelRequest_Level) Enum() *LoggingLevelRequest_Level
- func (LoggingLevelRequest_Level) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoggingLevelRequest_Level) Number() protoreflect.EnumNumber
- func (x LoggingLevelRequest_Level) String() string
- func (LoggingLevelRequest_Level) Type() protoreflect.EnumType
- type LogsResponse
- type ProtoArrayForkChoiceResponse
- func (*ProtoArrayForkChoiceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoArrayForkChoiceResponse) GetFinalizedEpoch() uint64
- func (x *ProtoArrayForkChoiceResponse) GetIndices() map[string]uint64
- func (x *ProtoArrayForkChoiceResponse) GetJustifiedEpoch() uint64
- func (x *ProtoArrayForkChoiceResponse) GetProtoArrayNodes() []*ProtoArrayNode
- func (x *ProtoArrayForkChoiceResponse) GetPruneThreshold() uint64
- func (*ProtoArrayForkChoiceResponse) ProtoMessage()
- func (x *ProtoArrayForkChoiceResponse) ProtoReflect() protoreflect.Message
- func (x *ProtoArrayForkChoiceResponse) Reset()
- func (x *ProtoArrayForkChoiceResponse) String() string
- type ProtoArrayNode
- func (*ProtoArrayNode) Descriptor() ([]byte, []int)deprecated
- func (x *ProtoArrayNode) GetBestChild() uint64
- func (x *ProtoArrayNode) GetBestDescendant() uint64
- func (x *ProtoArrayNode) GetFinalizedEpoch() uint64
- func (x *ProtoArrayNode) GetJustifiedEpoch() uint64
- func (x *ProtoArrayNode) GetParent() uint64
- func (x *ProtoArrayNode) GetRoot() []byte
- func (x *ProtoArrayNode) GetSlot() uint64
- func (x *ProtoArrayNode) GetWeight() uint64
- func (*ProtoArrayNode) ProtoMessage()
- func (x *ProtoArrayNode) ProtoReflect() protoreflect.Message
- func (x *ProtoArrayNode) Reset()
- func (x *ProtoArrayNode) String() string
- type SSZResponse
- type ScoreInfo
- func (*ScoreInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ScoreInfo) GetBehaviourPenalty() float32
- func (x *ScoreInfo) GetBlockProviderScore() float32
- func (x *ScoreInfo) GetGossipScore() float32
- func (x *ScoreInfo) GetOverallScore() float32
- func (x *ScoreInfo) GetProcessedBlocks() uint64
- func (x *ScoreInfo) GetTopicScores() map[string]*TopicScoreSnapshot
- func (x *ScoreInfo) GetValidationError() string
- func (*ScoreInfo) ProtoMessage()
- func (x *ScoreInfo) ProtoReflect() protoreflect.Message
- func (x *ScoreInfo) Reset()
- func (x *ScoreInfo) String() string
- type TopicScoreSnapshot
- func (*TopicScoreSnapshot) Descriptor() ([]byte, []int)deprecated
- func (x *TopicScoreSnapshot) GetFirstMessageDeliveries() float32
- func (x *TopicScoreSnapshot) GetInvalidMessageDeliveries() float32
- func (x *TopicScoreSnapshot) GetMeshMessageDeliveries() float32
- func (x *TopicScoreSnapshot) GetTimeInMesh() uint64
- func (*TopicScoreSnapshot) ProtoMessage()
- func (x *TopicScoreSnapshot) ProtoReflect() protoreflect.Message
- func (x *TopicScoreSnapshot) Reset()
- func (x *TopicScoreSnapshot) String() string
- type UnimplementedDebugServer
- func (*UnimplementedDebugServer) GetBeaconState(context.Context, *BeaconStateRequest) (*SSZResponse, error)
- func (*UnimplementedDebugServer) GetBlock(context.Context, *BlockRequest) (*SSZResponse, error)
- func (*UnimplementedDebugServer) GetInclusionSlot(context.Context, *InclusionSlotRequest) (*InclusionSlotResponse, error)
- func (*UnimplementedDebugServer) GetPeer(context.Context, *v1alpha1.PeerRequest) (*DebugPeerResponse, error)
- func (*UnimplementedDebugServer) GetProtoArrayForkChoice(context.Context, *empty.Empty) (*ProtoArrayForkChoiceResponse, error)
- func (*UnimplementedDebugServer) ListPeers(context.Context, *empty.Empty) (*DebugPeerResponses, error)
- func (*UnimplementedDebugServer) SetLoggingLevel(context.Context, *LoggingLevelRequest) (*empty.Empty, error)
- type UnimplementedHealthServer
Constants ¶
This section is empty.
Variables ¶
var ( LoggingLevelRequest_Level_name = map[int32]string{ 0: "INFO", 1: "DEBUG", 2: "TRACE", } LoggingLevelRequest_Level_value = map[string]int32{ "INFO": 0, "DEBUG": 1, "TRACE": 2, } )
Enum value maps for LoggingLevelRequest_Level.
var File_proto_beacon_rpc_v1_debug_proto protoreflect.FileDescriptor
var File_proto_beacon_rpc_v1_health_proto protoreflect.FileDescriptor
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)
func RegisterHealthHandler ¶ added in v1.0.1
RegisterHealthHandler registers the http handlers for service Health to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterHealthHandlerClient ¶ added in v1.0.1
func RegisterHealthHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HealthClient) error
RegisterHealthHandlerClient registers the http handlers for service Health to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "HealthClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "HealthClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "HealthClient" to call the correct interceptors.
func RegisterHealthHandlerFromEndpoint ¶ added in v1.0.1
func RegisterHealthHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterHealthHandlerFromEndpoint is same as RegisterHealthHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterHealthHandlerServer ¶ added in v1.0.1
func RegisterHealthHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HealthServer) error
RegisterHealthHandlerServer registers the http handlers for service Health to "mux". UnaryRPC :call HealthServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterHealthServer ¶ added in v1.0.1
func RegisterHealthServer(s *grpc.Server, srv HealthServer)
Types ¶
type BeaconStateRequest ¶ added in v1.0.0
type BeaconStateRequest struct { // Types that are assignable to QueryFilter: // *BeaconStateRequest_Slot // *BeaconStateRequest_BlockRoot QueryFilter isBeaconStateRequest_QueryFilter `protobuf_oneof:"query_filter"` // contains filtered or unexported fields }
func (*BeaconStateRequest) Descriptor
deprecated
added in
v1.0.0
func (*BeaconStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use BeaconStateRequest.ProtoReflect.Descriptor instead.
func (*BeaconStateRequest) GetBlockRoot ¶ added in v1.0.0
func (x *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 (x *BeaconStateRequest) GetSlot() uint64
func (*BeaconStateRequest) ProtoMessage ¶ added in v1.0.0
func (*BeaconStateRequest) ProtoMessage()
func (*BeaconStateRequest) ProtoReflect ¶ added in v1.0.0
func (x *BeaconStateRequest) ProtoReflect() protoreflect.Message
func (*BeaconStateRequest) Reset ¶ added in v1.0.0
func (x *BeaconStateRequest) Reset()
func (*BeaconStateRequest) String ¶ added in v1.0.0
func (x *BeaconStateRequest) String() string
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"` // contains filtered or unexported fields }
func (*BlockRequest) Descriptor
deprecated
func (*BlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use BlockRequest.ProtoReflect.Descriptor instead.
func (*BlockRequest) GetBlockRoot ¶ added in v1.0.0
func (x *BlockRequest) GetBlockRoot() []byte
func (*BlockRequest) ProtoMessage ¶
func (*BlockRequest) ProtoMessage()
func (*BlockRequest) ProtoReflect ¶ added in v1.0.0
func (x *BlockRequest) ProtoReflect() protoreflect.Message
func (*BlockRequest) Reset ¶
func (x *BlockRequest) Reset()
func (*BlockRequest) String ¶
func (x *BlockRequest) String() string
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) GetInclusionSlot(ctx context.Context, in *InclusionSlotRequest, opts ...grpc.CallOption) (*InclusionSlotResponse, 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"` ScoreInfo *ScoreInfo `protobuf:"bytes,9,opt,name=score_info,json=scoreInfo,proto3" json:"score_info,omitempty"` // contains filtered or unexported fields }
func (*DebugPeerResponse) Descriptor
deprecated
added in
v1.0.0
func (*DebugPeerResponse) Descriptor() ([]byte, []int)
Deprecated: Use DebugPeerResponse.ProtoReflect.Descriptor instead.
func (*DebugPeerResponse) GetConnectionState ¶ added in v1.0.0
func (x *DebugPeerResponse) GetConnectionState() v1alpha1.ConnectionState
func (*DebugPeerResponse) GetDirection ¶ added in v1.0.0
func (x *DebugPeerResponse) GetDirection() v1alpha1.PeerDirection
func (*DebugPeerResponse) GetEnr ¶ added in v1.0.0
func (x *DebugPeerResponse) GetEnr() string
func (*DebugPeerResponse) GetLastUpdated ¶ added in v1.0.0
func (x *DebugPeerResponse) GetLastUpdated() uint64
func (*DebugPeerResponse) GetListeningAddresses ¶ added in v1.0.0
func (x *DebugPeerResponse) GetListeningAddresses() []string
func (*DebugPeerResponse) GetPeerId ¶ added in v1.0.0
func (x *DebugPeerResponse) GetPeerId() string
func (*DebugPeerResponse) GetPeerInfo ¶ added in v1.0.0
func (x *DebugPeerResponse) GetPeerInfo() *DebugPeerResponse_PeerInfo
func (*DebugPeerResponse) GetPeerStatus ¶ added in v1.0.0
func (x *DebugPeerResponse) GetPeerStatus() *v1.Status
func (*DebugPeerResponse) GetScoreInfo ¶ added in v1.2.0
func (x *DebugPeerResponse) GetScoreInfo() *ScoreInfo
func (*DebugPeerResponse) ProtoMessage ¶ added in v1.0.0
func (*DebugPeerResponse) ProtoMessage()
func (*DebugPeerResponse) ProtoReflect ¶ added in v1.0.0
func (x *DebugPeerResponse) ProtoReflect() protoreflect.Message
func (*DebugPeerResponse) Reset ¶ added in v1.0.0
func (x *DebugPeerResponse) Reset()
func (*DebugPeerResponse) String ¶ added in v1.0.0
func (x *DebugPeerResponse) String() string
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"` // contains filtered or unexported fields }
func (*DebugPeerResponse_PeerInfo) Descriptor
deprecated
added in
v1.0.0
func (*DebugPeerResponse_PeerInfo) Descriptor() ([]byte, []int)
Deprecated: Use DebugPeerResponse_PeerInfo.ProtoReflect.Descriptor instead.
func (*DebugPeerResponse_PeerInfo) GetAgentVersion ¶ added in v1.0.0
func (x *DebugPeerResponse_PeerInfo) GetAgentVersion() string
func (*DebugPeerResponse_PeerInfo) GetFaultCount ¶ added in v1.0.0
func (x *DebugPeerResponse_PeerInfo) GetFaultCount() uint64
func (*DebugPeerResponse_PeerInfo) GetMetadata ¶ added in v1.0.0
func (x *DebugPeerResponse_PeerInfo) GetMetadata() *v1.MetaData
func (*DebugPeerResponse_PeerInfo) GetPeerLatency ¶ added in v1.0.0
func (x *DebugPeerResponse_PeerInfo) GetPeerLatency() uint64
func (*DebugPeerResponse_PeerInfo) GetProtocolVersion ¶ added in v1.0.0
func (x *DebugPeerResponse_PeerInfo) GetProtocolVersion() string
func (*DebugPeerResponse_PeerInfo) GetProtocols ¶ added in v1.0.0
func (x *DebugPeerResponse_PeerInfo) GetProtocols() []string
func (*DebugPeerResponse_PeerInfo) ProtoMessage ¶ added in v1.0.0
func (*DebugPeerResponse_PeerInfo) ProtoMessage()
func (*DebugPeerResponse_PeerInfo) ProtoReflect ¶ added in v1.0.0
func (x *DebugPeerResponse_PeerInfo) ProtoReflect() protoreflect.Message
func (*DebugPeerResponse_PeerInfo) Reset ¶ added in v1.0.0
func (x *DebugPeerResponse_PeerInfo) Reset()
func (*DebugPeerResponse_PeerInfo) String ¶ added in v1.0.0
func (x *DebugPeerResponse_PeerInfo) String() string
type DebugPeerResponses ¶ added in v1.0.0
type DebugPeerResponses struct { Responses []*DebugPeerResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"` // contains filtered or unexported fields }
func (*DebugPeerResponses) Descriptor
deprecated
added in
v1.0.0
func (*DebugPeerResponses) Descriptor() ([]byte, []int)
Deprecated: Use DebugPeerResponses.ProtoReflect.Descriptor instead.
func (*DebugPeerResponses) GetResponses ¶ added in v1.0.0
func (x *DebugPeerResponses) GetResponses() []*DebugPeerResponse
func (*DebugPeerResponses) ProtoMessage ¶ added in v1.0.0
func (*DebugPeerResponses) ProtoMessage()
func (*DebugPeerResponses) ProtoReflect ¶ added in v1.0.0
func (x *DebugPeerResponses) ProtoReflect() protoreflect.Message
func (*DebugPeerResponses) Reset ¶ added in v1.0.0
func (x *DebugPeerResponses) Reset()
func (*DebugPeerResponses) String ¶ added in v1.0.0
func (x *DebugPeerResponses) String() string
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) GetInclusionSlot(context.Context, *InclusionSlotRequest) (*InclusionSlotResponse, error) }
DebugServer is the server API for Debug service.
type HealthClient ¶ added in v1.0.1
type HealthClient interface {
StreamBeaconLogs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (Health_StreamBeaconLogsClient, error)
}
HealthClient is the client API for Health service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHealthClient ¶ added in v1.0.1
func NewHealthClient(cc grpc.ClientConnInterface) HealthClient
type HealthServer ¶ added in v1.0.1
type HealthServer interface {
StreamBeaconLogs(*empty.Empty, Health_StreamBeaconLogsServer) error
}
HealthServer is the server API for Health service.
type Health_StreamBeaconLogsClient ¶ added in v1.1.0
type Health_StreamBeaconLogsClient interface { Recv() (*LogsResponse, error) grpc.ClientStream }
type Health_StreamBeaconLogsServer ¶ added in v1.1.0
type Health_StreamBeaconLogsServer interface { Send(*LogsResponse) error grpc.ServerStream }
type InclusionSlotRequest ¶ added in v1.0.0
type InclusionSlotRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Slot uint64 `protobuf:"varint,2,opt,name=slot,proto3" json:"slot,omitempty"` // contains filtered or unexported fields }
func (*InclusionSlotRequest) Descriptor
deprecated
added in
v1.0.0
func (*InclusionSlotRequest) Descriptor() ([]byte, []int)
Deprecated: Use InclusionSlotRequest.ProtoReflect.Descriptor instead.
func (*InclusionSlotRequest) GetId ¶ added in v1.0.0
func (x *InclusionSlotRequest) GetId() uint64
func (*InclusionSlotRequest) GetSlot ¶ added in v1.0.0
func (x *InclusionSlotRequest) GetSlot() uint64
func (*InclusionSlotRequest) ProtoMessage ¶ added in v1.0.0
func (*InclusionSlotRequest) ProtoMessage()
func (*InclusionSlotRequest) ProtoReflect ¶ added in v1.0.0
func (x *InclusionSlotRequest) ProtoReflect() protoreflect.Message
func (*InclusionSlotRequest) Reset ¶ added in v1.0.0
func (x *InclusionSlotRequest) Reset()
func (*InclusionSlotRequest) String ¶ added in v1.0.0
func (x *InclusionSlotRequest) String() string
type InclusionSlotResponse ¶ added in v1.0.0
type InclusionSlotResponse struct { Slot uint64 `protobuf:"varint,2,opt,name=slot,proto3" json:"slot,omitempty"` // contains filtered or unexported fields }
func (*InclusionSlotResponse) Descriptor
deprecated
added in
v1.0.0
func (*InclusionSlotResponse) Descriptor() ([]byte, []int)
Deprecated: Use InclusionSlotResponse.ProtoReflect.Descriptor instead.
func (*InclusionSlotResponse) GetSlot ¶ added in v1.0.0
func (x *InclusionSlotResponse) GetSlot() uint64
func (*InclusionSlotResponse) ProtoMessage ¶ added in v1.0.0
func (*InclusionSlotResponse) ProtoMessage()
func (*InclusionSlotResponse) ProtoReflect ¶ added in v1.0.0
func (x *InclusionSlotResponse) ProtoReflect() protoreflect.Message
func (*InclusionSlotResponse) Reset ¶ added in v1.0.0
func (x *InclusionSlotResponse) Reset()
func (*InclusionSlotResponse) String ¶ added in v1.0.0
func (x *InclusionSlotResponse) String() string
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"` // contains filtered or unexported fields }
func (*LoggingLevelRequest) Descriptor
deprecated
added in
v1.0.0
func (*LoggingLevelRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoggingLevelRequest.ProtoReflect.Descriptor instead.
func (*LoggingLevelRequest) GetLevel ¶ added in v1.0.0
func (x *LoggingLevelRequest) GetLevel() LoggingLevelRequest_Level
func (*LoggingLevelRequest) ProtoMessage ¶ added in v1.0.0
func (*LoggingLevelRequest) ProtoMessage()
func (*LoggingLevelRequest) ProtoReflect ¶ added in v1.0.0
func (x *LoggingLevelRequest) ProtoReflect() protoreflect.Message
func (*LoggingLevelRequest) Reset ¶ added in v1.0.0
func (x *LoggingLevelRequest) Reset()
func (*LoggingLevelRequest) String ¶ added in v1.0.0
func (x *LoggingLevelRequest) String() string
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) Descriptor ¶ added in v1.0.0
func (LoggingLevelRequest_Level) Descriptor() protoreflect.EnumDescriptor
func (LoggingLevelRequest_Level) Enum ¶ added in v1.0.0
func (x LoggingLevelRequest_Level) Enum() *LoggingLevelRequest_Level
func (LoggingLevelRequest_Level) EnumDescriptor
deprecated
added in
v1.0.0
func (LoggingLevelRequest_Level) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoggingLevelRequest_Level.Descriptor instead.
func (LoggingLevelRequest_Level) Number ¶ added in v1.0.0
func (x LoggingLevelRequest_Level) Number() protoreflect.EnumNumber
func (LoggingLevelRequest_Level) String ¶ added in v1.0.0
func (x LoggingLevelRequest_Level) String() string
func (LoggingLevelRequest_Level) Type ¶ added in v1.0.0
func (LoggingLevelRequest_Level) Type() protoreflect.EnumType
type LogsResponse ¶ added in v1.1.0
type LogsResponse struct { Logs []string `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` // contains filtered or unexported fields }
func (*LogsResponse) Descriptor
deprecated
added in
v1.1.0
func (*LogsResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogsResponse.ProtoReflect.Descriptor instead.
func (*LogsResponse) GetLogs ¶ added in v1.1.0
func (x *LogsResponse) GetLogs() []string
func (*LogsResponse) ProtoMessage ¶ added in v1.1.0
func (*LogsResponse) ProtoMessage()
func (*LogsResponse) ProtoReflect ¶ added in v1.1.0
func (x *LogsResponse) ProtoReflect() protoreflect.Message
func (*LogsResponse) Reset ¶ added in v1.1.0
func (x *LogsResponse) Reset()
func (*LogsResponse) String ¶ added in v1.1.0
func (x *LogsResponse) 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 */ // contains filtered or unexported fields }
func (*ProtoArrayForkChoiceResponse) Descriptor
deprecated
added in
v1.0.0
func (*ProtoArrayForkChoiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProtoArrayForkChoiceResponse.ProtoReflect.Descriptor instead.
func (*ProtoArrayForkChoiceResponse) GetFinalizedEpoch ¶ added in v1.0.0
func (x *ProtoArrayForkChoiceResponse) GetFinalizedEpoch() uint64
func (*ProtoArrayForkChoiceResponse) GetIndices ¶ added in v1.0.0
func (x *ProtoArrayForkChoiceResponse) GetIndices() map[string]uint64
func (*ProtoArrayForkChoiceResponse) GetJustifiedEpoch ¶ added in v1.0.0
func (x *ProtoArrayForkChoiceResponse) GetJustifiedEpoch() uint64
func (*ProtoArrayForkChoiceResponse) GetProtoArrayNodes ¶ added in v1.0.0
func (x *ProtoArrayForkChoiceResponse) GetProtoArrayNodes() []*ProtoArrayNode
func (*ProtoArrayForkChoiceResponse) GetPruneThreshold ¶ added in v1.0.0
func (x *ProtoArrayForkChoiceResponse) GetPruneThreshold() uint64
func (*ProtoArrayForkChoiceResponse) ProtoMessage ¶ added in v1.0.0
func (*ProtoArrayForkChoiceResponse) ProtoMessage()
func (*ProtoArrayForkChoiceResponse) ProtoReflect ¶ added in v1.0.0
func (x *ProtoArrayForkChoiceResponse) ProtoReflect() protoreflect.Message
func (*ProtoArrayForkChoiceResponse) Reset ¶ added in v1.0.0
func (x *ProtoArrayForkChoiceResponse) Reset()
func (*ProtoArrayForkChoiceResponse) String ¶ added in v1.0.0
func (x *ProtoArrayForkChoiceResponse) String() string
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"` // contains filtered or unexported fields }
func (*ProtoArrayNode) Descriptor
deprecated
added in
v1.0.0
func (*ProtoArrayNode) Descriptor() ([]byte, []int)
Deprecated: Use ProtoArrayNode.ProtoReflect.Descriptor instead.
func (*ProtoArrayNode) GetBestChild ¶ added in v1.0.0
func (x *ProtoArrayNode) GetBestChild() uint64
func (*ProtoArrayNode) GetBestDescendant ¶ added in v1.0.0
func (x *ProtoArrayNode) GetBestDescendant() uint64
func (*ProtoArrayNode) GetFinalizedEpoch ¶ added in v1.0.0
func (x *ProtoArrayNode) GetFinalizedEpoch() uint64
func (*ProtoArrayNode) GetJustifiedEpoch ¶ added in v1.0.0
func (x *ProtoArrayNode) GetJustifiedEpoch() uint64
func (*ProtoArrayNode) GetParent ¶ added in v1.0.0
func (x *ProtoArrayNode) GetParent() uint64
func (*ProtoArrayNode) GetRoot ¶ added in v1.0.0
func (x *ProtoArrayNode) GetRoot() []byte
func (*ProtoArrayNode) GetSlot ¶ added in v1.0.0
func (x *ProtoArrayNode) GetSlot() uint64
func (*ProtoArrayNode) GetWeight ¶ added in v1.0.0
func (x *ProtoArrayNode) GetWeight() uint64
func (*ProtoArrayNode) ProtoMessage ¶ added in v1.0.0
func (*ProtoArrayNode) ProtoMessage()
func (*ProtoArrayNode) ProtoReflect ¶ added in v1.0.0
func (x *ProtoArrayNode) ProtoReflect() protoreflect.Message
func (*ProtoArrayNode) Reset ¶ added in v1.0.0
func (x *ProtoArrayNode) Reset()
func (*ProtoArrayNode) String ¶ added in v1.0.0
func (x *ProtoArrayNode) String() string
type SSZResponse ¶ added in v1.0.0
type SSZResponse struct { Encoded []byte `protobuf:"bytes,1,opt,name=encoded,proto3" json:"encoded,omitempty"` // contains filtered or unexported fields }
func (*SSZResponse) Descriptor
deprecated
added in
v1.0.0
func (*SSZResponse) Descriptor() ([]byte, []int)
Deprecated: Use SSZResponse.ProtoReflect.Descriptor instead.
func (*SSZResponse) GetEncoded ¶ added in v1.0.0
func (x *SSZResponse) GetEncoded() []byte
func (*SSZResponse) ProtoMessage ¶ added in v1.0.0
func (*SSZResponse) ProtoMessage()
func (*SSZResponse) ProtoReflect ¶ added in v1.0.0
func (x *SSZResponse) ProtoReflect() protoreflect.Message
func (*SSZResponse) Reset ¶ added in v1.0.0
func (x *SSZResponse) Reset()
func (*SSZResponse) String ¶ added in v1.0.0
func (x *SSZResponse) String() string
type ScoreInfo ¶ added in v1.2.0
type ScoreInfo struct { OverallScore float32 `protobuf:"fixed32,1,opt,name=overall_score,json=overallScore,proto3" json:"overall_score,omitempty"` ProcessedBlocks uint64 `protobuf:"varint,2,opt,name=processed_blocks,json=processedBlocks,proto3" json:"processed_blocks,omitempty"` BlockProviderScore float32 `protobuf:"fixed32,3,opt,name=block_provider_score,json=blockProviderScore,proto3" json:"block_provider_score,omitempty"` TopicScores map[string]*TopicScoreSnapshot `` /* 182-byte string literal not displayed */ GossipScore float32 `protobuf:"fixed32,5,opt,name=gossip_score,json=gossipScore,proto3" json:"gossip_score,omitempty"` BehaviourPenalty float32 `protobuf:"fixed32,6,opt,name=behaviour_penalty,json=behaviourPenalty,proto3" json:"behaviour_penalty,omitempty"` ValidationError string `protobuf:"bytes,7,opt,name=validation_error,json=validationError,proto3" json:"validation_error,omitempty"` // contains filtered or unexported fields }
func (*ScoreInfo) Descriptor
deprecated
added in
v1.2.0
func (*ScoreInfo) GetBehaviourPenalty ¶ added in v1.2.0
func (*ScoreInfo) GetBlockProviderScore ¶ added in v1.2.0
func (*ScoreInfo) GetGossipScore ¶ added in v1.2.0
func (*ScoreInfo) GetOverallScore ¶ added in v1.2.0
func (*ScoreInfo) GetProcessedBlocks ¶ added in v1.2.0
func (*ScoreInfo) GetTopicScores ¶ added in v1.2.0
func (x *ScoreInfo) GetTopicScores() map[string]*TopicScoreSnapshot
func (*ScoreInfo) GetValidationError ¶ added in v1.2.0
func (*ScoreInfo) ProtoMessage ¶ added in v1.2.0
func (*ScoreInfo) ProtoMessage()
func (*ScoreInfo) ProtoReflect ¶ added in v1.2.0
func (x *ScoreInfo) ProtoReflect() protoreflect.Message
type TopicScoreSnapshot ¶ added in v1.2.0
type TopicScoreSnapshot struct { TimeInMesh uint64 `protobuf:"varint,1,opt,name=time_in_mesh,json=timeInMesh,proto3" json:"time_in_mesh,omitempty"` FirstMessageDeliveries float32 `` /* 131-byte string literal not displayed */ MeshMessageDeliveries float32 `` /* 128-byte string literal not displayed */ InvalidMessageDeliveries float32 `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TopicScoreSnapshot) Descriptor
deprecated
added in
v1.2.0
func (*TopicScoreSnapshot) Descriptor() ([]byte, []int)
Deprecated: Use TopicScoreSnapshot.ProtoReflect.Descriptor instead.
func (*TopicScoreSnapshot) GetFirstMessageDeliveries ¶ added in v1.2.0
func (x *TopicScoreSnapshot) GetFirstMessageDeliveries() float32
func (*TopicScoreSnapshot) GetInvalidMessageDeliveries ¶ added in v1.2.0
func (x *TopicScoreSnapshot) GetInvalidMessageDeliveries() float32
func (*TopicScoreSnapshot) GetMeshMessageDeliveries ¶ added in v1.2.0
func (x *TopicScoreSnapshot) GetMeshMessageDeliveries() float32
func (*TopicScoreSnapshot) GetTimeInMesh ¶ added in v1.2.0
func (x *TopicScoreSnapshot) GetTimeInMesh() uint64
func (*TopicScoreSnapshot) ProtoMessage ¶ added in v1.2.0
func (*TopicScoreSnapshot) ProtoMessage()
func (*TopicScoreSnapshot) ProtoReflect ¶ added in v1.2.0
func (x *TopicScoreSnapshot) ProtoReflect() protoreflect.Message
func (*TopicScoreSnapshot) Reset ¶ added in v1.2.0
func (x *TopicScoreSnapshot) Reset()
func (*TopicScoreSnapshot) String ¶ added in v1.2.0
func (x *TopicScoreSnapshot) String() string
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(context.Context, *BeaconStateRequest) (*SSZResponse, error)
func (*UnimplementedDebugServer) GetBlock ¶ added in v1.0.0
func (*UnimplementedDebugServer) GetBlock(context.Context, *BlockRequest) (*SSZResponse, error)
func (*UnimplementedDebugServer) GetInclusionSlot ¶ added in v1.0.0
func (*UnimplementedDebugServer) GetInclusionSlot(context.Context, *InclusionSlotRequest) (*InclusionSlotResponse, error)
func (*UnimplementedDebugServer) GetPeer ¶ added in v1.0.0
func (*UnimplementedDebugServer) GetPeer(context.Context, *v1alpha1.PeerRequest) (*DebugPeerResponse, error)
func (*UnimplementedDebugServer) GetProtoArrayForkChoice ¶ added in v1.0.0
func (*UnimplementedDebugServer) GetProtoArrayForkChoice(context.Context, *empty.Empty) (*ProtoArrayForkChoiceResponse, error)
func (*UnimplementedDebugServer) ListPeers ¶ added in v1.0.0
func (*UnimplementedDebugServer) ListPeers(context.Context, *empty.Empty) (*DebugPeerResponses, error)
func (*UnimplementedDebugServer) SetLoggingLevel ¶ added in v1.0.0
func (*UnimplementedDebugServer) SetLoggingLevel(context.Context, *LoggingLevelRequest) (*empty.Empty, error)
type UnimplementedHealthServer ¶ added in v1.0.1
type UnimplementedHealthServer struct { }
UnimplementedHealthServer can be embedded to have forward compatible implementations.
func (*UnimplementedHealthServer) StreamBeaconLogs ¶ added in v1.1.0
func (*UnimplementedHealthServer) StreamBeaconLogs(*empty.Empty, Health_StreamBeaconLogsServer) error