Documentation
¶
Index ¶
- Variables
- func RegisterDecodeServiceServer(s grpc.ServiceRegistrar, srv DecodeServiceServer)
- type DecodeRequest
- func (*DecodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DecodeRequest) GetBlock() []byte
- func (x *DecodeRequest) GetBlockHash() string
- func (x *DecodeRequest) GetChain() string
- func (x *DecodeRequest) GetCurrentEraParent() []byte
- func (x *DecodeRequest) GetEvents() []byte
- func (x *DecodeRequest) GetMetadataParent() []byte
- func (x *DecodeRequest) GetNextFeeMultiplierParent() []byte
- func (x *DecodeRequest) GetRuntimeParent() []byte
- func (x *DecodeRequest) GetTimestamp() []byte
- func (*DecodeRequest) ProtoMessage()
- func (x *DecodeRequest) ProtoReflect() protoreflect.Message
- func (x *DecodeRequest) Reset()
- func (x *DecodeRequest) String() string
- type DecodeResponse
- func (*DecodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DecodeResponse) GetBlock() *blockpb.GetByHeightResponse
- func (x *DecodeResponse) GetEpoch() string
- func (*DecodeResponse) ProtoMessage()
- func (x *DecodeResponse) ProtoReflect() protoreflect.Message
- func (x *DecodeResponse) Reset()
- func (x *DecodeResponse) String() string
- type DecodeServiceClient
- type DecodeServiceServer
- type UnimplementedDecodeServiceServer
- type UnsafeDecodeServiceServer
Constants ¶
This section is empty.
Variables ¶
var DecodeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "decode.DecodeService", HandlerType: (*DecodeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Decode", Handler: _DecodeService_Decode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/decode/decodepb/decode.proto", }
DecodeService_ServiceDesc is the grpc.ServiceDesc for DecodeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_grpc_decode_decodepb_decode_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDecodeServiceServer ¶
func RegisterDecodeServiceServer(s grpc.ServiceRegistrar, srv DecodeServiceServer)
Types ¶
type DecodeRequest ¶
type DecodeRequest struct { Block []byte `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` BlockHash string `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"` Events []byte `protobuf:"bytes,3,opt,name=events,proto3" json:"events,omitempty"` Timestamp []byte `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` MetadataParent []byte `protobuf:"bytes,5,opt,name=metadata_parent,json=metadataParent,proto3" json:"metadata_parent,omitempty"` RuntimeParent []byte `protobuf:"bytes,6,opt,name=runtime_parent,json=runtimeParent,proto3" json:"runtime_parent,omitempty"` NextFeeMultiplierParent []byte `` /* 134-byte string literal not displayed */ CurrentEraParent []byte `protobuf:"bytes,8,opt,name=current_era_parent,json=currentEraParent,proto3" json:"current_era_parent,omitempty"` Chain string `protobuf:"bytes,9,opt,name=chain,proto3" json:"chain,omitempty"` // contains filtered or unexported fields }
func (*DecodeRequest) Descriptor
deprecated
func (*DecodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DecodeRequest.ProtoReflect.Descriptor instead.
func (*DecodeRequest) GetBlock ¶
func (x *DecodeRequest) GetBlock() []byte
func (*DecodeRequest) GetBlockHash ¶
func (x *DecodeRequest) GetBlockHash() string
func (*DecodeRequest) GetChain ¶
func (x *DecodeRequest) GetChain() string
func (*DecodeRequest) GetCurrentEraParent ¶
func (x *DecodeRequest) GetCurrentEraParent() []byte
func (*DecodeRequest) GetEvents ¶
func (x *DecodeRequest) GetEvents() []byte
func (*DecodeRequest) GetMetadataParent ¶
func (x *DecodeRequest) GetMetadataParent() []byte
func (*DecodeRequest) GetNextFeeMultiplierParent ¶
func (x *DecodeRequest) GetNextFeeMultiplierParent() []byte
func (*DecodeRequest) GetRuntimeParent ¶
func (x *DecodeRequest) GetRuntimeParent() []byte
func (*DecodeRequest) GetTimestamp ¶
func (x *DecodeRequest) GetTimestamp() []byte
func (*DecodeRequest) ProtoMessage ¶
func (*DecodeRequest) ProtoMessage()
func (*DecodeRequest) ProtoReflect ¶
func (x *DecodeRequest) ProtoReflect() protoreflect.Message
func (*DecodeRequest) Reset ¶
func (x *DecodeRequest) Reset()
func (*DecodeRequest) String ¶
func (x *DecodeRequest) String() string
type DecodeResponse ¶
type DecodeResponse struct { Block *blockpb.GetByHeightResponse `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` Epoch string `protobuf:"bytes,2,opt,name=epoch,proto3" json:"epoch,omitempty"` // contains filtered or unexported fields }
func (*DecodeResponse) Descriptor
deprecated
func (*DecodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DecodeResponse.ProtoReflect.Descriptor instead.
func (*DecodeResponse) GetBlock ¶
func (x *DecodeResponse) GetBlock() *blockpb.GetByHeightResponse
func (*DecodeResponse) GetEpoch ¶
func (x *DecodeResponse) GetEpoch() string
func (*DecodeResponse) ProtoMessage ¶
func (*DecodeResponse) ProtoMessage()
func (*DecodeResponse) ProtoReflect ¶
func (x *DecodeResponse) ProtoReflect() protoreflect.Message
func (*DecodeResponse) Reset ¶
func (x *DecodeResponse) Reset()
func (*DecodeResponse) String ¶
func (x *DecodeResponse) String() string
type DecodeServiceClient ¶
type DecodeServiceClient interface {
Decode(ctx context.Context, in *DecodeRequest, opts ...grpc.CallOption) (*DecodeResponse, error)
}
DecodeServiceClient is the client API for DecodeService 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 NewDecodeServiceClient ¶
func NewDecodeServiceClient(cc grpc.ClientConnInterface) DecodeServiceClient
type DecodeServiceServer ¶
type DecodeServiceServer interface { Decode(context.Context, *DecodeRequest) (*DecodeResponse, error) // contains filtered or unexported methods }
DecodeServiceServer is the server API for DecodeService service. All implementations must embed UnimplementedDecodeServiceServer for forward compatibility
type UnimplementedDecodeServiceServer ¶
type UnimplementedDecodeServiceServer struct { }
UnimplementedDecodeServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDecodeServiceServer) Decode ¶
func (UnimplementedDecodeServiceServer) Decode(context.Context, *DecodeRequest) (*DecodeResponse, error)
type UnsafeDecodeServiceServer ¶
type UnsafeDecodeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDecodeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DecodeServiceServer will result in compilation errors.