validatorpb

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

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

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetBalance

func (x *Validator) GetBalance() string

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 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.

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

Jump to

Keyboard shortcuts

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