Versions in this module Expand all Collapse all v0 v0.0.2 Dec 21, 2022 v0.0.1 Dec 21, 2022 Changes in this version + var File_protocol_proto_v1_proto protoreflect.FileDescriptor + var HashRequest_Type_name = map[int32]string + var HashRequest_Type_value = map[string]int32 + var V1_ServiceDesc = grpc.ServiceDesc + func RegisterV1Server(s grpc.ServiceRegistrar, srv V1Server) + type GetCurrentResponse struct + func (*GetCurrentResponse) Descriptor() ([]byte, []int) + func (*GetCurrentResponse) ProtoMessage() + func (x *GetCurrentResponse) ProtoReflect() protoreflect.Message + func (x *GetCurrentResponse) Reset() + func (x *GetCurrentResponse) String() string + type GetHeadersRequest struct + Amount int64 + Hash string + Number int64 + Skip int64 + func (*GetHeadersRequest) Descriptor() ([]byte, []int) + func (*GetHeadersRequest) ProtoMessage() + func (x *GetHeadersRequest) GetAmount() int64 + func (x *GetHeadersRequest) GetHash() string + func (x *GetHeadersRequest) GetNumber() int64 + func (x *GetHeadersRequest) GetSkip() int64 + func (x *GetHeadersRequest) ProtoReflect() protoreflect.Message + func (x *GetHeadersRequest) Reset() + func (x *GetHeadersRequest) String() string + type HashRequest struct + Hash []string + Type HashRequest_Type + func (*HashRequest) Descriptor() ([]byte, []int) + func (*HashRequest) ProtoMessage() + func (h *HashRequest) DecodeHashes() ([]types.Hash, error) + func (x *HashRequest) GetHash() []string + func (x *HashRequest) GetType() HashRequest_Type + func (x *HashRequest) ProtoReflect() protoreflect.Message + func (x *HashRequest) Reset() + func (x *HashRequest) String() string + type HashRequest_Type int32 + const HashRequest_BODIES + const HashRequest_RECEIPTS + const HashRequest_UNKNOWN + func (HashRequest_Type) Descriptor() protoreflect.EnumDescriptor + func (HashRequest_Type) EnumDescriptor() ([]byte, []int) + func (HashRequest_Type) Type() protoreflect.EnumType + func (x HashRequest_Type) Enum() *HashRequest_Type + func (x HashRequest_Type) Number() protoreflect.EnumNumber + func (x HashRequest_Type) String() string + type NotifyReq struct + Raw *any.Any + Status *V1Status + func (*NotifyReq) Descriptor() ([]byte, []int) + func (*NotifyReq) ProtoMessage() + func (x *NotifyReq) GetRaw() *any.Any + func (x *NotifyReq) GetStatus() *V1Status + func (x *NotifyReq) ProtoReflect() protoreflect.Message + func (x *NotifyReq) Reset() + func (x *NotifyReq) String() string + type NumberRequest struct + Number []int64 + func (*NumberRequest) Descriptor() ([]byte, []int) + func (*NumberRequest) ProtoMessage() + func (x *NumberRequest) GetNumber() []int64 + func (x *NumberRequest) ProtoReflect() protoreflect.Message + func (x *NumberRequest) Reset() + func (x *NumberRequest) String() string + type Response struct + Objs []*Response_Component + func (*Response) Descriptor() ([]byte, []int) + func (*Response) ProtoMessage() + func (x *Response) GetObjs() []*Response_Component + func (x *Response) ProtoReflect() protoreflect.Message + func (x *Response) Reset() + func (x *Response) String() string + type Response_Component struct + Spec *any.Any + func (*Response_Component) Descriptor() ([]byte, []int) + func (*Response_Component) ProtoMessage() + func (x *Response_Component) GetSpec() *any.Any + func (x *Response_Component) ProtoReflect() protoreflect.Message + func (x *Response_Component) Reset() + func (x *Response_Component) String() string + type UnimplementedV1Server struct + func (UnimplementedV1Server) GetCurrent(context.Context, *empty.Empty) (*V1Status, error) + func (UnimplementedV1Server) GetHeaders(context.Context, *GetHeadersRequest) (*Response, error) + func (UnimplementedV1Server) GetObjectsByHash(context.Context, *HashRequest) (*Response, error) + func (UnimplementedV1Server) Notify(context.Context, *NotifyReq) (*empty.Empty, error) + type UnsafeV1Server interface + type V1Client interface + GetCurrent func(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*V1Status, error) + GetHeaders func(ctx context.Context, in *GetHeadersRequest, opts ...grpc.CallOption) (*Response, error) + GetObjectsByHash func(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*Response, error) + Notify func(ctx context.Context, in *NotifyReq, opts ...grpc.CallOption) (*empty.Empty, error) + func NewV1Client(cc grpc.ClientConnInterface) V1Client + type V1Server interface + GetCurrent func(context.Context, *empty.Empty) (*V1Status, error) + GetHeaders func(context.Context, *GetHeadersRequest) (*Response, error) + GetObjectsByHash func(context.Context, *HashRequest) (*Response, error) + Notify func(context.Context, *NotifyReq) (*empty.Empty, error) + type V1Status struct + Difficulty string + Hash string + Number uint64 + func (*V1Status) Descriptor() ([]byte, []int) + func (*V1Status) ProtoMessage() + func (x *V1Status) GetDifficulty() string + func (x *V1Status) GetHash() string + func (x *V1Status) GetNumber() uint64 + func (x *V1Status) ProtoReflect() protoreflect.Message + func (x *V1Status) Reset() + func (x *V1Status) String() string