Documentation ¶
Index ¶
- Variables
- func RegisterBorServer(s grpc.ServiceRegistrar, srv BorServer)
- type BlockStub
- type BorClient
- type BorServer
- type Bor_ChainWatchClient
- type Bor_ChainWatchServer
- type Bor_PprofClient
- type Bor_PprofServer
- type ChainSetHeadRequest
- func (*ChainSetHeadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChainSetHeadRequest) GetNumber() uint64
- func (*ChainSetHeadRequest) ProtoMessage()
- func (x *ChainSetHeadRequest) ProtoReflect() protoreflect.Message
- func (x *ChainSetHeadRequest) Reset()
- func (x *ChainSetHeadRequest) String() string
- type ChainSetHeadResponse
- type ChainWatchRequest
- type ChainWatchResponse
- func (*ChainWatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChainWatchResponse) GetNewchain() []*BlockStub
- func (x *ChainWatchResponse) GetOldchain() []*BlockStub
- func (x *ChainWatchResponse) GetType() string
- func (*ChainWatchResponse) ProtoMessage()
- func (x *ChainWatchResponse) ProtoReflect() protoreflect.Message
- func (x *ChainWatchResponse) Reset()
- func (x *ChainWatchResponse) String() string
- type Header
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)deprecated
- func (x *Peer) GetCaps() []string
- func (x *Peer) GetEnode() string
- func (x *Peer) GetEnr() string
- func (x *Peer) GetId() string
- func (x *Peer) GetName() string
- func (x *Peer) GetStatic() bool
- func (x *Peer) GetTrusted() bool
- func (*Peer) ProtoMessage()
- func (x *Peer) ProtoReflect() protoreflect.Message
- func (x *Peer) Reset()
- func (x *Peer) String() string
- type PeersAddRequest
- func (*PeersAddRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PeersAddRequest) GetEnode() string
- func (x *PeersAddRequest) GetTrusted() bool
- func (*PeersAddRequest) ProtoMessage()
- func (x *PeersAddRequest) ProtoReflect() protoreflect.Message
- func (x *PeersAddRequest) Reset()
- func (x *PeersAddRequest) String() string
- type PeersAddResponse
- type PeersListRequest
- type PeersListResponse
- type PeersRemoveRequest
- func (*PeersRemoveRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PeersRemoveRequest) GetEnode() string
- func (x *PeersRemoveRequest) GetTrusted() bool
- func (*PeersRemoveRequest) ProtoMessage()
- func (x *PeersRemoveRequest) ProtoReflect() protoreflect.Message
- func (x *PeersRemoveRequest) Reset()
- func (x *PeersRemoveRequest) String() string
- type PeersRemoveResponse
- type PeersStatusRequest
- func (*PeersStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PeersStatusRequest) GetEnode() string
- func (*PeersStatusRequest) ProtoMessage()
- func (x *PeersStatusRequest) ProtoReflect() protoreflect.Message
- func (x *PeersStatusRequest) Reset()
- func (x *PeersStatusRequest) String() string
- type PeersStatusResponse
- func (*PeersStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PeersStatusResponse) GetPeer() *Peer
- func (*PeersStatusResponse) ProtoMessage()
- func (x *PeersStatusResponse) ProtoReflect() protoreflect.Message
- func (x *PeersStatusResponse) Reset()
- func (x *PeersStatusResponse) String() string
- type PprofRequest
- func (*PprofRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PprofRequest) GetProfile() string
- func (x *PprofRequest) GetSeconds() int64
- func (x *PprofRequest) GetType() PprofRequest_Type
- func (*PprofRequest) ProtoMessage()
- func (x *PprofRequest) ProtoReflect() protoreflect.Message
- func (x *PprofRequest) Reset()
- func (x *PprofRequest) String() string
- type PprofRequest_Type
- func (PprofRequest_Type) Descriptor() protoreflect.EnumDescriptor
- func (x PprofRequest_Type) Enum() *PprofRequest_Type
- func (PprofRequest_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x PprofRequest_Type) Number() protoreflect.EnumNumber
- func (x PprofRequest_Type) String() string
- func (PprofRequest_Type) Type() protoreflect.EnumType
- type PprofResponse
- func (*PprofResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PprofResponse) GetEof() *emptypb.Empty
- func (m *PprofResponse) GetEvent() isPprofResponse_Event
- func (x *PprofResponse) GetInput() *PprofResponse_Input
- func (x *PprofResponse) GetOpen() *PprofResponse_Open
- func (*PprofResponse) ProtoMessage()
- func (x *PprofResponse) ProtoReflect() protoreflect.Message
- func (x *PprofResponse) Reset()
- func (x *PprofResponse) String() string
- type PprofResponse_Eof
- type PprofResponse_Input
- func (*PprofResponse_Input) Descriptor() ([]byte, []int)deprecated
- func (x *PprofResponse_Input) GetData() []byte
- func (*PprofResponse_Input) ProtoMessage()
- func (x *PprofResponse_Input) ProtoReflect() protoreflect.Message
- func (x *PprofResponse_Input) Reset()
- func (x *PprofResponse_Input) String() string
- type PprofResponse_Input_
- type PprofResponse_Open
- func (*PprofResponse_Open) Descriptor() ([]byte, []int)deprecated
- func (x *PprofResponse_Open) GetHeaders() map[string]string
- func (x *PprofResponse_Open) GetSize() int64
- func (*PprofResponse_Open) ProtoMessage()
- func (x *PprofResponse_Open) ProtoReflect() protoreflect.Message
- func (x *PprofResponse_Open) Reset()
- func (x *PprofResponse_Open) String() string
- type PprofResponse_Open_
- type StatusResponse
- func (*StatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse) GetCurrentBlock() *Header
- func (x *StatusResponse) GetCurrentHeader() *Header
- func (x *StatusResponse) GetForks() []*StatusResponse_Fork
- func (x *StatusResponse) GetNumPeers() int64
- func (x *StatusResponse) GetSyncMode() string
- func (x *StatusResponse) GetSyncing() *StatusResponse_Syncing
- func (*StatusResponse) ProtoMessage()
- func (x *StatusResponse) ProtoReflect() protoreflect.Message
- func (x *StatusResponse) Reset()
- func (x *StatusResponse) String() string
- type StatusResponse_Fork
- func (*StatusResponse_Fork) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse_Fork) GetBlock() int64
- func (x *StatusResponse_Fork) GetDisabled() bool
- func (x *StatusResponse_Fork) GetName() string
- func (*StatusResponse_Fork) ProtoMessage()
- func (x *StatusResponse_Fork) ProtoReflect() protoreflect.Message
- func (x *StatusResponse_Fork) Reset()
- func (x *StatusResponse_Fork) String() string
- type StatusResponse_Syncing
- func (*StatusResponse_Syncing) Descriptor() ([]byte, []int)deprecated
- func (x *StatusResponse_Syncing) GetCurrentBlock() int64
- func (x *StatusResponse_Syncing) GetHighestBlock() int64
- func (x *StatusResponse_Syncing) GetStartingBlock() int64
- func (*StatusResponse_Syncing) ProtoMessage()
- func (x *StatusResponse_Syncing) ProtoReflect() protoreflect.Message
- func (x *StatusResponse_Syncing) Reset()
- func (x *StatusResponse_Syncing) String() string
- type UnimplementedBorServer
- func (UnimplementedBorServer) ChainSetHead(context.Context, *ChainSetHeadRequest) (*ChainSetHeadResponse, error)
- func (UnimplementedBorServer) ChainWatch(*ChainWatchRequest, Bor_ChainWatchServer) error
- func (UnimplementedBorServer) PeersAdd(context.Context, *PeersAddRequest) (*PeersAddResponse, error)
- func (UnimplementedBorServer) PeersList(context.Context, *PeersListRequest) (*PeersListResponse, error)
- func (UnimplementedBorServer) PeersRemove(context.Context, *PeersRemoveRequest) (*PeersRemoveResponse, error)
- func (UnimplementedBorServer) PeersStatus(context.Context, *PeersStatusRequest) (*PeersStatusResponse, error)
- func (UnimplementedBorServer) Pprof(*PprofRequest, Bor_PprofServer) error
- func (UnimplementedBorServer) Status(context.Context, *emptypb.Empty) (*StatusResponse, error)
- type UnsafeBorServer
Constants ¶
This section is empty.
Variables ¶
var ( PprofRequest_Type_name = map[int32]string{ 0: "LOOKUP", 1: "CPU", 2: "TRACE", } PprofRequest_Type_value = map[string]int32{ "LOOKUP": 0, "CPU": 1, "TRACE": 2, } )
Enum value maps for PprofRequest_Type.
var Bor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Bor", HandlerType: (*BorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PeersAdd", Handler: _Bor_PeersAdd_Handler, }, { MethodName: "PeersRemove", Handler: _Bor_PeersRemove_Handler, }, { MethodName: "PeersList", Handler: _Bor_PeersList_Handler, }, { MethodName: "PeersStatus", Handler: _Bor_PeersStatus_Handler, }, { MethodName: "ChainSetHead", Handler: _Bor_ChainSetHead_Handler, }, { MethodName: "Status", Handler: _Bor_Status_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Pprof", Handler: _Bor_Pprof_Handler, ServerStreams: true, }, { StreamName: "ChainWatch", Handler: _Bor_ChainWatch_Handler, ServerStreams: true, }, }, Metadata: "command/server/proto/server.proto", }
Bor_ServiceDesc is the grpc.ServiceDesc for Bor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_command_server_proto_server_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBorServer ¶
func RegisterBorServer(s grpc.ServiceRegistrar, srv BorServer)
Types ¶
type BlockStub ¶
type BlockStub struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*BlockStub) Descriptor
deprecated
func (*BlockStub) ProtoMessage ¶
func (*BlockStub) ProtoMessage()
func (*BlockStub) ProtoReflect ¶
func (x *BlockStub) ProtoReflect() protoreflect.Message
type BorClient ¶
type BorClient interface { Pprof(ctx context.Context, in *PprofRequest, opts ...grpc.CallOption) (Bor_PprofClient, error) PeersAdd(ctx context.Context, in *PeersAddRequest, opts ...grpc.CallOption) (*PeersAddResponse, error) PeersRemove(ctx context.Context, in *PeersRemoveRequest, opts ...grpc.CallOption) (*PeersRemoveResponse, error) PeersList(ctx context.Context, in *PeersListRequest, opts ...grpc.CallOption) (*PeersListResponse, error) PeersStatus(ctx context.Context, in *PeersStatusRequest, opts ...grpc.CallOption) (*PeersStatusResponse, error) ChainSetHead(ctx context.Context, in *ChainSetHeadRequest, opts ...grpc.CallOption) (*ChainSetHeadResponse, error) Status(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*StatusResponse, error) ChainWatch(ctx context.Context, in *ChainWatchRequest, opts ...grpc.CallOption) (Bor_ChainWatchClient, error) }
BorClient is the client API for Bor service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBorClient ¶
func NewBorClient(cc grpc.ClientConnInterface) BorClient
type BorServer ¶
type BorServer interface { Pprof(*PprofRequest, Bor_PprofServer) error PeersAdd(context.Context, *PeersAddRequest) (*PeersAddResponse, error) PeersRemove(context.Context, *PeersRemoveRequest) (*PeersRemoveResponse, error) PeersList(context.Context, *PeersListRequest) (*PeersListResponse, error) PeersStatus(context.Context, *PeersStatusRequest) (*PeersStatusResponse, error) ChainSetHead(context.Context, *ChainSetHeadRequest) (*ChainSetHeadResponse, error) Status(context.Context, *emptypb.Empty) (*StatusResponse, error) ChainWatch(*ChainWatchRequest, Bor_ChainWatchServer) error // contains filtered or unexported methods }
BorServer is the server API for Bor service. All implementations must embed UnimplementedBorServer for forward compatibility
type Bor_ChainWatchClient ¶
type Bor_ChainWatchClient interface { Recv() (*ChainWatchResponse, error) grpc.ClientStream }
type Bor_ChainWatchServer ¶
type Bor_ChainWatchServer interface { Send(*ChainWatchResponse) error grpc.ServerStream }
type Bor_PprofClient ¶
type Bor_PprofClient interface { Recv() (*PprofResponse, error) grpc.ClientStream }
type Bor_PprofServer ¶
type Bor_PprofServer interface { Send(*PprofResponse) error grpc.ServerStream }
type ChainSetHeadRequest ¶
type ChainSetHeadRequest struct { Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*ChainSetHeadRequest) Descriptor
deprecated
func (*ChainSetHeadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChainSetHeadRequest.ProtoReflect.Descriptor instead.
func (*ChainSetHeadRequest) GetNumber ¶
func (x *ChainSetHeadRequest) GetNumber() uint64
func (*ChainSetHeadRequest) ProtoMessage ¶
func (*ChainSetHeadRequest) ProtoMessage()
func (*ChainSetHeadRequest) ProtoReflect ¶
func (x *ChainSetHeadRequest) ProtoReflect() protoreflect.Message
func (*ChainSetHeadRequest) Reset ¶
func (x *ChainSetHeadRequest) Reset()
func (*ChainSetHeadRequest) String ¶
func (x *ChainSetHeadRequest) String() string
type ChainSetHeadResponse ¶
type ChainSetHeadResponse struct {
// contains filtered or unexported fields
}
func (*ChainSetHeadResponse) Descriptor
deprecated
func (*ChainSetHeadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChainSetHeadResponse.ProtoReflect.Descriptor instead.
func (*ChainSetHeadResponse) ProtoMessage ¶
func (*ChainSetHeadResponse) ProtoMessage()
func (*ChainSetHeadResponse) ProtoReflect ¶
func (x *ChainSetHeadResponse) ProtoReflect() protoreflect.Message
func (*ChainSetHeadResponse) Reset ¶
func (x *ChainSetHeadResponse) Reset()
func (*ChainSetHeadResponse) String ¶
func (x *ChainSetHeadResponse) String() string
type ChainWatchRequest ¶
type ChainWatchRequest struct {
// contains filtered or unexported fields
}
func (*ChainWatchRequest) Descriptor
deprecated
func (*ChainWatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChainWatchRequest.ProtoReflect.Descriptor instead.
func (*ChainWatchRequest) ProtoMessage ¶
func (*ChainWatchRequest) ProtoMessage()
func (*ChainWatchRequest) ProtoReflect ¶
func (x *ChainWatchRequest) ProtoReflect() protoreflect.Message
func (*ChainWatchRequest) Reset ¶
func (x *ChainWatchRequest) Reset()
func (*ChainWatchRequest) String ¶
func (x *ChainWatchRequest) String() string
type ChainWatchResponse ¶
type ChainWatchResponse struct { Oldchain []*BlockStub `protobuf:"bytes,1,rep,name=oldchain,proto3" json:"oldchain,omitempty"` Newchain []*BlockStub `protobuf:"bytes,2,rep,name=newchain,proto3" json:"newchain,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ChainWatchResponse) Descriptor
deprecated
func (*ChainWatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChainWatchResponse.ProtoReflect.Descriptor instead.
func (*ChainWatchResponse) GetNewchain ¶
func (x *ChainWatchResponse) GetNewchain() []*BlockStub
func (*ChainWatchResponse) GetOldchain ¶
func (x *ChainWatchResponse) GetOldchain() []*BlockStub
func (*ChainWatchResponse) GetType ¶
func (x *ChainWatchResponse) GetType() string
func (*ChainWatchResponse) ProtoMessage ¶
func (*ChainWatchResponse) ProtoMessage()
func (*ChainWatchResponse) ProtoReflect ¶
func (x *ChainWatchResponse) ProtoReflect() protoreflect.Message
func (*ChainWatchResponse) Reset ¶
func (x *ChainWatchResponse) Reset()
func (*ChainWatchResponse) String ¶
func (x *ChainWatchResponse) String() string
type Header ¶
type Header struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*Header) Descriptor
deprecated
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type Peer ¶
type Peer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Enode string `protobuf:"bytes,2,opt,name=enode,proto3" json:"enode,omitempty"` Enr string `protobuf:"bytes,3,opt,name=enr,proto3" json:"enr,omitempty"` Caps []string `protobuf:"bytes,4,rep,name=caps,proto3" json:"caps,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` Trusted bool `protobuf:"varint,6,opt,name=trusted,proto3" json:"trusted,omitempty"` Static bool `protobuf:"varint,7,opt,name=static,proto3" json:"static,omitempty"` // contains filtered or unexported fields }
func (*Peer) Descriptor
deprecated
func (*Peer) GetTrusted ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) ProtoReflect ¶
func (x *Peer) ProtoReflect() protoreflect.Message
type PeersAddRequest ¶
type PeersAddRequest struct { Enode string `protobuf:"bytes,1,opt,name=enode,proto3" json:"enode,omitempty"` Trusted bool `protobuf:"varint,2,opt,name=trusted,proto3" json:"trusted,omitempty"` // contains filtered or unexported fields }
func (*PeersAddRequest) Descriptor
deprecated
func (*PeersAddRequest) Descriptor() ([]byte, []int)
Deprecated: Use PeersAddRequest.ProtoReflect.Descriptor instead.
func (*PeersAddRequest) GetEnode ¶
func (x *PeersAddRequest) GetEnode() string
func (*PeersAddRequest) GetTrusted ¶
func (x *PeersAddRequest) GetTrusted() bool
func (*PeersAddRequest) ProtoMessage ¶
func (*PeersAddRequest) ProtoMessage()
func (*PeersAddRequest) ProtoReflect ¶
func (x *PeersAddRequest) ProtoReflect() protoreflect.Message
func (*PeersAddRequest) Reset ¶
func (x *PeersAddRequest) Reset()
func (*PeersAddRequest) String ¶
func (x *PeersAddRequest) String() string
type PeersAddResponse ¶
type PeersAddResponse struct {
// contains filtered or unexported fields
}
func (*PeersAddResponse) Descriptor
deprecated
func (*PeersAddResponse) Descriptor() ([]byte, []int)
Deprecated: Use PeersAddResponse.ProtoReflect.Descriptor instead.
func (*PeersAddResponse) ProtoMessage ¶
func (*PeersAddResponse) ProtoMessage()
func (*PeersAddResponse) ProtoReflect ¶
func (x *PeersAddResponse) ProtoReflect() protoreflect.Message
func (*PeersAddResponse) Reset ¶
func (x *PeersAddResponse) Reset()
func (*PeersAddResponse) String ¶
func (x *PeersAddResponse) String() string
type PeersListRequest ¶
type PeersListRequest struct {
// contains filtered or unexported fields
}
func (*PeersListRequest) Descriptor
deprecated
func (*PeersListRequest) Descriptor() ([]byte, []int)
Deprecated: Use PeersListRequest.ProtoReflect.Descriptor instead.
func (*PeersListRequest) ProtoMessage ¶
func (*PeersListRequest) ProtoMessage()
func (*PeersListRequest) ProtoReflect ¶
func (x *PeersListRequest) ProtoReflect() protoreflect.Message
func (*PeersListRequest) Reset ¶
func (x *PeersListRequest) Reset()
func (*PeersListRequest) String ¶
func (x *PeersListRequest) String() string
type PeersListResponse ¶
type PeersListResponse struct { Peers []*Peer `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` // contains filtered or unexported fields }
func (*PeersListResponse) Descriptor
deprecated
func (*PeersListResponse) Descriptor() ([]byte, []int)
Deprecated: Use PeersListResponse.ProtoReflect.Descriptor instead.
func (*PeersListResponse) GetPeers ¶
func (x *PeersListResponse) GetPeers() []*Peer
func (*PeersListResponse) ProtoMessage ¶
func (*PeersListResponse) ProtoMessage()
func (*PeersListResponse) ProtoReflect ¶
func (x *PeersListResponse) ProtoReflect() protoreflect.Message
func (*PeersListResponse) Reset ¶
func (x *PeersListResponse) Reset()
func (*PeersListResponse) String ¶
func (x *PeersListResponse) String() string
type PeersRemoveRequest ¶
type PeersRemoveRequest struct { Enode string `protobuf:"bytes,1,opt,name=enode,proto3" json:"enode,omitempty"` Trusted bool `protobuf:"varint,2,opt,name=trusted,proto3" json:"trusted,omitempty"` // contains filtered or unexported fields }
func (*PeersRemoveRequest) Descriptor
deprecated
func (*PeersRemoveRequest) Descriptor() ([]byte, []int)
Deprecated: Use PeersRemoveRequest.ProtoReflect.Descriptor instead.
func (*PeersRemoveRequest) GetEnode ¶
func (x *PeersRemoveRequest) GetEnode() string
func (*PeersRemoveRequest) GetTrusted ¶
func (x *PeersRemoveRequest) GetTrusted() bool
func (*PeersRemoveRequest) ProtoMessage ¶
func (*PeersRemoveRequest) ProtoMessage()
func (*PeersRemoveRequest) ProtoReflect ¶
func (x *PeersRemoveRequest) ProtoReflect() protoreflect.Message
func (*PeersRemoveRequest) Reset ¶
func (x *PeersRemoveRequest) Reset()
func (*PeersRemoveRequest) String ¶
func (x *PeersRemoveRequest) String() string
type PeersRemoveResponse ¶
type PeersRemoveResponse struct {
// contains filtered or unexported fields
}
func (*PeersRemoveResponse) Descriptor
deprecated
func (*PeersRemoveResponse) Descriptor() ([]byte, []int)
Deprecated: Use PeersRemoveResponse.ProtoReflect.Descriptor instead.
func (*PeersRemoveResponse) ProtoMessage ¶
func (*PeersRemoveResponse) ProtoMessage()
func (*PeersRemoveResponse) ProtoReflect ¶
func (x *PeersRemoveResponse) ProtoReflect() protoreflect.Message
func (*PeersRemoveResponse) Reset ¶
func (x *PeersRemoveResponse) Reset()
func (*PeersRemoveResponse) String ¶
func (x *PeersRemoveResponse) String() string
type PeersStatusRequest ¶
type PeersStatusRequest struct { Enode string `protobuf:"bytes,1,opt,name=enode,proto3" json:"enode,omitempty"` // contains filtered or unexported fields }
func (*PeersStatusRequest) Descriptor
deprecated
func (*PeersStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use PeersStatusRequest.ProtoReflect.Descriptor instead.
func (*PeersStatusRequest) GetEnode ¶
func (x *PeersStatusRequest) GetEnode() string
func (*PeersStatusRequest) ProtoMessage ¶
func (*PeersStatusRequest) ProtoMessage()
func (*PeersStatusRequest) ProtoReflect ¶
func (x *PeersStatusRequest) ProtoReflect() protoreflect.Message
func (*PeersStatusRequest) Reset ¶
func (x *PeersStatusRequest) Reset()
func (*PeersStatusRequest) String ¶
func (x *PeersStatusRequest) String() string
type PeersStatusResponse ¶
type PeersStatusResponse struct { Peer *Peer `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"` // contains filtered or unexported fields }
func (*PeersStatusResponse) Descriptor
deprecated
func (*PeersStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use PeersStatusResponse.ProtoReflect.Descriptor instead.
func (*PeersStatusResponse) GetPeer ¶
func (x *PeersStatusResponse) GetPeer() *Peer
func (*PeersStatusResponse) ProtoMessage ¶
func (*PeersStatusResponse) ProtoMessage()
func (*PeersStatusResponse) ProtoReflect ¶
func (x *PeersStatusResponse) ProtoReflect() protoreflect.Message
func (*PeersStatusResponse) Reset ¶
func (x *PeersStatusResponse) Reset()
func (*PeersStatusResponse) String ¶
func (x *PeersStatusResponse) String() string
type PprofRequest ¶
type PprofRequest struct { Type PprofRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=proto.PprofRequest_Type" json:"type,omitempty"` Profile string `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` Seconds int64 `protobuf:"varint,3,opt,name=seconds,proto3" json:"seconds,omitempty"` // contains filtered or unexported fields }
func (*PprofRequest) Descriptor
deprecated
func (*PprofRequest) Descriptor() ([]byte, []int)
Deprecated: Use PprofRequest.ProtoReflect.Descriptor instead.
func (*PprofRequest) GetProfile ¶
func (x *PprofRequest) GetProfile() string
func (*PprofRequest) GetSeconds ¶
func (x *PprofRequest) GetSeconds() int64
func (*PprofRequest) GetType ¶
func (x *PprofRequest) GetType() PprofRequest_Type
func (*PprofRequest) ProtoMessage ¶
func (*PprofRequest) ProtoMessage()
func (*PprofRequest) ProtoReflect ¶
func (x *PprofRequest) ProtoReflect() protoreflect.Message
func (*PprofRequest) Reset ¶
func (x *PprofRequest) Reset()
func (*PprofRequest) String ¶
func (x *PprofRequest) String() string
type PprofRequest_Type ¶
type PprofRequest_Type int32
const ( PprofRequest_LOOKUP PprofRequest_Type = 0 PprofRequest_CPU PprofRequest_Type = 1 PprofRequest_TRACE PprofRequest_Type = 2 )
func (PprofRequest_Type) Descriptor ¶
func (PprofRequest_Type) Descriptor() protoreflect.EnumDescriptor
func (PprofRequest_Type) Enum ¶
func (x PprofRequest_Type) Enum() *PprofRequest_Type
func (PprofRequest_Type) EnumDescriptor
deprecated
func (PprofRequest_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use PprofRequest_Type.Descriptor instead.
func (PprofRequest_Type) Number ¶
func (x PprofRequest_Type) Number() protoreflect.EnumNumber
func (PprofRequest_Type) String ¶
func (x PprofRequest_Type) String() string
func (PprofRequest_Type) Type ¶
func (PprofRequest_Type) Type() protoreflect.EnumType
type PprofResponse ¶
type PprofResponse struct { // Types that are assignable to Event: // *PprofResponse_Open_ // *PprofResponse_Input_ // *PprofResponse_Eof Event isPprofResponse_Event `protobuf_oneof:"event"` // contains filtered or unexported fields }
func (*PprofResponse) Descriptor
deprecated
func (*PprofResponse) Descriptor() ([]byte, []int)
Deprecated: Use PprofResponse.ProtoReflect.Descriptor instead.
func (*PprofResponse) GetEof ¶
func (x *PprofResponse) GetEof() *emptypb.Empty
func (*PprofResponse) GetEvent ¶
func (m *PprofResponse) GetEvent() isPprofResponse_Event
func (*PprofResponse) GetInput ¶
func (x *PprofResponse) GetInput() *PprofResponse_Input
func (*PprofResponse) GetOpen ¶
func (x *PprofResponse) GetOpen() *PprofResponse_Open
func (*PprofResponse) ProtoMessage ¶
func (*PprofResponse) ProtoMessage()
func (*PprofResponse) ProtoReflect ¶
func (x *PprofResponse) ProtoReflect() protoreflect.Message
func (*PprofResponse) Reset ¶
func (x *PprofResponse) Reset()
func (*PprofResponse) String ¶
func (x *PprofResponse) String() string
type PprofResponse_Eof ¶
type PprofResponse_Input ¶
type PprofResponse_Input struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*PprofResponse_Input) Descriptor
deprecated
func (*PprofResponse_Input) Descriptor() ([]byte, []int)
Deprecated: Use PprofResponse_Input.ProtoReflect.Descriptor instead.
func (*PprofResponse_Input) GetData ¶
func (x *PprofResponse_Input) GetData() []byte
func (*PprofResponse_Input) ProtoMessage ¶
func (*PprofResponse_Input) ProtoMessage()
func (*PprofResponse_Input) ProtoReflect ¶
func (x *PprofResponse_Input) ProtoReflect() protoreflect.Message
func (*PprofResponse_Input) Reset ¶
func (x *PprofResponse_Input) Reset()
func (*PprofResponse_Input) String ¶
func (x *PprofResponse_Input) String() string
type PprofResponse_Input_ ¶
type PprofResponse_Input_ struct {
Input *PprofResponse_Input `protobuf:"bytes,2,opt,name=input,proto3,oneof"`
}
type PprofResponse_Open ¶
type PprofResponse_Open struct { Headers map[string]string `` /* 155-byte string literal not displayed */ Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*PprofResponse_Open) Descriptor
deprecated
func (*PprofResponse_Open) Descriptor() ([]byte, []int)
Deprecated: Use PprofResponse_Open.ProtoReflect.Descriptor instead.
func (*PprofResponse_Open) GetHeaders ¶
func (x *PprofResponse_Open) GetHeaders() map[string]string
func (*PprofResponse_Open) GetSize ¶
func (x *PprofResponse_Open) GetSize() int64
func (*PprofResponse_Open) ProtoMessage ¶
func (*PprofResponse_Open) ProtoMessage()
func (*PprofResponse_Open) ProtoReflect ¶
func (x *PprofResponse_Open) ProtoReflect() protoreflect.Message
func (*PprofResponse_Open) Reset ¶
func (x *PprofResponse_Open) Reset()
func (*PprofResponse_Open) String ¶
func (x *PprofResponse_Open) String() string
type PprofResponse_Open_ ¶
type PprofResponse_Open_ struct {
Open *PprofResponse_Open `protobuf:"bytes,1,opt,name=open,proto3,oneof"`
}
type StatusResponse ¶
type StatusResponse struct { CurrentBlock *Header `protobuf:"bytes,1,opt,name=currentBlock,proto3" json:"currentBlock,omitempty"` CurrentHeader *Header `protobuf:"bytes,2,opt,name=currentHeader,proto3" json:"currentHeader,omitempty"` NumPeers int64 `protobuf:"varint,3,opt,name=numPeers,proto3" json:"numPeers,omitempty"` SyncMode string `protobuf:"bytes,4,opt,name=syncMode,proto3" json:"syncMode,omitempty"` Syncing *StatusResponse_Syncing `protobuf:"bytes,5,opt,name=syncing,proto3" json:"syncing,omitempty"` Forks []*StatusResponse_Fork `protobuf:"bytes,6,rep,name=forks,proto3" json:"forks,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse) Descriptor
deprecated
func (*StatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.
func (*StatusResponse) GetCurrentBlock ¶
func (x *StatusResponse) GetCurrentBlock() *Header
func (*StatusResponse) GetCurrentHeader ¶
func (x *StatusResponse) GetCurrentHeader() *Header
func (*StatusResponse) GetForks ¶
func (x *StatusResponse) GetForks() []*StatusResponse_Fork
func (*StatusResponse) GetNumPeers ¶
func (x *StatusResponse) GetNumPeers() int64
func (*StatusResponse) GetSyncMode ¶
func (x *StatusResponse) GetSyncMode() string
func (*StatusResponse) GetSyncing ¶
func (x *StatusResponse) GetSyncing() *StatusResponse_Syncing
func (*StatusResponse) ProtoMessage ¶
func (*StatusResponse) ProtoMessage()
func (*StatusResponse) ProtoReflect ¶
func (x *StatusResponse) ProtoReflect() protoreflect.Message
func (*StatusResponse) Reset ¶
func (x *StatusResponse) Reset()
func (*StatusResponse) String ¶
func (x *StatusResponse) String() string
type StatusResponse_Fork ¶
type StatusResponse_Fork struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Block int64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` Disabled bool `protobuf:"varint,3,opt,name=disabled,proto3" json:"disabled,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse_Fork) Descriptor
deprecated
func (*StatusResponse_Fork) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse_Fork.ProtoReflect.Descriptor instead.
func (*StatusResponse_Fork) GetBlock ¶
func (x *StatusResponse_Fork) GetBlock() int64
func (*StatusResponse_Fork) GetDisabled ¶
func (x *StatusResponse_Fork) GetDisabled() bool
func (*StatusResponse_Fork) GetName ¶
func (x *StatusResponse_Fork) GetName() string
func (*StatusResponse_Fork) ProtoMessage ¶
func (*StatusResponse_Fork) ProtoMessage()
func (*StatusResponse_Fork) ProtoReflect ¶
func (x *StatusResponse_Fork) ProtoReflect() protoreflect.Message
func (*StatusResponse_Fork) Reset ¶
func (x *StatusResponse_Fork) Reset()
func (*StatusResponse_Fork) String ¶
func (x *StatusResponse_Fork) String() string
type StatusResponse_Syncing ¶
type StatusResponse_Syncing struct { StartingBlock int64 `protobuf:"varint,1,opt,name=startingBlock,proto3" json:"startingBlock,omitempty"` HighestBlock int64 `protobuf:"varint,2,opt,name=highestBlock,proto3" json:"highestBlock,omitempty"` CurrentBlock int64 `protobuf:"varint,3,opt,name=currentBlock,proto3" json:"currentBlock,omitempty"` // contains filtered or unexported fields }
func (*StatusResponse_Syncing) Descriptor
deprecated
func (*StatusResponse_Syncing) Descriptor() ([]byte, []int)
Deprecated: Use StatusResponse_Syncing.ProtoReflect.Descriptor instead.
func (*StatusResponse_Syncing) GetCurrentBlock ¶
func (x *StatusResponse_Syncing) GetCurrentBlock() int64
func (*StatusResponse_Syncing) GetHighestBlock ¶
func (x *StatusResponse_Syncing) GetHighestBlock() int64
func (*StatusResponse_Syncing) GetStartingBlock ¶
func (x *StatusResponse_Syncing) GetStartingBlock() int64
func (*StatusResponse_Syncing) ProtoMessage ¶
func (*StatusResponse_Syncing) ProtoMessage()
func (*StatusResponse_Syncing) ProtoReflect ¶
func (x *StatusResponse_Syncing) ProtoReflect() protoreflect.Message
func (*StatusResponse_Syncing) Reset ¶
func (x *StatusResponse_Syncing) Reset()
func (*StatusResponse_Syncing) String ¶
func (x *StatusResponse_Syncing) String() string
type UnimplementedBorServer ¶
type UnimplementedBorServer struct { }
UnimplementedBorServer must be embedded to have forward compatible implementations.
func (UnimplementedBorServer) ChainSetHead ¶
func (UnimplementedBorServer) ChainSetHead(context.Context, *ChainSetHeadRequest) (*ChainSetHeadResponse, error)
func (UnimplementedBorServer) ChainWatch ¶
func (UnimplementedBorServer) ChainWatch(*ChainWatchRequest, Bor_ChainWatchServer) error
func (UnimplementedBorServer) PeersAdd ¶
func (UnimplementedBorServer) PeersAdd(context.Context, *PeersAddRequest) (*PeersAddResponse, error)
func (UnimplementedBorServer) PeersList ¶
func (UnimplementedBorServer) PeersList(context.Context, *PeersListRequest) (*PeersListResponse, error)
func (UnimplementedBorServer) PeersRemove ¶
func (UnimplementedBorServer) PeersRemove(context.Context, *PeersRemoveRequest) (*PeersRemoveResponse, error)
func (UnimplementedBorServer) PeersStatus ¶
func (UnimplementedBorServer) PeersStatus(context.Context, *PeersStatusRequest) (*PeersStatusResponse, error)
func (UnimplementedBorServer) Pprof ¶
func (UnimplementedBorServer) Pprof(*PprofRequest, Bor_PprofServer) error
func (UnimplementedBorServer) Status ¶
func (UnimplementedBorServer) Status(context.Context, *emptypb.Empty) (*StatusResponse, error)
type UnsafeBorServer ¶
type UnsafeBorServer interface {
// contains filtered or unexported methods
}
UnsafeBorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BorServer will result in compilation errors.