proto

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use BlockStub.ProtoReflect.Descriptor instead.

func (*BlockStub) GetHash

func (x *BlockStub) GetHash() string

func (*BlockStub) GetNumber

func (x *BlockStub) GetNumber() uint64

func (*BlockStub) ProtoMessage

func (*BlockStub) ProtoMessage()

func (*BlockStub) ProtoReflect

func (x *BlockStub) ProtoReflect() protoreflect.Message

func (*BlockStub) Reset

func (x *BlockStub) Reset()

func (*BlockStub) String

func (x *BlockStub) String() string

type BorClient

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

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 (*DebugFileResponse) GetOpen

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_Eof struct {
	Eof *emptypb.Empty `protobuf:"bytes,3,opt,name=eof,proto3,oneof"`
}

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 (*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) Enum

func (DebugPprofRequest_Type) EnumDescriptor deprecated

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

Deprecated: Use DebugPprofRequest_Type.Descriptor instead.

func (DebugPprofRequest_Type) Number

func (DebugPprofRequest_Type) String

func (x DebugPprofRequest_Type) String() string

func (DebugPprofRequest_Type) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetHash

func (x *Header) GetHash() string

func (*Header) GetNumber

func (x *Header) GetNumber() uint64

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

func (x *Header) ProtoReflect() protoreflect.Message

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetCaps

func (x *Peer) GetCaps() []string

func (*Peer) GetEnode

func (x *Peer) GetEnode() string

func (*Peer) GetEnr

func (x *Peer) GetEnr() string

func (*Peer) GetId

func (x *Peer) GetId() string

func (*Peer) GetName

func (x *Peer) GetName() string

func (*Peer) GetStatic

func (x *Peer) GetStatic() bool

func (*Peer) GetTrusted

func (x *Peer) GetTrusted() bool

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) ProtoReflect

func (x *Peer) ProtoReflect() protoreflect.Message

func (*Peer) Reset

func (x *Peer) Reset()

func (*Peer) String

func (x *Peer) String() string

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) ChainWatch

func (UnimplementedBorServer) DebugBlock

func (UnimplementedBorServer) DebugPprof

func (UnimplementedBorServer) PeersAdd

func (UnimplementedBorServer) PeersList

func (UnimplementedBorServer) PeersRemove

func (UnimplementedBorServer) PeersStatus

func (UnimplementedBorServer) Status

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.

Jump to

Keyboard shortcuts

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