proto

package
v0.0.0-...-dd56834 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

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

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

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

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

func (m BlockByNumberRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockByNumberRequestMultiError) Error

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

type BlockByNumberRequestValidationError

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

Cause function returns cause value.

func (BlockByNumberRequestValidationError) Error

Error satisfies the builtin error interface

func (BlockByNumberRequestValidationError) ErrorName

ErrorName returns error name.

func (BlockByNumberRequestValidationError) Field

Field function returns field value.

func (BlockByNumberRequestValidationError) Key

Key function returns key value.

func (BlockByNumberRequestValidationError) Reason

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

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

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

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

func (m BlockResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockResponseMultiError) Error

func (m BlockResponseMultiError) Error() string

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

type BlockResponseValidationError

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

Cause function returns cause value.

func (BlockResponseValidationError) Error

Error satisfies the builtin error interface

func (BlockResponseValidationError) ErrorName

func (e BlockResponseValidationError) ErrorName() string

ErrorName returns error name.

func (BlockResponseValidationError) Field

Field function returns field value.

func (BlockResponseValidationError) Key

Key function returns key value.

func (BlockResponseValidationError) Reason

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

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

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

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

func (m BlockchainEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockchainEventMultiError) Error

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

type BlockchainEventValidationError

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

Cause function returns cause value.

func (BlockchainEventValidationError) Error

Error satisfies the builtin error interface

func (BlockchainEventValidationError) ErrorName

func (e BlockchainEventValidationError) ErrorName() string

ErrorName returns error name.

func (BlockchainEventValidationError) Field

Field function returns field value.

func (BlockchainEventValidationError) Key

Key function returns key value.

func (BlockchainEventValidationError) Reason

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

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

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

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

func (m BlockchainEvent_HeaderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BlockchainEvent_HeaderMultiError) Error

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

type BlockchainEvent_HeaderValidationError

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

Cause function returns cause value.

func (BlockchainEvent_HeaderValidationError) Error

Error satisfies the builtin error interface

func (BlockchainEvent_HeaderValidationError) ErrorName

ErrorName returns error name.

func (BlockchainEvent_HeaderValidationError) Field

Field function returns field value.

func (BlockchainEvent_HeaderValidationError) Key

Key function returns key value.

func (BlockchainEvent_HeaderValidationError) Reason

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

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

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

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

func (m ExportEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExportEventMultiError) Error

func (m ExportEventMultiError) Error() string

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

type ExportEventValidationError

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

Cause function returns cause value.

func (ExportEventValidationError) Error

Error satisfies the builtin error interface

func (ExportEventValidationError) ErrorName

func (e ExportEventValidationError) ErrorName() string

ErrorName returns error name.

func (ExportEventValidationError) Field

Field function returns field value.

func (ExportEventValidationError) Key

Key function returns key value.

func (ExportEventValidationError) Reason

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

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

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

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

func (m ExportRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExportRequestMultiError) Error

func (m ExportRequestMultiError) Error() string

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

type ExportRequestValidationError

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

Cause function returns cause value.

func (ExportRequestValidationError) Error

Error satisfies the builtin error interface

func (ExportRequestValidationError) ErrorName

func (e ExportRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ExportRequestValidationError) Field

Field function returns field value.

func (ExportRequestValidationError) Key

Key function returns key value.

func (ExportRequestValidationError) Reason

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

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

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

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

func (m PeerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeerMultiError) Error

func (m PeerMultiError) Error() string

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

type PeerValidationError

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

func (e PeerValidationError) Cause() error

Cause function returns cause value.

func (PeerValidationError) Error

func (e PeerValidationError) Error() string

Error satisfies the builtin error interface

func (PeerValidationError) ErrorName

func (e PeerValidationError) ErrorName() string

ErrorName returns error name.

func (PeerValidationError) Field

func (e PeerValidationError) Field() string

Field function returns field value.

func (PeerValidationError) Key

func (e PeerValidationError) Key() bool

Key function returns key value.

func (PeerValidationError) Reason

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

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

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

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

func (m PeersAddRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeersAddRequestMultiError) Error

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

type PeersAddRequestValidationError

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

Cause function returns cause value.

func (PeersAddRequestValidationError) Error

Error satisfies the builtin error interface

func (PeersAddRequestValidationError) ErrorName

func (e PeersAddRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PeersAddRequestValidationError) Field

Field function returns field value.

func (PeersAddRequestValidationError) Key

Key function returns key value.

func (PeersAddRequestValidationError) Reason

Reason function returns reason value.

type PeersAddResponse

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

func (*PeersAddResponse) Descriptor deprecated

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

Deprecated: Use PeersAddResponse.ProtoReflect.Descriptor instead.

func (*PeersAddResponse) GetMessage

func (x *PeersAddResponse) GetMessage() string

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

func (*PeersAddResponse) Validate

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

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

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

func (m PeersAddResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeersAddResponseMultiError) Error

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

type PeersAddResponseValidationError

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

Cause function returns cause value.

func (PeersAddResponseValidationError) Error

Error satisfies the builtin error interface

func (PeersAddResponseValidationError) ErrorName

ErrorName returns error name.

func (PeersAddResponseValidationError) Field

Field function returns field value.

func (PeersAddResponseValidationError) Key

Key function returns key value.

func (PeersAddResponseValidationError) Reason

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

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

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

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

func (m PeersListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeersListResponseMultiError) Error

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

type PeersListResponseValidationError

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

Cause function returns cause value.

func (PeersListResponseValidationError) Error

Error satisfies the builtin error interface

func (PeersListResponseValidationError) ErrorName

ErrorName returns error name.

func (PeersListResponseValidationError) Field

Field function returns field value.

func (PeersListResponseValidationError) Key

Key function returns key value.

func (PeersListResponseValidationError) Reason

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

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

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

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

func (m PeersStatusRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PeersStatusRequestMultiError) Error

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

type PeersStatusRequestValidationError

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

Cause function returns cause value.

func (PeersStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (PeersStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (PeersStatusRequestValidationError) Field

Field function returns field value.

func (PeersStatusRequestValidationError) Key

Key function returns key value.

func (PeersStatusRequestValidationError) Reason

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

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

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

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

func (m ServerStatusMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerStatusMultiError) Error

func (m ServerStatusMultiError) Error() string

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

type ServerStatusValidationError

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

Cause function returns cause value.

func (ServerStatusValidationError) Error

Error satisfies the builtin error interface

func (ServerStatusValidationError) ErrorName

func (e ServerStatusValidationError) ErrorName() string

ErrorName returns error name.

func (ServerStatusValidationError) Field

Field function returns field value.

func (ServerStatusValidationError) Key

Key function returns key value.

func (ServerStatusValidationError) Reason

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

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

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

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

func (m ServerStatus_BlockMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServerStatus_BlockMultiError) Error

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

type ServerStatus_BlockValidationError

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

Cause function returns cause value.

func (ServerStatus_BlockValidationError) Error

Error satisfies the builtin error interface

func (ServerStatus_BlockValidationError) ErrorName

ErrorName returns error name.

func (ServerStatus_BlockValidationError) Field

Field function returns field value.

func (ServerStatus_BlockValidationError) Key

Key function returns key value.

func (ServerStatus_BlockValidationError) Reason

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