Documentation ¶
Index ¶
- Variables
- func RegisterValidatorPerformanceServiceServer(s grpc.ServiceRegistrar, srv ValidatorPerformanceServiceServer)
- type GetByHeightRequest
- func (*GetByHeightRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByHeightRequest) GetHeight() int64
- func (*GetByHeightRequest) ProtoMessage()
- func (x *GetByHeightRequest) ProtoReflect() protoreflect.Message
- func (x *GetByHeightRequest) Reset()
- func (x *GetByHeightRequest) String() string
- type GetByHeightResponse
- func (*GetByHeightResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetByHeightResponse) GetValidators() []*Validator
- func (*GetByHeightResponse) ProtoMessage()
- func (x *GetByHeightResponse) ProtoReflect() protoreflect.Message
- func (x *GetByHeightResponse) Reset()
- func (x *GetByHeightResponse) String() string
- type UnimplementedValidatorPerformanceServiceServer
- type UnsafeValidatorPerformanceServiceServer
- type Validator
- type ValidatorPerformanceServiceClient
- type ValidatorPerformanceServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_grpc_validatorperformance_validatorperformancepb_validator_performance_proto protoreflect.FileDescriptor
var ValidatorPerformanceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "validatorPerformance.ValidatorPerformanceService", HandlerType: (*ValidatorPerformanceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetByHeight", Handler: _ValidatorPerformanceService_GetByHeight_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/validatorperformance/validatorperformancepb/validator_performance.proto", }
ValidatorPerformanceService_ServiceDesc is the grpc.ServiceDesc for ValidatorPerformanceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterValidatorPerformanceServiceServer ¶
func RegisterValidatorPerformanceServiceServer(s grpc.ServiceRegistrar, srv ValidatorPerformanceServiceServer)
Types ¶
type GetByHeightRequest ¶
type GetByHeightRequest struct { Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetByHeightRequest) Descriptor
deprecated
func (*GetByHeightRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByHeightRequest.ProtoReflect.Descriptor instead.
func (*GetByHeightRequest) GetHeight ¶
func (x *GetByHeightRequest) GetHeight() int64
func (*GetByHeightRequest) ProtoMessage ¶
func (*GetByHeightRequest) ProtoMessage()
func (*GetByHeightRequest) ProtoReflect ¶
func (x *GetByHeightRequest) ProtoReflect() protoreflect.Message
func (*GetByHeightRequest) Reset ¶
func (x *GetByHeightRequest) Reset()
func (*GetByHeightRequest) String ¶
func (x *GetByHeightRequest) String() string
type GetByHeightResponse ¶
type GetByHeightResponse struct { Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` // contains filtered or unexported fields }
func (*GetByHeightResponse) Descriptor
deprecated
func (*GetByHeightResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByHeightResponse.ProtoReflect.Descriptor instead.
func (*GetByHeightResponse) GetValidators ¶
func (x *GetByHeightResponse) GetValidators() []*Validator
func (*GetByHeightResponse) ProtoMessage ¶
func (*GetByHeightResponse) ProtoMessage()
func (*GetByHeightResponse) ProtoReflect ¶
func (x *GetByHeightResponse) ProtoReflect() protoreflect.Message
func (*GetByHeightResponse) Reset ¶
func (x *GetByHeightResponse) Reset()
func (*GetByHeightResponse) String ¶
func (x *GetByHeightResponse) String() string
type UnimplementedValidatorPerformanceServiceServer ¶
type UnimplementedValidatorPerformanceServiceServer struct { }
UnimplementedValidatorPerformanceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedValidatorPerformanceServiceServer) GetByHeight ¶
func (UnimplementedValidatorPerformanceServiceServer) GetByHeight(context.Context, *GetByHeightRequest) (*GetByHeightResponse, error)
type UnsafeValidatorPerformanceServiceServer ¶
type UnsafeValidatorPerformanceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeValidatorPerformanceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ValidatorPerformanceServiceServer 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"` Online bool `protobuf:"varint,2,opt,name=online,proto3" json:"online,omitempty"` // contains filtered or unexported fields }
func (*Validator) Descriptor
deprecated
func (*Validator) GetStashAccount ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) ProtoReflect ¶
func (x *Validator) ProtoReflect() protoreflect.Message
type ValidatorPerformanceServiceClient ¶
type ValidatorPerformanceServiceClient interface {
GetByHeight(ctx context.Context, in *GetByHeightRequest, opts ...grpc.CallOption) (*GetByHeightResponse, error)
}
ValidatorPerformanceServiceClient is the client API for ValidatorPerformanceService 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 NewValidatorPerformanceServiceClient ¶
func NewValidatorPerformanceServiceClient(cc grpc.ClientConnInterface) ValidatorPerformanceServiceClient
type ValidatorPerformanceServiceServer ¶
type ValidatorPerformanceServiceServer interface { GetByHeight(context.Context, *GetByHeightRequest) (*GetByHeightResponse, error) // contains filtered or unexported methods }
ValidatorPerformanceServiceServer is the server API for ValidatorPerformanceService service. All implementations must embed UnimplementedValidatorPerformanceServiceServer for forward compatibility