Documentation ¶
Index ¶
- Variables
- func RegisterBorServer(s grpc.ServiceRegistrar, srv BorServer)
- type BlockStub
- type BorClient
- type BorServer
- type Bor_ChainWatchClient
- type Bor_ChainWatchServer
- type Bor_DebugBlockClient
- type Bor_DebugBlockServer
- type Bor_DebugPprofClient
- type Bor_DebugPprofServer
- 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 DebugBlockRequest
- type DebugFileResponse
- func (*DebugFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DebugFileResponse) GetEof() *emptypb.Empty
- func (m *DebugFileResponse) GetEvent() isDebugFileResponse_Event
- func (x *DebugFileResponse) GetInput() *DebugFileResponse_Input
- func (x *DebugFileResponse) GetOpen() *DebugFileResponse_Open
- func (*DebugFileResponse) ProtoMessage()
- func (x *DebugFileResponse) ProtoReflect() protoreflect.Message
- func (x *DebugFileResponse) Reset()
- func (x *DebugFileResponse) String() string
- type DebugFileResponse_Eof
- type DebugFileResponse_Input
- func (*DebugFileResponse_Input) Descriptor() ([]byte, []int)deprecated
- func (x *DebugFileResponse_Input) GetData() []byte
- func (*DebugFileResponse_Input) ProtoMessage()
- func (x *DebugFileResponse_Input) ProtoReflect() protoreflect.Message
- func (x *DebugFileResponse_Input) Reset()
- func (x *DebugFileResponse_Input) String() string
- type DebugFileResponse_Input_
- type DebugFileResponse_Open
- func (*DebugFileResponse_Open) Descriptor() ([]byte, []int)deprecated
- func (x *DebugFileResponse_Open) GetHeaders() map[string]string
- func (*DebugFileResponse_Open) ProtoMessage()
- func (x *DebugFileResponse_Open) ProtoReflect() protoreflect.Message
- func (x *DebugFileResponse_Open) Reset()
- func (x *DebugFileResponse_Open) String() string
- type DebugFileResponse_Open_
- type DebugPprofRequest
- func (*DebugPprofRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DebugPprofRequest) GetProfile() string
- func (x *DebugPprofRequest) GetSeconds() int64
- func (x *DebugPprofRequest) GetType() DebugPprofRequest_Type
- func (*DebugPprofRequest) ProtoMessage()
- func (x *DebugPprofRequest) ProtoReflect() protoreflect.Message
- func (x *DebugPprofRequest) Reset()
- func (x *DebugPprofRequest) String() string
- type DebugPprofRequest_Type
- func (DebugPprofRequest_Type) Descriptor() protoreflect.EnumDescriptor
- func (x DebugPprofRequest_Type) Enum() *DebugPprofRequest_Type
- func (DebugPprofRequest_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x DebugPprofRequest_Type) Number() protoreflect.EnumNumber
- func (x DebugPprofRequest_Type) String() string
- func (DebugPprofRequest_Type) Type() protoreflect.EnumType
- 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 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 TraceRequest
- type TraceResponse
- type UnimplementedBorServer
- func (UnimplementedBorServer) ChainSetHead(context.Context, *ChainSetHeadRequest) (*ChainSetHeadResponse, error)
- func (UnimplementedBorServer) ChainWatch(*ChainWatchRequest, Bor_ChainWatchServer) error
- func (UnimplementedBorServer) DebugBlock(*DebugBlockRequest, Bor_DebugBlockServer) error
- func (UnimplementedBorServer) DebugPprof(*DebugPprofRequest, Bor_DebugPprofServer) 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) Status(context.Context, *emptypb.Empty) (*StatusResponse, error)
- type UnsafeBorServer
Constants ¶
This section is empty.
Variables ¶
var ( DebugPprofRequest_Type_name = map[int32]string{ 0: "LOOKUP", 1: "CPU", 2: "TRACE", } DebugPprofRequest_Type_value = map[string]int32{ "LOOKUP": 0, "CPU": 1, "TRACE": 2, } )
Enum value maps for DebugPprofRequest_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: "ChainWatch", Handler: _Bor_ChainWatch_Handler, ServerStreams: true, }, { StreamName: "DebugPprof", Handler: _Bor_DebugPprof_Handler, ServerStreams: true, }, { StreamName: "DebugBlock", Handler: _Bor_DebugBlock_Handler, ServerStreams: true, }, }, Metadata: "internal/cli/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_internal_cli_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 { 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) DebugPprof(ctx context.Context, in *DebugPprofRequest, opts ...grpc.CallOption) (Bor_DebugPprofClient, error) DebugBlock(ctx context.Context, in *DebugBlockRequest, opts ...grpc.CallOption) (Bor_DebugBlockClient, 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 { 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 DebugPprof(*DebugPprofRequest, Bor_DebugPprofServer) error DebugBlock(*DebugBlockRequest, Bor_DebugBlockServer) 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_DebugBlockClient ¶
type Bor_DebugBlockClient interface { Recv() (*DebugFileResponse, error) grpc.ClientStream }
type Bor_DebugBlockServer ¶
type Bor_DebugBlockServer interface { Send(*DebugFileResponse) error grpc.ServerStream }
type Bor_DebugPprofClient ¶
type Bor_DebugPprofClient interface { Recv() (*DebugFileResponse, error) grpc.ClientStream }
type Bor_DebugPprofServer ¶
type Bor_DebugPprofServer interface { Send(*DebugFileResponse) 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 DebugBlockRequest ¶
type DebugBlockRequest struct { Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*DebugBlockRequest) Descriptor
deprecated
func (*DebugBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use DebugBlockRequest.ProtoReflect.Descriptor instead.
func (*DebugBlockRequest) GetNumber ¶
func (x *DebugBlockRequest) GetNumber() int64
func (*DebugBlockRequest) ProtoMessage ¶
func (*DebugBlockRequest) ProtoMessage()
func (*DebugBlockRequest) ProtoReflect ¶
func (x *DebugBlockRequest) ProtoReflect() protoreflect.Message
func (*DebugBlockRequest) Reset ¶
func (x *DebugBlockRequest) Reset()
func (*DebugBlockRequest) String ¶
func (x *DebugBlockRequest) String() string
type DebugFileResponse ¶
type DebugFileResponse struct { // Types that are assignable to Event: // *DebugFileResponse_Open_ // *DebugFileResponse_Input_ // *DebugFileResponse_Eof Event isDebugFileResponse_Event `protobuf_oneof:"event"` // contains filtered or unexported fields }
func (*DebugFileResponse) Descriptor
deprecated
func (*DebugFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use DebugFileResponse.ProtoReflect.Descriptor instead.
func (*DebugFileResponse) GetEof ¶
func (x *DebugFileResponse) GetEof() *emptypb.Empty
func (*DebugFileResponse) GetEvent ¶
func (m *DebugFileResponse) GetEvent() isDebugFileResponse_Event
func (*DebugFileResponse) GetInput ¶
func (x *DebugFileResponse) GetInput() *DebugFileResponse_Input
func (*DebugFileResponse) GetOpen ¶
func (x *DebugFileResponse) GetOpen() *DebugFileResponse_Open
func (*DebugFileResponse) ProtoMessage ¶
func (*DebugFileResponse) ProtoMessage()
func (*DebugFileResponse) ProtoReflect ¶
func (x *DebugFileResponse) ProtoReflect() protoreflect.Message
func (*DebugFileResponse) Reset ¶
func (x *DebugFileResponse) Reset()
func (*DebugFileResponse) String ¶
func (x *DebugFileResponse) String() string
type DebugFileResponse_Eof ¶
type DebugFileResponse_Input ¶
type DebugFileResponse_Input struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DebugFileResponse_Input) Descriptor
deprecated
func (*DebugFileResponse_Input) Descriptor() ([]byte, []int)
Deprecated: Use DebugFileResponse_Input.ProtoReflect.Descriptor instead.
func (*DebugFileResponse_Input) GetData ¶
func (x *DebugFileResponse_Input) GetData() []byte
func (*DebugFileResponse_Input) ProtoMessage ¶
func (*DebugFileResponse_Input) ProtoMessage()
func (*DebugFileResponse_Input) ProtoReflect ¶
func (x *DebugFileResponse_Input) ProtoReflect() protoreflect.Message
func (*DebugFileResponse_Input) Reset ¶
func (x *DebugFileResponse_Input) Reset()
func (*DebugFileResponse_Input) String ¶
func (x *DebugFileResponse_Input) String() string
type DebugFileResponse_Input_ ¶
type DebugFileResponse_Input_ struct {
Input *DebugFileResponse_Input `protobuf:"bytes,2,opt,name=input,proto3,oneof"`
}
type DebugFileResponse_Open ¶
type DebugFileResponse_Open struct { Headers map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DebugFileResponse_Open) Descriptor
deprecated
func (*DebugFileResponse_Open) Descriptor() ([]byte, []int)
Deprecated: Use DebugFileResponse_Open.ProtoReflect.Descriptor instead.
func (*DebugFileResponse_Open) GetHeaders ¶
func (x *DebugFileResponse_Open) GetHeaders() map[string]string
func (*DebugFileResponse_Open) ProtoMessage ¶
func (*DebugFileResponse_Open) ProtoMessage()
func (*DebugFileResponse_Open) ProtoReflect ¶
func (x *DebugFileResponse_Open) ProtoReflect() protoreflect.Message
func (*DebugFileResponse_Open) Reset ¶
func (x *DebugFileResponse_Open) Reset()
func (*DebugFileResponse_Open) String ¶
func (x *DebugFileResponse_Open) String() string
type DebugFileResponse_Open_ ¶
type DebugFileResponse_Open_ struct {
Open *DebugFileResponse_Open `protobuf:"bytes,1,opt,name=open,proto3,oneof"`
}
type DebugPprofRequest ¶
type DebugPprofRequest struct { Type DebugPprofRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=proto.DebugPprofRequest_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 (*DebugPprofRequest) Descriptor
deprecated
func (*DebugPprofRequest) Descriptor() ([]byte, []int)
Deprecated: Use DebugPprofRequest.ProtoReflect.Descriptor instead.
func (*DebugPprofRequest) GetProfile ¶
func (x *DebugPprofRequest) GetProfile() string
func (*DebugPprofRequest) GetSeconds ¶
func (x *DebugPprofRequest) GetSeconds() int64
func (*DebugPprofRequest) GetType ¶
func (x *DebugPprofRequest) GetType() DebugPprofRequest_Type
func (*DebugPprofRequest) ProtoMessage ¶
func (*DebugPprofRequest) ProtoMessage()
func (*DebugPprofRequest) ProtoReflect ¶
func (x *DebugPprofRequest) ProtoReflect() protoreflect.Message
func (*DebugPprofRequest) Reset ¶
func (x *DebugPprofRequest) Reset()
func (*DebugPprofRequest) String ¶
func (x *DebugPprofRequest) String() string
type DebugPprofRequest_Type ¶
type DebugPprofRequest_Type int32
const ( DebugPprofRequest_LOOKUP DebugPprofRequest_Type = 0 DebugPprofRequest_CPU DebugPprofRequest_Type = 1 DebugPprofRequest_TRACE DebugPprofRequest_Type = 2 )
func (DebugPprofRequest_Type) Descriptor ¶
func (DebugPprofRequest_Type) Descriptor() protoreflect.EnumDescriptor
func (DebugPprofRequest_Type) Enum ¶
func (x DebugPprofRequest_Type) Enum() *DebugPprofRequest_Type
func (DebugPprofRequest_Type) EnumDescriptor
deprecated
func (DebugPprofRequest_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use DebugPprofRequest_Type.Descriptor instead.
func (DebugPprofRequest_Type) Number ¶
func (x DebugPprofRequest_Type) Number() protoreflect.EnumNumber
func (DebugPprofRequest_Type) String ¶
func (x DebugPprofRequest_Type) String() string
func (DebugPprofRequest_Type) Type ¶
func (DebugPprofRequest_Type) Type() protoreflect.EnumType
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 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 TraceRequest ¶
type TraceRequest struct { Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*TraceRequest) Descriptor
deprecated
func (*TraceRequest) Descriptor() ([]byte, []int)
Deprecated: Use TraceRequest.ProtoReflect.Descriptor instead.
func (*TraceRequest) GetNumber ¶
func (x *TraceRequest) GetNumber() int64
func (*TraceRequest) ProtoMessage ¶
func (*TraceRequest) ProtoMessage()
func (*TraceRequest) ProtoReflect ¶
func (x *TraceRequest) ProtoReflect() protoreflect.Message
func (*TraceRequest) Reset ¶
func (x *TraceRequest) Reset()
func (*TraceRequest) String ¶
func (x *TraceRequest) String() string
type TraceResponse ¶
type TraceResponse struct {
// contains filtered or unexported fields
}
func (*TraceResponse) Descriptor
deprecated
func (*TraceResponse) Descriptor() ([]byte, []int)
Deprecated: Use TraceResponse.ProtoReflect.Descriptor instead.
func (*TraceResponse) ProtoMessage ¶
func (*TraceResponse) ProtoMessage()
func (*TraceResponse) ProtoReflect ¶
func (x *TraceResponse) ProtoReflect() protoreflect.Message
func (*TraceResponse) Reset ¶
func (x *TraceResponse) Reset()
func (*TraceResponse) String ¶
func (x *TraceResponse) 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) DebugBlock ¶
func (UnimplementedBorServer) DebugBlock(*DebugBlockRequest, Bor_DebugBlockServer) error
func (UnimplementedBorServer) DebugPprof ¶
func (UnimplementedBorServer) DebugPprof(*DebugPprofRequest, Bor_DebugPprofServer) 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) 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.