Versions in this module Expand all Collapse all v0 v0.1.0 Apr 21, 2023 Changes in this version + var File_server_proto_system_proto protoreflect.FileDescriptor + var System_ServiceDesc = grpc.ServiceDesc + func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer) + type BlockByNumberRequest struct + Number uint64 + func (*BlockByNumberRequest) Descriptor() ([]byte, []int) + func (*BlockByNumberRequest) ProtoMessage() + func (m *BlockByNumberRequest) Validate() error + func (m *BlockByNumberRequest) ValidateAll() error + func (x *BlockByNumberRequest) GetNumber() uint64 + func (x *BlockByNumberRequest) ProtoReflect() protoreflect.Message + func (x *BlockByNumberRequest) Reset() + func (x *BlockByNumberRequest) String() string + type BlockByNumberRequestMultiError []error + func (m BlockByNumberRequestMultiError) AllErrors() []error + func (m BlockByNumberRequestMultiError) Error() string + type BlockByNumberRequestValidationError struct + func (e BlockByNumberRequestValidationError) Cause() error + func (e BlockByNumberRequestValidationError) Error() string + func (e BlockByNumberRequestValidationError) ErrorName() string + func (e BlockByNumberRequestValidationError) Field() string + func (e BlockByNumberRequestValidationError) Key() bool + func (e BlockByNumberRequestValidationError) Reason() string + type BlockResponse struct + Data []byte + func (*BlockResponse) Descriptor() ([]byte, []int) + func (*BlockResponse) ProtoMessage() + func (m *BlockResponse) Validate() error + func (m *BlockResponse) ValidateAll() error + func (x *BlockResponse) GetData() []byte + func (x *BlockResponse) ProtoReflect() protoreflect.Message + func (x *BlockResponse) Reset() + func (x *BlockResponse) String() string + type BlockResponseMultiError []error + func (m BlockResponseMultiError) AllErrors() []error + func (m BlockResponseMultiError) Error() string + type BlockResponseValidationError struct + func (e BlockResponseValidationError) Cause() error + func (e BlockResponseValidationError) Error() string + func (e BlockResponseValidationError) ErrorName() string + func (e BlockResponseValidationError) Field() string + func (e BlockResponseValidationError) Key() bool + func (e BlockResponseValidationError) Reason() string + type BlockchainEvent struct + Added []*BlockchainEvent_Header + Removed []*BlockchainEvent_Header + func (*BlockchainEvent) Descriptor() ([]byte, []int) + func (*BlockchainEvent) ProtoMessage() + func (m *BlockchainEvent) Validate() error + func (m *BlockchainEvent) ValidateAll() error + func (x *BlockchainEvent) GetAdded() []*BlockchainEvent_Header + func (x *BlockchainEvent) GetRemoved() []*BlockchainEvent_Header + func (x *BlockchainEvent) ProtoReflect() protoreflect.Message + func (x *BlockchainEvent) Reset() + func (x *BlockchainEvent) String() string + type BlockchainEventMultiError []error + func (m BlockchainEventMultiError) AllErrors() []error + func (m BlockchainEventMultiError) Error() string + type BlockchainEventValidationError struct + func (e BlockchainEventValidationError) Cause() error + func (e BlockchainEventValidationError) Error() string + func (e BlockchainEventValidationError) ErrorName() string + func (e BlockchainEventValidationError) Field() string + func (e BlockchainEventValidationError) Key() bool + func (e BlockchainEventValidationError) Reason() string + type BlockchainEvent_Header struct + Hash string + Number int64 + func (*BlockchainEvent_Header) Descriptor() ([]byte, []int) + func (*BlockchainEvent_Header) ProtoMessage() + func (m *BlockchainEvent_Header) Validate() error + func (m *BlockchainEvent_Header) ValidateAll() error + func (x *BlockchainEvent_Header) GetHash() string + func (x *BlockchainEvent_Header) GetNumber() int64 + func (x *BlockchainEvent_Header) ProtoReflect() protoreflect.Message + func (x *BlockchainEvent_Header) Reset() + func (x *BlockchainEvent_Header) String() string + type BlockchainEvent_HeaderMultiError []error + func (m BlockchainEvent_HeaderMultiError) AllErrors() []error + func (m BlockchainEvent_HeaderMultiError) Error() string + type BlockchainEvent_HeaderValidationError struct + func (e BlockchainEvent_HeaderValidationError) Cause() error + func (e BlockchainEvent_HeaderValidationError) Error() string + func (e BlockchainEvent_HeaderValidationError) ErrorName() string + func (e BlockchainEvent_HeaderValidationError) Field() string + func (e BlockchainEvent_HeaderValidationError) Key() bool + func (e BlockchainEvent_HeaderValidationError) Reason() string + type ExportEvent struct + Data []byte + From uint64 + Latest uint64 + To uint64 + func (*ExportEvent) Descriptor() ([]byte, []int) + func (*ExportEvent) ProtoMessage() + func (m *ExportEvent) Validate() error + func (m *ExportEvent) ValidateAll() error + func (x *ExportEvent) GetData() []byte + func (x *ExportEvent) GetFrom() uint64 + func (x *ExportEvent) GetLatest() uint64 + func (x *ExportEvent) GetTo() uint64 + func (x *ExportEvent) ProtoReflect() protoreflect.Message + func (x *ExportEvent) Reset() + func (x *ExportEvent) String() string + type ExportEventMultiError []error + func (m ExportEventMultiError) AllErrors() []error + func (m ExportEventMultiError) Error() string + type ExportEventValidationError struct + func (e ExportEventValidationError) Cause() error + func (e ExportEventValidationError) Error() string + func (e ExportEventValidationError) ErrorName() string + func (e ExportEventValidationError) Field() string + func (e ExportEventValidationError) Key() bool + func (e ExportEventValidationError) Reason() string + type ExportRequest struct + From uint64 + To uint64 + func (*ExportRequest) Descriptor() ([]byte, []int) + func (*ExportRequest) ProtoMessage() + func (m *ExportRequest) Validate() error + func (m *ExportRequest) ValidateAll() error + func (x *ExportRequest) GetFrom() uint64 + func (x *ExportRequest) GetTo() uint64 + func (x *ExportRequest) ProtoReflect() protoreflect.Message + func (x *ExportRequest) Reset() + func (x *ExportRequest) String() string + type ExportRequestMultiError []error + func (m ExportRequestMultiError) AllErrors() []error + func (m ExportRequestMultiError) Error() string + type ExportRequestValidationError struct + func (e ExportRequestValidationError) Cause() error + func (e ExportRequestValidationError) Error() string + func (e ExportRequestValidationError) ErrorName() string + func (e ExportRequestValidationError) Field() string + func (e ExportRequestValidationError) Key() bool + func (e ExportRequestValidationError) Reason() string + type Peer struct + Addrs []string + Id string + Protocols []string + func (*Peer) Descriptor() ([]byte, []int) + func (*Peer) ProtoMessage() + func (m *Peer) Validate() error + func (m *Peer) ValidateAll() error + func (x *Peer) GetAddrs() []string + func (x *Peer) GetId() string + func (x *Peer) GetProtocols() []string + func (x *Peer) ProtoReflect() protoreflect.Message + func (x *Peer) Reset() + func (x *Peer) String() string + type PeerMultiError []error + func (m PeerMultiError) AllErrors() []error + func (m PeerMultiError) Error() string + type PeerValidationError struct + func (e PeerValidationError) Cause() error + func (e PeerValidationError) Error() string + func (e PeerValidationError) ErrorName() string + func (e PeerValidationError) Field() string + func (e PeerValidationError) Key() bool + func (e PeerValidationError) Reason() string + type PeersAddRequest struct + Id string + func (*PeersAddRequest) Descriptor() ([]byte, []int) + func (*PeersAddRequest) ProtoMessage() + func (m *PeersAddRequest) Validate() error + func (m *PeersAddRequest) ValidateAll() error + func (x *PeersAddRequest) GetId() string + func (x *PeersAddRequest) ProtoReflect() protoreflect.Message + func (x *PeersAddRequest) Reset() + func (x *PeersAddRequest) String() string + type PeersAddRequestMultiError []error + func (m PeersAddRequestMultiError) AllErrors() []error + func (m PeersAddRequestMultiError) Error() string + type PeersAddRequestValidationError struct + func (e PeersAddRequestValidationError) Cause() error + func (e PeersAddRequestValidationError) Error() string + func (e PeersAddRequestValidationError) ErrorName() string + func (e PeersAddRequestValidationError) Field() string + func (e PeersAddRequestValidationError) Key() bool + func (e PeersAddRequestValidationError) Reason() string + type PeersAddResponse struct + Message string + func (*PeersAddResponse) Descriptor() ([]byte, []int) + func (*PeersAddResponse) ProtoMessage() + func (m *PeersAddResponse) Validate() error + func (m *PeersAddResponse) ValidateAll() error + func (x *PeersAddResponse) GetMessage() string + func (x *PeersAddResponse) ProtoReflect() protoreflect.Message + func (x *PeersAddResponse) Reset() + func (x *PeersAddResponse) String() string + type PeersAddResponseMultiError []error + func (m PeersAddResponseMultiError) AllErrors() []error + func (m PeersAddResponseMultiError) Error() string + type PeersAddResponseValidationError struct + func (e PeersAddResponseValidationError) Cause() error + func (e PeersAddResponseValidationError) Error() string + func (e PeersAddResponseValidationError) ErrorName() string + func (e PeersAddResponseValidationError) Field() string + func (e PeersAddResponseValidationError) Key() bool + func (e PeersAddResponseValidationError) Reason() string + type PeersListResponse struct + Peers []*Peer + func (*PeersListResponse) Descriptor() ([]byte, []int) + func (*PeersListResponse) ProtoMessage() + func (m *PeersListResponse) Validate() error + func (m *PeersListResponse) ValidateAll() error + func (x *PeersListResponse) GetPeers() []*Peer + func (x *PeersListResponse) ProtoReflect() protoreflect.Message + func (x *PeersListResponse) Reset() + func (x *PeersListResponse) String() string + type PeersListResponseMultiError []error + func (m PeersListResponseMultiError) AllErrors() []error + func (m PeersListResponseMultiError) Error() string + type PeersListResponseValidationError struct + func (e PeersListResponseValidationError) Cause() error + func (e PeersListResponseValidationError) Error() string + func (e PeersListResponseValidationError) ErrorName() string + func (e PeersListResponseValidationError) Field() string + func (e PeersListResponseValidationError) Key() bool + func (e PeersListResponseValidationError) Reason() string + type PeersStatusRequest struct + Id string + func (*PeersStatusRequest) Descriptor() ([]byte, []int) + func (*PeersStatusRequest) ProtoMessage() + func (m *PeersStatusRequest) Validate() error + func (m *PeersStatusRequest) ValidateAll() error + func (x *PeersStatusRequest) GetId() string + func (x *PeersStatusRequest) ProtoReflect() protoreflect.Message + func (x *PeersStatusRequest) Reset() + func (x *PeersStatusRequest) String() string + type PeersStatusRequestMultiError []error + func (m PeersStatusRequestMultiError) AllErrors() []error + func (m PeersStatusRequestMultiError) Error() string + type PeersStatusRequestValidationError struct + func (e PeersStatusRequestValidationError) Cause() error + func (e PeersStatusRequestValidationError) Error() string + func (e PeersStatusRequestValidationError) ErrorName() string + func (e PeersStatusRequestValidationError) Field() string + func (e PeersStatusRequestValidationError) Key() bool + func (e PeersStatusRequestValidationError) Reason() string + type ServerStatus struct + Current *ServerStatus_Block + Genesis string + Network int64 + P2PAddr string + func (*ServerStatus) Descriptor() ([]byte, []int) + func (*ServerStatus) ProtoMessage() + func (m *ServerStatus) Validate() error + func (m *ServerStatus) ValidateAll() error + func (x *ServerStatus) GetCurrent() *ServerStatus_Block + func (x *ServerStatus) GetGenesis() string + func (x *ServerStatus) GetNetwork() int64 + func (x *ServerStatus) GetP2PAddr() string + func (x *ServerStatus) ProtoReflect() protoreflect.Message + func (x *ServerStatus) Reset() + func (x *ServerStatus) String() string + type ServerStatusMultiError []error + func (m ServerStatusMultiError) AllErrors() []error + func (m ServerStatusMultiError) Error() string + type ServerStatusValidationError struct + func (e ServerStatusValidationError) Cause() error + func (e ServerStatusValidationError) Error() string + func (e ServerStatusValidationError) ErrorName() string + func (e ServerStatusValidationError) Field() string + func (e ServerStatusValidationError) Key() bool + func (e ServerStatusValidationError) Reason() string + type ServerStatus_Block struct + Hash string + Number int64 + func (*ServerStatus_Block) Descriptor() ([]byte, []int) + func (*ServerStatus_Block) ProtoMessage() + func (m *ServerStatus_Block) Validate() error + func (m *ServerStatus_Block) ValidateAll() error + func (x *ServerStatus_Block) GetHash() string + func (x *ServerStatus_Block) GetNumber() int64 + func (x *ServerStatus_Block) ProtoReflect() protoreflect.Message + func (x *ServerStatus_Block) Reset() + func (x *ServerStatus_Block) String() string + type ServerStatus_BlockMultiError []error + func (m ServerStatus_BlockMultiError) AllErrors() []error + func (m ServerStatus_BlockMultiError) Error() string + type ServerStatus_BlockValidationError struct + func (e ServerStatus_BlockValidationError) Cause() error + func (e ServerStatus_BlockValidationError) Error() string + func (e ServerStatus_BlockValidationError) ErrorName() string + func (e ServerStatus_BlockValidationError) Field() string + func (e ServerStatus_BlockValidationError) Key() bool + func (e ServerStatus_BlockValidationError) Reason() string + type SystemClient interface + BlockByNumber func(ctx context.Context, in *BlockByNumberRequest, opts ...grpc.CallOption) (*BlockResponse, error) + Export func(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (System_ExportClient, error) + GetStatus func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ServerStatus, error) + PeersAdd func(ctx context.Context, in *PeersAddRequest, opts ...grpc.CallOption) (*PeersAddResponse, error) + PeersList func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PeersListResponse, error) + PeersStatus func(ctx context.Context, in *PeersStatusRequest, opts ...grpc.CallOption) (*Peer, error) + Subscribe func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (System_SubscribeClient, error) + func NewSystemClient(cc grpc.ClientConnInterface) SystemClient + type SystemServer interface + BlockByNumber func(context.Context, *BlockByNumberRequest) (*BlockResponse, error) + Export func(*ExportRequest, System_ExportServer) error + GetStatus func(context.Context, *emptypb.Empty) (*ServerStatus, error) + PeersAdd func(context.Context, *PeersAddRequest) (*PeersAddResponse, error) + PeersList func(context.Context, *emptypb.Empty) (*PeersListResponse, error) + PeersStatus func(context.Context, *PeersStatusRequest) (*Peer, error) + Subscribe func(*emptypb.Empty, System_SubscribeServer) error + type System_ExportClient interface + Recv func() (*ExportEvent, error) + type System_ExportServer interface + Send func(*ExportEvent) error + type System_SubscribeClient interface + Recv func() (*BlockchainEvent, error) + type System_SubscribeServer interface + Send func(*BlockchainEvent) error + type UnimplementedSystemServer struct + func (UnimplementedSystemServer) BlockByNumber(context.Context, *BlockByNumberRequest) (*BlockResponse, error) + func (UnimplementedSystemServer) Export(*ExportRequest, System_ExportServer) error + func (UnimplementedSystemServer) GetStatus(context.Context, *emptypb.Empty) (*ServerStatus, error) + func (UnimplementedSystemServer) PeersAdd(context.Context, *PeersAddRequest) (*PeersAddResponse, error) + func (UnimplementedSystemServer) PeersList(context.Context, *emptypb.Empty) (*PeersListResponse, error) + func (UnimplementedSystemServer) PeersStatus(context.Context, *PeersStatusRequest) (*Peer, error) + func (UnimplementedSystemServer) Subscribe(*emptypb.Empty, System_SubscribeServer) error + type UnsafeSystemServer interface