proto

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 22 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_server_proto_system_proto protoreflect.FileDescriptor
View Source
var System_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.System",
	HandlerType: (*SystemServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetStatus",
			Handler:    _System_GetStatus_Handler,
		},
		{
			MethodName: "PeersAdd",
			Handler:    _System_PeersAdd_Handler,
		},
		{
			MethodName: "PeersList",
			Handler:    _System_PeersList_Handler,
		},
		{
			MethodName: "PeersStatus",
			Handler:    _System_PeersStatus_Handler,
		},
		{
			MethodName: "BlockByNumber",
			Handler:    _System_BlockByNumber_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Subscribe",
			Handler:       _System_Subscribe_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Export",
			Handler:       _System_Export_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "server/proto/system.proto",
}

System_ServiceDesc is the grpc.ServiceDesc for System service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSystemServer

func RegisterSystemServer(s grpc.ServiceRegistrar, srv SystemServer)

Types

type BlockByNumberRequest

type BlockByNumberRequest struct {
	Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockByNumberRequest) Descriptor deprecated

func (*BlockByNumberRequest) Descriptor() ([]byte, []int)

Deprecated: Use BlockByNumberRequest.ProtoReflect.Descriptor instead.

func (*BlockByNumberRequest) GetNumber

func (x *BlockByNumberRequest) GetNumber() uint64

func (*BlockByNumberRequest) ProtoMessage

func (*BlockByNumberRequest) ProtoMessage()

func (*BlockByNumberRequest) ProtoReflect

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

func (*BlockByNumberRequest) Reset

func (x *BlockByNumberRequest) Reset()

func (*BlockByNumberRequest) String

func (x *BlockByNumberRequest) String() string

func (*BlockByNumberRequest) Validate added in v0.8.0

func (m *BlockByNumberRequest) Validate() error

Validate checks the field values on BlockByNumberRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BlockByNumberRequest) ValidateAll added in v0.8.0

func (m *BlockByNumberRequest) ValidateAll() error

ValidateAll checks the field values on BlockByNumberRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BlockByNumberRequestMultiError, or nil if none found.

type BlockByNumberRequestMultiError added in v0.8.0

type BlockByNumberRequestMultiError []error

BlockByNumberRequestMultiError is an error wrapping multiple validation errors returned by BlockByNumberRequest.ValidateAll() if the designated constraints aren't met.

func (BlockByNumberRequestMultiError) AllErrors added in v0.8.0

func (m BlockByNumberRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockByNumberRequestMultiError) Error added in v0.8.0

Error returns a concatenation of all the error messages it wraps.

type BlockByNumberRequestValidationError added in v0.8.0

type BlockByNumberRequestValidationError struct {
	// contains filtered or unexported fields
}

BlockByNumberRequestValidationError is the validation error returned by BlockByNumberRequest.Validate if the designated constraints aren't met.

