Documentation
¶
Index ¶
- Variables
- func RegisterHeightServiceServer(s grpc.ServiceRegistrar, srv HeightServiceServer)
- type GetAllRequest
- type GetAllResponse
- func (*GetAllResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllResponse) GetBlock() *blockpb.GetByHeightResponse
- func (x *GetAllResponse) GetChain() *chainpb.GetMetaByHeightResponse
- func (x *GetAllResponse) GetEvent() *eventpb.GetByHeightResponse
- func (x *GetAllResponse) GetStaking() *stakingpb.GetByHeightResponse
- func (x *GetAllResponse) GetTransaction() *transactionpb.GetAnnotatedByHeightResponse
- func (x *GetAllResponse) GetValidator() *validatorpb.GetAllByHeightResponse
- func (x *GetAllResponse) GetValidatorPerformance() *validatorperformancepb.GetByHeightResponse
- func (*GetAllResponse) ProtoMessage()
- func (x *GetAllResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllResponse) Reset()
- func (x *GetAllResponse) String() string
- type HeightServiceClient
- type HeightServiceServer
- type UnimplementedHeightServiceServer
- type UnsafeHeightServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_grpc_height_heightpb_height_proto protoreflect.FileDescriptor
var HeightService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "height.HeightService", HandlerType: (*HeightServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAll", Handler: _HeightService_GetAll_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/height/heightpb/height.proto", }
HeightService_ServiceDesc is the grpc.ServiceDesc for HeightService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHeightServiceServer ¶
func RegisterHeightServiceServer(s grpc.ServiceRegistrar, srv HeightServiceServer)
Types ¶
type GetAllRequest ¶
type GetAllRequest struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetAllRequest) Descriptor
deprecated
func (*GetAllRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead.
func (*GetAllRequest) GetHeight ¶
func (x *GetAllRequest) GetHeight() int64
func (*GetAllRequest) ProtoMessage ¶
func (*GetAllRequest) ProtoMessage()
func (*GetAllRequest) ProtoReflect ¶
func (x *GetAllRequest) ProtoReflect() protoreflect.Message
func (*GetAllRequest) Reset ¶
func (x *GetAllRequest) Reset()
func (*GetAllRequest) String ¶
func (x *GetAllRequest) String() string
type GetAllResponse ¶
type GetAllResponse struct { Chain *chainpb.GetMetaByHeightResponse `protobuf:"bytes,1,opt,name=chain,proto3" json:"chain,omitempty"` Block *blockpb.GetByHeightResponse `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"` Event *eventpb.GetByHeightResponse `protobuf:"bytes,4,opt,name=event,proto3" json:"event,omitempty"` Staking *stakingpb.GetByHeightResponse `protobuf:"bytes,3,opt,name=staking,proto3" json:"staking,omitempty"` Transaction *transactionpb.GetAnnotatedByHeightResponse `protobuf:"bytes,5,opt,name=transaction,proto3" json:"transaction,omitempty"` ValidatorPerformance *validatorperformancepb.GetByHeightResponse `protobuf:"bytes,6,opt,name=validator_performance,json=validatorPerformance,proto3" json:"validator_performance,omitempty"` Validator *validatorpb.GetAllByHeightResponse `protobuf:"bytes,7,opt,name=validator,proto3" json:"validator,omitempty"` // contains filtered or unexported fields }
func (*GetAllResponse) Descriptor
deprecated
func (*GetAllResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllResponse.ProtoReflect.Descriptor instead.
func (*GetAllResponse) GetBlock ¶
func (x *GetAllResponse) GetBlock() *blockpb.GetByHeightResponse
func (*GetAllResponse) GetChain ¶
func (x *GetAllResponse) GetChain() *chainpb.GetMetaByHeightResponse
func (*GetAllResponse) GetEvent ¶
func (x *GetAllResponse) GetEvent() *eventpb.GetByHeightResponse
func (*GetAllResponse) GetStaking ¶
func (x *GetAllResponse) GetStaking() *stakingpb.GetByHeightResponse
func (*GetAllResponse) GetTransaction ¶
func (x *GetAllResponse) GetTransaction() *transactionpb.GetAnnotatedByHeightResponse
func (*GetAllResponse) GetValidator ¶
func (x *GetAllResponse) GetValidator() *validatorpb.GetAllByHeightResponse
func (*GetAllResponse) GetValidatorPerformance ¶
func (x *GetAllResponse) GetValidatorPerformance() *validatorperformancepb.GetByHeightResponse
func (*GetAllResponse) ProtoMessage ¶
func (*GetAllResponse) ProtoMessage()
func (*GetAllResponse) ProtoReflect ¶
func (x *GetAllResponse) ProtoReflect() protoreflect.Message
func (*GetAllResponse) Reset ¶
func (x *GetAllResponse) Reset()
func (*GetAllResponse) String ¶
func (x *GetAllResponse) String() string
type HeightServiceClient ¶
type HeightServiceClient interface {
GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error)
}
HeightServiceClient is the client API for HeightService 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 NewHeightServiceClient ¶
func NewHeightServiceClient(cc grpc.ClientConnInterface) HeightServiceClient
type HeightServiceServer ¶
type HeightServiceServer interface { GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error) // contains filtered or unexported methods }
HeightServiceServer is the server API for HeightService service. All implementations must embed UnimplementedHeightServiceServer for forward compatibility
type UnimplementedHeightServiceServer ¶
type UnimplementedHeightServiceServer struct { }
UnimplementedHeightServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHeightServiceServer) GetAll ¶
func (UnimplementedHeightServiceServer) GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
type UnsafeHeightServiceServer ¶
type UnsafeHeightServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHeightServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HeightServiceServer will result in compilation errors.