heightpb

package
v0.0.0-...-c15509c Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 15 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_height_heightpb_height_proto protoreflect.FileDescriptor
View Source
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 (*GetAllResponse) GetChain

func (*GetAllResponse) GetEvent

func (*GetAllResponse) GetStaking

func (x *GetAllResponse) GetStaking() *stakingpb.GetByHeightResponse

func (*GetAllResponse) GetTransaction

func (*GetAllResponse) GetValidator

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.

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

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.

Jump to

Keyboard shortcuts

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