func (BlockByNumberRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (BlockByNumberRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (BlockByNumberRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (BlockByNumberRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (BlockByNumberRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (BlockByNumberRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type BlockResponse

type BlockResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockResponse) Descriptor deprecated

func (*BlockResponse) Descriptor() ([]byte, []int)

Deprecated: Use BlockResponse.ProtoReflect.Descriptor instead.

func (*BlockResponse) GetData

func (x *BlockResponse) GetData() []byte

func (*BlockResponse) ProtoMessage

func (*BlockResponse) ProtoMessage()

func (*BlockResponse) ProtoReflect

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

func (*BlockResponse) Reset

func (x *BlockResponse) Reset()

func (*BlockResponse) String

func (x *BlockResponse) String() string

func (*BlockResponse) Validate added in v0.8.0

func (m *BlockResponse) Validate() error

Validate checks the field values on BlockResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BlockResponse) ValidateAll added in v0.8.0

func (m *BlockResponse) ValidateAll() error

ValidateAll checks the field values on BlockResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BlockResponseMultiError, or nil if none found.

type BlockResponseMultiError added in v0.8.0

type BlockResponseMultiError []error

BlockResponseMultiError is an error wrapping multiple validation errors returned by BlockResponse.ValidateAll() if the designated constraints aren't met.

func (BlockResponseMultiError) AllErrors added in v0.8.0

func (m BlockResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockResponseMultiError) Error added in v0.8.0

func (m BlockResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BlockResponseValidationError added in v0.8.0

type BlockResponseValidationError struct {
	// contains filtered or unexported fields
}

BlockResponseValidationError is the validation error returned by BlockResponse.Validate if the designated constraints aren't met.

func (BlockResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (BlockResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (BlockResponseValidationError) ErrorName added in v0.8.0

func (e BlockResponseValidationError) ErrorName() string

ErrorName returns error name.

func (BlockResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (BlockResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (BlockResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type BlockchainEvent

type BlockchainEvent struct {
	Added   []*BlockchainEvent_Header `protobuf:"bytes,1,rep,name=added,proto3" json:"added,omitempty"`
	Removed []*BlockchainEvent_Header `protobuf:"bytes,2,rep,name=removed,proto3" json:"removed,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockchainEvent) Descriptor deprecated

func (*BlockchainEvent) Descriptor() ([]byte, []int)

Deprecated: Use BlockchainEvent.ProtoReflect.Descriptor instead.

func (*BlockchainEvent) GetAdded

func (x *BlockchainEvent) GetAdded() []*BlockchainEvent_Header

func (*BlockchainEvent) GetRemoved

func (x *BlockchainEvent) GetRemoved() []*BlockchainEvent_Header

func (*BlockchainEvent) ProtoMessage

func (*BlockchainEvent) ProtoMessage()

func (*BlockchainEvent) ProtoReflect

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

func (*BlockchainEvent) Reset

func (x *BlockchainEvent) Reset()

func (*BlockchainEvent) String

func (x *BlockchainEvent) String() string

func (*BlockchainEvent) Validate added in v0.8.0

func (m *BlockchainEvent) Validate() error

Validate checks the field values on BlockchainEvent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BlockchainEvent) ValidateAll added in v0.8.0

func (m *BlockchainEvent) ValidateAll() error

ValidateAll checks the field values on BlockchainEvent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BlockchainEventMultiError, or nil if none found.

type BlockchainEventMultiError added in v0.8.0

type BlockchainEventMultiError []error

BlockchainEventMultiError is an error wrapping multiple validation errors returned by BlockchainEvent.ValidateAll() if the designated constraints aren't met.

func (BlockchainEventMultiError) AllErrors added in v0.8.0

func (m BlockchainEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockchainEventMultiError) Error added in v0.8.0

Error returns a concatenation of all the error messages it wraps.

type BlockchainEventValidationError added in v0.8.0

type BlockchainEventValidationError struct {
	// contains filtered or unexported fields
}

BlockchainEventValidationError is the validation error returned by BlockchainEvent.Validate if the designated constraints aren't met.

func (BlockchainEventValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (BlockchainEventValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (BlockchainEventValidationError) ErrorName added in v0.8.0

func (e BlockchainEventValidationError) ErrorName() string

ErrorName returns error name.

func (BlockchainEventValidationError) Field added in v0.8.0

Field function returns field value.

func (BlockchainEventValidationError) Key added in v0.8.0

Key function returns key value.

func (BlockchainEventValidationError) Reason added in v0.8.0

Reason function returns reason value.

type BlockchainEvent_Header

type BlockchainEvent_Header struct {
	Number int64  `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	Hash   string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockchainEvent_Header) Descriptor deprecated

func (*BlockchainEvent_Header) Descriptor() ([]byte, []int)

Deprecated: Use BlockchainEvent_Header.ProtoReflect.Descriptor instead.

func (*BlockchainEvent_Header) GetHash

func (x *BlockchainEvent_Header) GetHash() string

func (*BlockchainEvent_Header) GetNumber

func (x *BlockchainEvent_Header) GetNumber() int64

func (*BlockchainEvent_Header) ProtoMessage

func (*BlockchainEvent_Header) ProtoMessage()

func (*BlockchainEvent_Header) ProtoReflect

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

func (*BlockchainEvent_Header) Reset

func (x *BlockchainEvent_Header) Reset()

func (*BlockchainEvent_Header) String

func (x *BlockchainEvent_Header) String() string

func (*BlockchainEvent_Header) Validate added in v0.8.0

func (m *BlockchainEvent_Header) Validate() error

Validate checks the field values on BlockchainEvent_Header with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BlockchainEvent_Header) ValidateAll added in v0.8.0

func (m *BlockchainEvent_Header) ValidateAll() error

ValidateAll checks the field values on BlockchainEvent_Header with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BlockchainEvent_HeaderMultiError, or nil if none found.

type BlockchainEvent_HeaderMultiError added in v0.8.0

type BlockchainEvent_HeaderMultiError []error

BlockchainEvent_HeaderMultiError is an error wrapping multiple validation errors returned by BlockchainEvent_Header.ValidateAll() if the designated constraints aren't met.

func (BlockchainEvent_HeaderMultiError) AllErrors added in v0.8.0

func (m BlockchainEvent_HeaderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockchainEvent_HeaderMultiError) Error added in v0.8.0

Error returns a concatenation of all the error messages it wraps.

type BlockchainEvent_HeaderValidationError added in v0.8.0

type BlockchainEvent_HeaderValidationError struct {
	// contains filtered or unexported fields
}

BlockchainEvent_HeaderValidationError is the validation error returned by BlockchainEvent_Header.Validate if the designated constraints aren't met.

func (BlockchainEvent_HeaderValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (BlockchainEvent_HeaderValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (BlockchainEvent_HeaderValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (BlockchainEvent_HeaderValidationError) Field added in v0.8.0

Field function returns field value.

func (BlockchainEvent_HeaderValidationError) Key added in v0.8.0

Key function returns key value.

func (BlockchainEvent_HeaderValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ExportEvent

type ExportEvent struct {
	From uint64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"`
	// null when zero
	To     uint64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"`
	Latest uint64 `protobuf:"varint,3,opt,name=latest,proto3" json:"latest,omitempty"`
	Data   []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ExportEvent) Descriptor deprecated

func (*ExportEvent) Descriptor() ([]byte, []int)

Deprecated: Use ExportEvent.ProtoReflect.Descriptor instead.

func (*ExportEvent) GetData

func (x *ExportEvent) GetData() []byte

func (*ExportEvent) GetFrom

func (x *ExportEvent) GetFrom() uint64

func (*ExportEvent) GetLatest

func (x *ExportEvent) GetLatest() uint64

func (*ExportEvent) GetTo

func (x *ExportEvent) GetTo() uint64

func (*ExportEvent) ProtoMessage

func (*ExportEvent) ProtoMessage()

func (*ExportEvent) ProtoReflect

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

func (*ExportEvent) Reset

func (x *ExportEvent) Reset()

func (*ExportEvent) String

func (x *ExportEvent) String() string

func (*ExportEvent) Validate added in v0.8.0

func (m *ExportEvent) Validate() error

Validate checks the field values on ExportEvent with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ExportEvent) ValidateAll added in v0.8.0

func (m *ExportEvent) ValidateAll() error

ValidateAll checks the field values on ExportEvent with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExportEventMultiError, or nil if none found.

type ExportEventMultiError added in v0.8.0

type ExportEventMultiError []error

ExportEventMultiError is an error wrapping multiple validation errors returned by ExportEvent.ValidateAll() if the designated constraints aren't met.

func (ExportEventMultiError) AllErrors added in v0.8.0

func (m ExportEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExportEventMultiError) Error added in v0.8.0

func (m ExportEventMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ExportEventValidationError added in v0.8.0

type ExportEventValidationError struct {
	// contains filtered or unexported fields
}

ExportEventValidationError is the validation error returned by ExportEvent.Validate if the designated constraints aren't met.

func (ExportEventValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ExportEventValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ExportEventValidationError) ErrorName added in v0.8.0

func (e ExportEventValidationError) ErrorName() string

ErrorName returns error name.

func (ExportEventValidationError) Field added in v0.8.0

Field function returns field value.

func (ExportEventValidationError) Key added in v0.8.0

Key function returns key value.

func (ExportEventValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ExportRequest

type ExportRequest struct {
	From uint64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"`
	To   uint64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*ExportRequest) Descriptor deprecated

func (*ExportRequest) Descriptor() ([]byte, []int)

Deprecated: Use ExportRequest.ProtoReflect.Descriptor instead.

func (*ExportRequest) GetFrom

func (x *ExportRequest) GetFrom() uint64

func (*ExportRequest) GetTo

func (x *ExportRequest) GetTo() uint64

func (*ExportRequest) ProtoMessage

func (*ExportRequest) ProtoMessage()

func (*ExportRequest) ProtoReflect

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

func (*ExportRequest) Reset

func (x *ExportRequest) Reset()

func (*ExportRequest) String

func (x *ExportRequest) String() string

func (*ExportRequest) Validate added in v0.8.0

func (m *ExportRequest) Validate() error

Validate checks the field values on ExportRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ExportRequest) ValidateAll added in v0.8.0

func (m *ExportRequest) ValidateAll() error

ValidateAll checks the field values on ExportRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExportRequestMultiError, or nil if none found.

type ExportRequestMultiError added in v0.8.0

type ExportRequestMultiError []error

ExportRequestMultiError is an error wrapping multiple validation errors returned by ExportRequest.ValidateAll() if the designated constraints aren't met.

func (ExportRequestMultiError) AllErrors added in v0.8.0

func (m ExportRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExportRequestMultiError) Error added in v0.8.0

func (m ExportRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ExportRequestValidationError added in v0.8.0

type ExportRequestValidationError struct {
	// contains filtered or unexported fields
}

ExportRequestValidationError is the validation error returned by ExportRequest.Validate if the designated constraints aren't met.

func (ExportRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ExportRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ExportRequestValidationError) ErrorName added in v0.8.0

func (e ExportRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ExportRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (ExportRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (ExportRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type Peer

type Peer struct {
	Id        string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Protocols []string `protobuf:"bytes,2,rep,name=protocols,proto3" json:"protocols,omitempty"`
	Addrs     []string `protobuf:"bytes,3,rep,name=addrs,proto3" json:"addrs,omitempty"`
	// contains filtered or unexported fields
}

func (*Peer) Descriptor deprecated

func (*Peer) Descriptor() ([]byte, []int)

Deprecated: Use Peer.ProtoReflect.Descriptor instead.

func (*Peer) GetAddrs

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

func (*Peer) GetId

func (x *Peer) GetId() string

func (*Peer) GetProtocols

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

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

func (*Peer) Validate added in v0.8.0

func (m *Peer) Validate() error

Validate checks the field values on Peer with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Peer) ValidateAll added in v0.8.0

func (m *Peer) ValidateAll() error

ValidateAll checks the field values on Peer with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeerMultiError, or nil if none found.

type PeerMultiError added in v0.8.0

type PeerMultiError []error

PeerMultiError is an error wrapping multiple validation errors returned by Peer.ValidateAll() if the designated constraints aren't met.

func (PeerMultiError) AllErrors added in v0.8.0

func (m PeerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeerMultiError) Error added in v0.8.0

func (m PeerMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PeerValidationError added in v0.8.0

type PeerValidationError struct {
	// contains filtered or unexported fields
}

PeerValidationError is the validation error returned by Peer.Validate if the designated constraints aren't met.

func (PeerValidationError) Cause added in v0.8.0

func (e PeerValidationError) Cause() error

Cause function returns cause value.

func (PeerValidationError) Error added in v0.8.0

func (e PeerValidationError) Error() string

Error satisfies the builtin error interface

func (PeerValidationError) ErrorName added in v0.8.0

func (e PeerValidationError) ErrorName() string

ErrorName returns error name.

func (PeerValidationError) Field added in v0.8.0

func (e PeerValidationError) Field() string

Field function returns field value.

func (PeerValidationError) Key added in v0.8.0

func (e PeerValidationError) Key() bool

Key function returns key value.

func (PeerValidationError) Reason added in v0.8.0

func (e PeerValidationError) Reason() string

Reason function returns reason value.

type PeersAddRequest

type PeersAddRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*PeersAddRequest) Descriptor deprecated

func (*PeersAddRequest) Descriptor() ([]byte, []int)

Deprecated: Use PeersAddRequest.ProtoReflect.Descriptor instead.

func (*PeersAddRequest) GetId

func (x *PeersAddRequest) GetId() string

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

func (*PeersAddRequest) Validate added in v0.8.0

func (m *PeersAddRequest) Validate() error

Validate checks the field values on PeersAddRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PeersAddRequest) ValidateAll added in v0.8.0

func (m *PeersAddRequest) ValidateAll() error

ValidateAll checks the field values on PeersAddRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeersAddRequestMultiError, or nil if none found.

type PeersAddRequestMultiError added in v0.8.0

type PeersAddRequestMultiError []error

PeersAddRequestMultiError is an error wrapping multiple validation errors returned by PeersAddRequest.ValidateAll() if the designated constraints aren't met.

func (PeersAddRequestMultiError) AllErrors added in v0.8.0

func (m PeersAddRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeersAddRequestMultiError) Error added in v0.8.0

Error returns a concatenation of all the error messages it wraps.

type PeersAddRequestValidationError added in v0.8.0

type PeersAddRequestValidationError struct {
	// contains filtered or unexported fields
}

PeersAddRequestValidationError is the validation error returned by PeersAddRequest.Validate if the designated constraints aren't met.

func (PeersAddRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (PeersAddRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (PeersAddRequestValidationError) ErrorName added in v0.8.0

func (e PeersAddRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PeersAddRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (PeersAddRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (PeersAddRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type PeersAddResponse added in v0.3.3

type PeersAddResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*PeersAddResponse) Descriptor deprecated added in v0.3.3

func (*PeersAddResponse) Descriptor() ([]byte, []int)

Deprecated: Use PeersAddResponse.ProtoReflect.Descriptor instead.

func (*PeersAddResponse) GetMessage added in v0.3.3

func (x *PeersAddResponse) GetMessage() string

func (*PeersAddResponse) ProtoMessage added in v0.3.3

func (*PeersAddResponse) ProtoMessage()

func (*PeersAddResponse) ProtoReflect added in v0.3.3

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

func (*PeersAddResponse) Reset added in v0.3.3

func (x *PeersAddResponse) Reset()

func (*PeersAddResponse) String added in v0.3.3

func (x *PeersAddResponse) String() string

func (*PeersAddResponse) Validate added in v0.8.0

func (m *PeersAddResponse) Validate() error

Validate checks the field values on PeersAddResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PeersAddResponse) ValidateAll added in v0.8.0

func (m *PeersAddResponse) ValidateAll() error

ValidateAll checks the field values on PeersAddResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeersAddResponseMultiError, or nil if none found.

type PeersAddResponseMultiError added in v0.8.0

type PeersAddResponseMultiError []error

PeersAddResponseMultiError is an error wrapping multiple validation errors returned by PeersAddResponse.ValidateAll() if the designated constraints aren't met.

func (PeersAddResponseMultiError) AllErrors added in v0.8.0

func (m PeersAddResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeersAddResponseMultiError) Error added in v0.8.0

Error returns a concatenation of all the error messages it wraps.

type PeersAddResponseValidationError added in v0.8.0

type PeersAddResponseValidationError struct {
	// contains filtered or unexported fields
}

PeersAddResponseValidationError is the validation error returned by PeersAddResponse.Validate if the designated constraints aren't met.

func (PeersAddResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (PeersAddResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (PeersAddResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (PeersAddResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (PeersAddResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (PeersAddResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

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

func (*PeersListResponse) Validate added in v0.8.0

func (m *PeersListResponse) Validate() error

Validate checks the field values on PeersListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PeersListResponse) ValidateAll added in v0.8.0

func (m *PeersListResponse) ValidateAll() error

ValidateAll checks the field values on PeersListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeersListResponseMultiError, or nil if none found.

type PeersListResponseMultiError added in v0.8.0

type PeersListResponseMultiError []error

PeersListResponseMultiError is an error wrapping multiple validation errors returned by PeersListResponse.ValidateAll() if the designated constraints aren't met.

func (PeersListResponseMultiError) AllErrors added in v0.8.0

func (m PeersListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeersListResponseMultiError) Error added in v0.8.0

Error returns a concatenation of all the error messages it wraps.

type PeersListResponseValidationError added in v0.8.0

type PeersListResponseValidationError struct {
	// contains filtered or unexported fields
}

PeersListResponseValidationError is the validation error returned by PeersListResponse.Validate if the designated constraints aren't met.

func (PeersListResponseValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (PeersListResponseValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (PeersListResponseValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (PeersListResponseValidationError) Field added in v0.8.0

Field function returns field value.

func (PeersListResponseValidationError) Key added in v0.8.0

Key function returns key value.

func (PeersListResponseValidationError) Reason added in v0.8.0

Reason function returns reason value.

type PeersStatusRequest

type PeersStatusRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*PeersStatusRequest) Descriptor deprecated

func (*PeersStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use PeersStatusRequest.ProtoReflect.Descriptor instead.

func (*PeersStatusRequest) GetId

func (x *PeersStatusRequest) GetId() 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

func (*PeersStatusRequest) Validate added in v0.8.0

func (m *PeersStatusRequest) Validate() error

Validate checks the field values on PeersStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PeersStatusRequest) ValidateAll added in v0.8.0

func (m *PeersStatusRequest) ValidateAll() error

ValidateAll checks the field values on PeersStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PeersStatusRequestMultiError, or nil if none found.

type PeersStatusRequestMultiError added in v0.8.0

type PeersStatusRequestMultiError []error

PeersStatusRequestMultiError is an error wrapping multiple validation errors returned by PeersStatusRequest.ValidateAll() if the designated constraints aren't met.

func (PeersStatusRequestMultiError) AllErrors added in v0.8.0

func (m PeersStatusRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeersStatusRequestMultiError) Error added in v0.8.0

Error returns a concatenation of all the error messages it wraps.

type PeersStatusRequestValidationError added in v0.8.0

type PeersStatusRequestValidationError struct {
	// contains filtered or unexported fields
}

PeersStatusRequestValidationError is the validation error returned by PeersStatusRequest.Validate if the designated constraints aren't met.

func (PeersStatusRequestValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (PeersStatusRequestValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (PeersStatusRequestValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (PeersStatusRequestValidationError) Field added in v0.8.0

Field function returns field value.

func (PeersStatusRequestValidationError) Key added in v0.8.0

Key function returns key value.

func (PeersStatusRequestValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ServerStatus

type ServerStatus struct {
	Network int64               `protobuf:"varint,1,opt,name=network,proto3" json:"network,omitempty"`
	Genesis string              `protobuf:"bytes,2,opt,name=genesis,proto3" json:"genesis,omitempty"`
	Current *ServerStatus_Block `protobuf:"bytes,3,opt,name=current,proto3" json:"current,omitempty"`
	P2PAddr string              `protobuf:"bytes,4,opt,name=p2pAddr,proto3" json:"p2pAddr,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerStatus) Descriptor deprecated

func (*ServerStatus) Descriptor() ([]byte, []int)

Deprecated: Use ServerStatus.ProtoReflect.Descriptor instead.

func (*ServerStatus) GetCurrent

func (x *ServerStatus) GetCurrent() *ServerStatus_Block

func (*ServerStatus) GetGenesis

func (x *ServerStatus) GetGenesis() string

func (*ServerStatus) GetNetwork

func (x *ServerStatus) GetNetwork() int64

func (*ServerStatus) GetP2PAddr

func (x *ServerStatus) GetP2PAddr() string

func (*ServerStatus) ProtoMessage

func (*ServerStatus) ProtoMessage()

func (*ServerStatus) ProtoReflect

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

func (*ServerStatus) Reset

func (x *ServerStatus) Reset()

func (*ServerStatus) String

func (x *ServerStatus) String() string

func (*ServerStatus) Validate added in v0.8.0

func (m *ServerStatus) Validate() error

Validate checks the field values on ServerStatus with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServerStatus) ValidateAll added in v0.8.0

func (m *ServerStatus) ValidateAll() error

ValidateAll checks the field values on ServerStatus with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerStatusMultiError, or nil if none found.

type ServerStatusMultiError added in v0.8.0

type ServerStatusMultiError []error

ServerStatusMultiError is an error wrapping multiple validation errors returned by ServerStatus.ValidateAll() if the designated constraints aren't met.

func (ServerStatusMultiError) AllErrors added in v0.8.0

func (m ServerStatusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerStatusMultiError) Error added in v0.8.0

func (m ServerStatusMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ServerStatusValidationError added in v0.8.0

type ServerStatusValidationError struct {
	// contains filtered or unexported fields
}

ServerStatusValidationError is the validation error returned by ServerStatus.Validate if the designated constraints aren't met.

func (ServerStatusValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ServerStatusValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ServerStatusValidationError) ErrorName added in v0.8.0

func (e ServerStatusValidationError) ErrorName() string

ErrorName returns error name.

func (ServerStatusValidationError) Field added in v0.8.0

Field function returns field value.

func (ServerStatusValidationError) Key added in v0.8.0

Key function returns key value.

func (ServerStatusValidationError) Reason added in v0.8.0

Reason function returns reason value.

type ServerStatus_Block

type ServerStatus_Block struct {
	Number int64  `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	Hash   string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*ServerStatus_Block) Descriptor deprecated

func (*ServerStatus_Block) Descriptor() ([]byte, []int)

Deprecated: Use ServerStatus_Block.ProtoReflect.Descriptor instead.

func (*ServerStatus_Block) GetHash

func (x *ServerStatus_Block) GetHash() string

func (*ServerStatus_Block) GetNumber

func (x *ServerStatus_Block) GetNumber() int64

func (*ServerStatus_Block) ProtoMessage

func (*ServerStatus_Block) ProtoMessage()

func (*ServerStatus_Block) ProtoReflect

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

func (*ServerStatus_Block) Reset

func (x *ServerStatus_Block) Reset()

func (*ServerStatus_Block) String

func (x *ServerStatus_Block) String() string

func (*ServerStatus_Block) Validate added in v0.8.0

func (m *ServerStatus_Block) Validate() error

Validate checks the field values on ServerStatus_Block with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ServerStatus_Block) ValidateAll added in v0.8.0

func (m *ServerStatus_Block) ValidateAll() error

ValidateAll checks the field values on ServerStatus_Block with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServerStatus_BlockMultiError, or nil if none found.

type ServerStatus_BlockMultiError added in v0.8.0

type ServerStatus_BlockMultiError []error

ServerStatus_BlockMultiError is an error wrapping multiple validation errors returned by ServerStatus_Block.ValidateAll() if the designated constraints aren't met.

func (ServerStatus_BlockMultiError) AllErrors added in v0.8.0

func (m ServerStatus_BlockMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerStatus_BlockMultiError) Error added in v0.8.0

Error returns a concatenation of all the error messages it wraps.

type ServerStatus_BlockValidationError added in v0.8.0

type ServerStatus_BlockValidationError struct {
	// contains filtered or unexported fields
}

ServerStatus_BlockValidationError is the validation error returned by ServerStatus_Block.Validate if the designated constraints aren't met.

func (ServerStatus_BlockValidationError) Cause added in v0.8.0

Cause function returns cause value.

func (ServerStatus_BlockValidationError) Error added in v0.8.0

Error satisfies the builtin error interface

func (ServerStatus_BlockValidationError) ErrorName added in v0.8.0

ErrorName returns error name.

func (ServerStatus_BlockValidationError) Field added in v0.8.0

Field function returns field value.

func (ServerStatus_BlockValidationError) Key added in v0.8.0

Key function returns key value.

func (ServerStatus_BlockValidationError) Reason added in v0.8.0

Reason function returns reason value.

type SystemClient

type SystemClient interface {
	// GetInfo returns info about the client
	GetStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ServerStatus, error)
	// PeersAdd adds a new peer
	PeersAdd(ctx context.Context, in *PeersAddRequest, opts ...grpc.CallOption) (*PeersAddResponse, error)
	// PeersList returns the list of peers
	PeersList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PeersListResponse, error)
	// PeersInfo returns the info of a peer
	PeersStatus(ctx context.Context, in *PeersStatusRequest, opts ...grpc.CallOption) (*Peer, error)
	// Subscribe subscribes to blockchain events
	Subscribe(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (System_SubscribeClient, error)
	// Export returns blockchain data
	BlockByNumber(ctx context.Context, in *BlockByNumberRequest, opts ...grpc.CallOption) (*BlockResponse, error)
	// Export returns blockchain data
	Export(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (System_ExportClient, error)
}

SystemClient is the client API for System 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 NewSystemClient

func NewSystemClient(cc grpc.ClientConnInterface) SystemClient

type SystemServer

type SystemServer interface {
	// GetInfo returns info about the client
	GetStatus(context.Context, *emptypb.Empty) (*ServerStatus, error)
	// PeersAdd adds a new peer
	PeersAdd(context.Context, *PeersAddRequest) (*PeersAddResponse, error)
	// PeersList returns the list of peers
	PeersList(context.Context, *emptypb.Empty) (*PeersListResponse, error)
	// PeersInfo returns the info of a peer
	PeersStatus(context.Context, *PeersStatusRequest) (*Peer, error)
	// Subscribe subscribes to blockchain events
	Subscribe(*emptypb.Empty, System_SubscribeServer) error
	// Export returns blockchain data
	BlockByNumber(context.Context, *BlockByNumberRequest) (*BlockResponse, error)
	// Export returns blockchain data
	Export(*ExportRequest, System_ExportServer) error
	// contains filtered or unexported methods
}

SystemServer is the server API for System service. All implementations must embed UnimplementedSystemServer for forward compatibility

type System_ExportClient

type System_ExportClient interface {
	Recv() (*ExportEvent, error)
	grpc.ClientStream
}

type System_ExportServer

type System_ExportServer interface {
	Send(*ExportEvent) error
	grpc.ServerStream
}

type System_SubscribeClient

type System_SubscribeClient interface {
	Recv() (*BlockchainEvent, error)
	grpc.ClientStream
}

type System_SubscribeServer

type System_SubscribeServer interface {
	Send(*BlockchainEvent) error
	grpc.ServerStream
}

type UnimplementedSystemServer

type UnimplementedSystemServer struct {
}

UnimplementedSystemServer must be embedded to have forward compatible implementations.

func (UnimplementedSystemServer) BlockByNumber

func (UnimplementedSystemServer) Export

func (UnimplementedSystemServer) GetStatus

func (UnimplementedSystemServer) PeersAdd

func (UnimplementedSystemServer) PeersList

func (UnimplementedSystemServer) PeersStatus

func (UnimplementedSystemServer) Subscribe

type UnsafeSystemServer

type UnsafeSystemServer interface {
	// contains filtered or unexported methods
}

UnsafeSystemServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SystemServer will result in compilation errors.

Jump to

Keyboard shortcuts

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