Documentation ¶
Index ¶
- Variables
- func RegisterValidatorServiceServer(s grpc.ServiceRegistrar, srv ValidatorServiceServer)
- type GetAllByHeightRequest
- func (*GetAllByHeightRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllByHeightRequest) GetHeight() int64
- func (*GetAllByHeightRequest) ProtoMessage()
- func (x *GetAllByHeightRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllByHeightRequest) Reset()
- func (x *GetAllByHeightRequest) String() string
- type GetAllByHeightResponse
- func (*GetAllByHeightResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllByHeightResponse) GetValidators() []*Validator
- func (*GetAllByHeightResponse) ProtoMessage()
- func (x *GetAllByHeightResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllByHeightResponse) Reset()
- func (x *GetAllByHeightResponse) String() string
- type UnimplementedValidatorServiceServer
- type UnsafeValidatorServiceServer
- type Validator
- type ValidatorServiceClient
- type ValidatorServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_grpc_validator_validatorpb_validator_proto protoreflect.FileDescriptor
var ValidatorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "validator.ValidatorService", HandlerType: (*ValidatorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAllByHeight", Handler: _ValidatorService_GetAllByHeight_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/validator/validatorpb/validator.proto", }
ValidatorService_ServiceDesc is the grpc.ServiceDesc for ValidatorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterValidatorServiceServer ¶
func RegisterValidatorServiceServer(s grpc.ServiceRegistrar, srv ValidatorServiceServer)
Types ¶
type GetAllByHeightRequest ¶
type GetAllByHeightRequest struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetAllByHeightRequest) Descriptor
deprecated
func (*GetAllByHeightRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllByHeightRequest.ProtoReflect.Descriptor instead.
func (*GetAllByHeightRequest) GetHeight ¶
func (x *GetAllByHeightRequest) GetHeight() int64
func (*GetAllByHeightRequest) ProtoMessage ¶
func (*GetAllByHeightRequest) ProtoMessage()
func (*GetAllByHeightRequest) ProtoReflect ¶
func (x *GetAllByHeightRequest) ProtoReflect() protoreflect.Message
func (*GetAllByHeightRequest) Reset ¶
func (x *GetAllByHeightRequest) Reset()
func (*GetAllByHeightRequest) String ¶
func (x *GetAllByHeightRequest) String() string
type GetAllByHeightResponse ¶
type GetAllByHeightResponse struct { Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` // contains filtered or unexported fields }
func (*GetAllByHeightResponse) Descriptor
deprecated
func (*GetAllByHeightResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllByHeightResponse.ProtoReflect.Descriptor instead.
func (*GetAllByHeightResponse) GetValidators ¶
func (x *GetAllByHeightResponse) GetValidators() []*Validator
func (*GetAllByHeightResponse) ProtoMessage ¶
func (*GetAllByHeightResponse) ProtoMessage()
func (*GetAllByHeightResponse) ProtoReflect ¶
func (x *GetAllByHeightResponse) ProtoReflect() protoreflect.Message
func (*GetAllByHeightResponse) Reset ¶
func (x *GetAllByHeightResponse) Reset()
func (*GetAllByHeightResponse) String ¶
func (x *GetAllByHeightResponse) String() string
type UnimplementedValidatorServiceServer ¶
type UnimplementedValidatorServiceServer struct { }
UnimplementedValidatorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedValidatorServiceServer) GetAllByHeight ¶
func (UnimplementedValidatorServiceServer) GetAllByHeight(context.Context, *GetAllByHeightRequest) (*GetAllByHeightResponse, error)
type UnsafeValidatorServiceServer ¶
type UnsafeValidatorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeValidatorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ValidatorServiceServer will result in compilation errors.
type Validator ¶
type Validator struct { StashAccount string `protobuf:"bytes,1,opt,name=stash_account,json=stashAccount,proto3" json:"stash_account,omitempty"` Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` // contains filtered or unexported fields }
func (*Validator) Descriptor
deprecated
func (*Validator) GetBalance ¶
func (*Validator) GetStashAccount ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) ProtoReflect ¶
func (x *Validator) ProtoReflect() protoreflect.Message
type ValidatorServiceClient ¶
type ValidatorServiceClient interface {
GetAllByHeight(ctx context.Context, in *GetAllByHeightRequest, opts ...grpc.CallOption) (*GetAllByHeightResponse, error)
}
ValidatorServiceClient is the client API for ValidatorService 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 NewValidatorServiceClient ¶
func NewValidatorServiceClient(cc grpc.ClientConnInterface) ValidatorServiceClient
type ValidatorServiceServer ¶
type ValidatorServiceServer interface { GetAllByHeight(context.Context, *GetAllByHeightRequest) (*GetAllByHeightResponse, error) // contains filtered or unexported methods }
ValidatorServiceServer is the server API for ValidatorService service. All implementations must embed UnimplementedValidatorServiceServer for forward compatibility