validatorperformancepb

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: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpc_validatorperformance_validatorperformancepb_validator_performance_proto protoreflect.FileDescriptor
View Source
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

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) Descriptor() ([]byte, []int)

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetOnline

func (x *Validator) GetOnline() bool

func (*Validator) GetStashAccount

func (x *Validator) GetStashAccount() string

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) ProtoReflect

func (x *Validator) ProtoReflect() protoreflect.Message

func (*Validator) Reset

func (x *Validator) Reset()

func (*Validator) String

func (x *Validator) String() string

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.

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

Jump to

Keyboard shortcuts

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