Documentation ¶
Index ¶
- Variables
- func RegisterAPIServiceServer(s *grpc.Server, srv APIServiceServer)
- type APIServiceClient
- type APIServiceServer
- type Bucket
- func (*Bucket) Descriptor() ([]byte, []int)deprecated
- func (x *Bucket) GetRemainingDuration() string
- func (x *Bucket) GetVoter() string
- func (x *Bucket) GetVotes() string
- func (x *Bucket) GetWeightedVotes() string
- func (*Bucket) ProtoMessage()
- func (x *Bucket) ProtoReflect() protoreflect.Message
- func (x *Bucket) Reset()
- func (x *Bucket) String() string
- type BucketResponse
- type Candidate
- func (*Candidate) Descriptor() ([]byte, []int)deprecated
- func (x *Candidate) GetAddress() string
- func (x *Candidate) GetName() string
- func (x *Candidate) GetOperatorAddress() string
- func (x *Candidate) GetRewardAddress() string
- func (x *Candidate) GetSelfStakingTokens() string
- func (x *Candidate) GetTotalWeightedVotes() string
- func (*Candidate) ProtoMessage()
- func (x *Candidate) ProtoReflect() protoreflect.Message
- func (x *Candidate) Reset()
- func (x *Candidate) String() string
- type CandidateResponse
- func (*CandidateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CandidateResponse) GetCandidates() []*Candidate
- func (*CandidateResponse) ProtoMessage()
- func (x *CandidateResponse) ProtoReflect() protoreflect.Message
- func (x *CandidateResponse) Reset()
- func (x *CandidateResponse) String() string
- type ChainMeta
- func (*ChainMeta) Descriptor() ([]byte, []int)deprecated
- func (x *ChainMeta) GetHeight() string
- func (x *ChainMeta) GetTotalCandidates() uint64
- func (x *ChainMeta) GetTotalVotedStakes() string
- func (x *ChainMeta) GetTotalVotes() string
- func (*ChainMeta) ProtoMessage()
- func (x *ChainMeta) ProtoReflect() protoreflect.Message
- func (x *ChainMeta) Reset()
- func (x *ChainMeta) String() string
- type GetBucketsByCandidateRequest
- func (*GetBucketsByCandidateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBucketsByCandidateRequest) GetHeight() string
- func (x *GetBucketsByCandidateRequest) GetLimit() uint32
- func (x *GetBucketsByCandidateRequest) GetName() string
- func (x *GetBucketsByCandidateRequest) GetOffset() uint32
- func (*GetBucketsByCandidateRequest) ProtoMessage()
- func (x *GetBucketsByCandidateRequest) ProtoReflect() protoreflect.Message
- func (x *GetBucketsByCandidateRequest) Reset()
- func (x *GetBucketsByCandidateRequest) String() string
- type GetBucketsRequest
- func (*GetBucketsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBucketsRequest) GetHeight() string
- func (x *GetBucketsRequest) GetLimit() uint32
- func (x *GetBucketsRequest) GetOffset() uint32
- func (*GetBucketsRequest) ProtoMessage()
- func (x *GetBucketsRequest) ProtoReflect() protoreflect.Message
- func (x *GetBucketsRequest) Reset()
- func (x *GetBucketsRequest) String() string
- type GetCandidateByNameRequest
- func (*GetCandidateByNameRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCandidateByNameRequest) GetHeight() string
- func (x *GetCandidateByNameRequest) GetName() string
- func (*GetCandidateByNameRequest) ProtoMessage()
- func (x *GetCandidateByNameRequest) ProtoReflect() protoreflect.Message
- func (x *GetCandidateByNameRequest) Reset()
- func (x *GetCandidateByNameRequest) String() string
- type GetCandidatesRequest
- func (*GetCandidatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCandidatesRequest) GetHeight() string
- func (x *GetCandidatesRequest) GetLimit() uint32
- func (x *GetCandidatesRequest) GetOffset() uint32
- func (*GetCandidatesRequest) ProtoMessage()
- func (x *GetCandidatesRequest) ProtoReflect() protoreflect.Message
- func (x *GetCandidatesRequest) Reset()
- func (x *GetCandidatesRequest) String() string
- type GetRawDataRequest
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_Status
- func (*HealthCheckResponse) ProtoMessage()
- func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
- func (x *HealthCheckResponse) Reset()
- func (x *HealthCheckResponse) String() string
- type HealthCheckResponse_Status
- func (HealthCheckResponse_Status) Descriptor() protoreflect.EnumDescriptor
- func (x HealthCheckResponse_Status) Enum() *HealthCheckResponse_Status
- func (HealthCheckResponse_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x HealthCheckResponse_Status) Number() protoreflect.EnumNumber
- func (x HealthCheckResponse_Status) String() string
- func (HealthCheckResponse_Status) Type() protoreflect.EnumType
- type ProofRequest
- type ProofResponse
- type RawDataResponse
- func (*RawDataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RawDataResponse) GetBuckets() []*election.Bucket
- func (x *RawDataResponse) GetRegistrations() []*election.Registration
- func (x *RawDataResponse) GetTimestamp() *timestamppb.Timestamp
- func (*RawDataResponse) ProtoMessage()
- func (x *RawDataResponse) ProtoReflect() protoreflect.Message
- func (x *RawDataResponse) Reset()
- func (x *RawDataResponse) String() string
- type UnimplementedAPIServiceServer
- func (UnimplementedAPIServiceServer) GetBuckets(context.Context, *GetBucketsRequest) (*BucketResponse, error)
- func (UnimplementedAPIServiceServer) GetBucketsByCandidate(context.Context, *GetBucketsByCandidateRequest) (*BucketResponse, error)
- func (UnimplementedAPIServiceServer) GetCandidateByName(context.Context, *GetCandidateByNameRequest) (*Candidate, error)
- func (UnimplementedAPIServiceServer) GetCandidates(context.Context, *GetCandidatesRequest) (*CandidateResponse, error)
- func (UnimplementedAPIServiceServer) GetMeta(context.Context, *emptypb.Empty) (*ChainMeta, error)
- func (UnimplementedAPIServiceServer) GetProof(context.Context, *ProofRequest) (*ProofResponse, error)
- func (UnimplementedAPIServiceServer) GetRawData(context.Context, *GetRawDataRequest) (*RawDataResponse, error)
- func (UnimplementedAPIServiceServer) IsHealth(context.Context, *emptypb.Empty) (*HealthCheckResponse, error)
- type UnsafeAPIServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( HealthCheckResponse_Status_name = map[int32]string{ 0: "STARTING", 1: "ACTIVE", 2: "INACTIVE", } HealthCheckResponse_Status_value = map[string]int32{ "STARTING": 0, "ACTIVE": 1, "INACTIVE": 2, } )
Enum value maps for HealthCheckResponse_Status.
var File_pb_api_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServiceServer ¶
func RegisterAPIServiceServer(s *grpc.Server, srv APIServiceServer)
Types ¶
type APIServiceClient ¶
type APIServiceClient interface { // get the blockchain meta data GetMeta(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ChainMeta, error) // get candidates GetCandidates(ctx context.Context, in *GetCandidatesRequest, opts ...grpc.CallOption) (*CandidateResponse, error) // get candidate by name GetCandidateByName(ctx context.Context, in *GetCandidateByNameRequest, opts ...grpc.CallOption) (*Candidate, error) // get buckets by candidate GetBucketsByCandidate(ctx context.Context, in *GetBucketsByCandidateRequest, opts ...grpc.CallOption) (*BucketResponse, error) // get Buckets GetBuckets(ctx context.Context, in *GetBucketsRequest, opts ...grpc.CallOption) (*BucketResponse, error) // health endpoint IsHealth(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) // get raw data by height GetRawData(ctx context.Context, in *GetRawDataRequest, opts ...grpc.CallOption) (*RawDataResponse, error) // get proof for a given account GetProof(ctx context.Context, in *ProofRequest, opts ...grpc.CallOption) (*ProofResponse, error) }
APIServiceClient is the client API for APIService 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 NewAPIServiceClient ¶
func NewAPIServiceClient(cc grpc.ClientConnInterface) APIServiceClient
type APIServiceServer ¶
type APIServiceServer interface { // get the blockchain meta data GetMeta(context.Context, *emptypb.Empty) (*ChainMeta, error) // get candidates GetCandidates(context.Context, *GetCandidatesRequest) (*CandidateResponse, error) // get candidate by name GetCandidateByName(context.Context, *GetCandidateByNameRequest) (*Candidate, error) // get buckets by candidate GetBucketsByCandidate(context.Context, *GetBucketsByCandidateRequest) (*BucketResponse, error) // get Buckets GetBuckets(context.Context, *GetBucketsRequest) (*BucketResponse, error) // health endpoint IsHealth(context.Context, *emptypb.Empty) (*HealthCheckResponse, error) // get raw data by height GetRawData(context.Context, *GetRawDataRequest) (*RawDataResponse, error) // get proof for a given account GetProof(context.Context, *ProofRequest) (*ProofResponse, error) // contains filtered or unexported methods }
APIServiceServer is the server API for APIService service. All implementations must embed UnimplementedAPIServiceServer for forward compatibility
type Bucket ¶
type Bucket struct { // hex string Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"` Votes string `protobuf:"bytes,2,opt,name=votes,proto3" json:"votes,omitempty"` WeightedVotes string `protobuf:"bytes,3,opt,name=weightedVotes,proto3" json:"weightedVotes,omitempty"` // human readable duration RemainingDuration string `protobuf:"bytes,4,opt,name=remainingDuration,proto3" json:"remainingDuration,omitempty"` // contains filtered or unexported fields }
func (*Bucket) Descriptor
deprecated
func (*Bucket) GetRemainingDuration ¶
func (*Bucket) GetWeightedVotes ¶
func (*Bucket) ProtoMessage ¶
func (*Bucket) ProtoMessage()
func (*Bucket) ProtoReflect ¶ added in v0.3.5
func (x *Bucket) ProtoReflect() protoreflect.Message
type BucketResponse ¶
type BucketResponse struct { Buckets []*Bucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"` // contains filtered or unexported fields }
func (*BucketResponse) Descriptor
deprecated
func (*BucketResponse) Descriptor() ([]byte, []int)
Deprecated: Use BucketResponse.ProtoReflect.Descriptor instead.
func (*BucketResponse) GetBuckets ¶
func (x *BucketResponse) GetBuckets() []*Bucket
func (*BucketResponse) ProtoMessage ¶
func (*BucketResponse) ProtoMessage()
func (*BucketResponse) ProtoReflect ¶ added in v0.3.5
func (x *BucketResponse) ProtoReflect() protoreflect.Message
func (*BucketResponse) Reset ¶
func (x *BucketResponse) Reset()
func (*BucketResponse) String ¶
func (x *BucketResponse) String() string
type Candidate ¶
type Candidate struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // hex string Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` TotalWeightedVotes string `protobuf:"bytes,3,opt,name=totalWeightedVotes,proto3" json:"totalWeightedVotes,omitempty"` SelfStakingTokens string `protobuf:"bytes,4,opt,name=selfStakingTokens,proto3" json:"selfStakingTokens,omitempty"` OperatorAddress string `protobuf:"bytes,5,opt,name=operatorAddress,proto3" json:"operatorAddress,omitempty"` RewardAddress string `protobuf:"bytes,6,opt,name=rewardAddress,proto3" json:"rewardAddress,omitempty"` // contains filtered or unexported fields }
func (*Candidate) Descriptor
deprecated
func (*Candidate) GetAddress ¶
func (*Candidate) GetOperatorAddress ¶
func (*Candidate) GetRewardAddress ¶
func (*Candidate) GetSelfStakingTokens ¶
func (*Candidate) GetTotalWeightedVotes ¶
func (*Candidate) ProtoMessage ¶
func (*Candidate) ProtoMessage()
func (*Candidate) ProtoReflect ¶ added in v0.3.5
func (x *Candidate) ProtoReflect() protoreflect.Message
type CandidateResponse ¶
type CandidateResponse struct { Candidates []*Candidate `protobuf:"bytes,1,rep,name=candidates,proto3" json:"candidates,omitempty"` // contains filtered or unexported fields }
func (*CandidateResponse) Descriptor
deprecated
func (*CandidateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CandidateResponse.ProtoReflect.Descriptor instead.
func (*CandidateResponse) GetCandidates ¶
func (x *CandidateResponse) GetCandidates() []*Candidate
func (*CandidateResponse) ProtoMessage ¶
func (*CandidateResponse) ProtoMessage()
func (*CandidateResponse) ProtoReflect ¶ added in v0.3.5
func (x *CandidateResponse) ProtoReflect() protoreflect.Message
func (*CandidateResponse) Reset ¶
func (x *CandidateResponse) Reset()
func (*CandidateResponse) String ¶
func (x *CandidateResponse) String() string
type ChainMeta ¶
type ChainMeta struct { Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` TotalCandidates uint64 `protobuf:"varint,2,opt,name=totalCandidates,proto3" json:"totalCandidates,omitempty"` TotalVotedStakes string `protobuf:"bytes,3,opt,name=totalVotedStakes,proto3" json:"totalVotedStakes,omitempty"` TotalVotes string `protobuf:"bytes,4,opt,name=totalVotes,proto3" json:"totalVotes,omitempty"` // contains filtered or unexported fields }
func (*ChainMeta) Descriptor
deprecated
func (*ChainMeta) GetTotalCandidates ¶
func (*ChainMeta) GetTotalVotedStakes ¶
func (*ChainMeta) GetTotalVotes ¶
func (*ChainMeta) ProtoMessage ¶
func (*ChainMeta) ProtoMessage()
func (*ChainMeta) ProtoReflect ¶ added in v0.3.5
func (x *ChainMeta) ProtoReflect() protoreflect.Message
type GetBucketsByCandidateRequest ¶
type GetBucketsByCandidateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Height string `protobuf:"bytes,2,opt,name=height,proto3" json:"height,omitempty"` Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*GetBucketsByCandidateRequest) Descriptor
deprecated
func (*GetBucketsByCandidateRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBucketsByCandidateRequest.ProtoReflect.Descriptor instead.
func (*GetBucketsByCandidateRequest) GetHeight ¶
func (x *GetBucketsByCandidateRequest) GetHeight() string
func (*GetBucketsByCandidateRequest) GetLimit ¶
func (x *GetBucketsByCandidateRequest) GetLimit() uint32
func (*GetBucketsByCandidateRequest) GetName ¶
func (x *GetBucketsByCandidateRequest) GetName() string
func (*GetBucketsByCandidateRequest) GetOffset ¶
func (x *GetBucketsByCandidateRequest) GetOffset() uint32
func (*GetBucketsByCandidateRequest) ProtoMessage ¶
func (*GetBucketsByCandidateRequest) ProtoMessage()
func (*GetBucketsByCandidateRequest) ProtoReflect ¶ added in v0.3.5
func (x *GetBucketsByCandidateRequest) ProtoReflect() protoreflect.Message
func (*GetBucketsByCandidateRequest) Reset ¶
func (x *GetBucketsByCandidateRequest) Reset()
func (*GetBucketsByCandidateRequest) String ¶
func (x *GetBucketsByCandidateRequest) String() string
type GetBucketsRequest ¶ added in v0.1.18
type GetBucketsRequest struct { Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*GetBucketsRequest) Descriptor
deprecated
added in
v0.1.18
func (*GetBucketsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBucketsRequest.ProtoReflect.Descriptor instead.
func (*GetBucketsRequest) GetHeight ¶ added in v0.1.18
func (x *GetBucketsRequest) GetHeight() string
func (*GetBucketsRequest) GetLimit ¶ added in v0.1.18
func (x *GetBucketsRequest) GetLimit() uint32
func (*GetBucketsRequest) GetOffset ¶ added in v0.1.18
func (x *GetBucketsRequest) GetOffset() uint32
func (*GetBucketsRequest) ProtoMessage ¶ added in v0.1.18
func (*GetBucketsRequest) ProtoMessage()
func (*GetBucketsRequest) ProtoReflect ¶ added in v0.3.5
func (x *GetBucketsRequest) ProtoReflect() protoreflect.Message
func (*GetBucketsRequest) Reset ¶ added in v0.1.18
func (x *GetBucketsRequest) Reset()
func (*GetBucketsRequest) String ¶ added in v0.1.18
func (x *GetBucketsRequest) String() string
type GetCandidateByNameRequest ¶
type GetCandidateByNameRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Height string `protobuf:"bytes,2,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetCandidateByNameRequest) Descriptor
deprecated
func (*GetCandidateByNameRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCandidateByNameRequest.ProtoReflect.Descriptor instead.
func (*GetCandidateByNameRequest) GetHeight ¶
func (x *GetCandidateByNameRequest) GetHeight() string
func (*GetCandidateByNameRequest) GetName ¶
func (x *GetCandidateByNameRequest) GetName() string
func (*GetCandidateByNameRequest) ProtoMessage ¶
func (*GetCandidateByNameRequest) ProtoMessage()
func (*GetCandidateByNameRequest) ProtoReflect ¶ added in v0.3.5
func (x *GetCandidateByNameRequest) ProtoReflect() protoreflect.Message
func (*GetCandidateByNameRequest) Reset ¶
func (x *GetCandidateByNameRequest) Reset()
func (*GetCandidateByNameRequest) String ¶
func (x *GetCandidateByNameRequest) String() string
type GetCandidatesRequest ¶
type GetCandidatesRequest struct { Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*GetCandidatesRequest) Descriptor
deprecated
func (*GetCandidatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCandidatesRequest.ProtoReflect.Descriptor instead.
func (*GetCandidatesRequest) GetHeight ¶
func (x *GetCandidatesRequest) GetHeight() string
func (*GetCandidatesRequest) GetLimit ¶
func (x *GetCandidatesRequest) GetLimit() uint32
func (*GetCandidatesRequest) GetOffset ¶
func (x *GetCandidatesRequest) GetOffset() uint32
func (*GetCandidatesRequest) ProtoMessage ¶
func (*GetCandidatesRequest) ProtoMessage()
func (*GetCandidatesRequest) ProtoReflect ¶ added in v0.3.5
func (x *GetCandidatesRequest) ProtoReflect() protoreflect.Message
func (*GetCandidatesRequest) Reset ¶
func (x *GetCandidatesRequest) Reset()
func (*GetCandidatesRequest) String ¶
func (x *GetCandidatesRequest) String() string
type GetRawDataRequest ¶ added in v0.2.3
type GetRawDataRequest struct { Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GetRawDataRequest) Descriptor
deprecated
added in
v0.2.3
func (*GetRawDataRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRawDataRequest.ProtoReflect.Descriptor instead.
func (*GetRawDataRequest) GetHeight ¶ added in v0.2.3
func (x *GetRawDataRequest) GetHeight() string
func (*GetRawDataRequest) ProtoMessage ¶ added in v0.2.3
func (*GetRawDataRequest) ProtoMessage()
func (*GetRawDataRequest) ProtoReflect ¶ added in v0.3.5
func (x *GetRawDataRequest) ProtoReflect() protoreflect.Message
func (*GetRawDataRequest) Reset ¶ added in v0.2.3
func (x *GetRawDataRequest) Reset()
func (*GetRawDataRequest) String ¶ added in v0.2.3
func (x *GetRawDataRequest) String() string
type HealthCheckResponse ¶
type HealthCheckResponse struct { Status HealthCheckResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=api.HealthCheckResponse_Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*HealthCheckResponse) Descriptor
deprecated
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) GetStatus ¶
func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_Status
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) ProtoReflect ¶ added in v0.3.5
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckResponse) Reset ¶
func (x *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (x *HealthCheckResponse) String() string
type HealthCheckResponse_Status ¶
type HealthCheckResponse_Status int32
const ( HealthCheckResponse_STARTING HealthCheckResponse_Status = 0 HealthCheckResponse_ACTIVE HealthCheckResponse_Status = 1 HealthCheckResponse_INACTIVE HealthCheckResponse_Status = 2 )
func (HealthCheckResponse_Status) Descriptor ¶ added in v0.3.5
func (HealthCheckResponse_Status) Descriptor() protoreflect.EnumDescriptor
func (HealthCheckResponse_Status) Enum ¶ added in v0.3.5
func (x HealthCheckResponse_Status) Enum() *HealthCheckResponse_Status
func (HealthCheckResponse_Status) EnumDescriptor
deprecated
func (HealthCheckResponse_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse_Status.Descriptor instead.
func (HealthCheckResponse_Status) Number ¶ added in v0.3.5
func (x HealthCheckResponse_Status) Number() protoreflect.EnumNumber
func (HealthCheckResponse_Status) String ¶
func (x HealthCheckResponse_Status) String() string
func (HealthCheckResponse_Status) Type ¶ added in v0.3.5
func (HealthCheckResponse_Status) Type() protoreflect.EnumType
type ProofRequest ¶ added in v0.3.5
type ProofRequest struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*ProofRequest) Descriptor
deprecated
added in
v0.3.5
func (*ProofRequest) Descriptor() ([]byte, []int)
Deprecated: Use ProofRequest.ProtoReflect.Descriptor instead.
func (*ProofRequest) GetAccount ¶ added in v0.3.5
func (x *ProofRequest) GetAccount() string
func (*ProofRequest) ProtoMessage ¶ added in v0.3.5
func (*ProofRequest) ProtoMessage()
func (*ProofRequest) ProtoReflect ¶ added in v0.3.5
func (x *ProofRequest) ProtoReflect() protoreflect.Message
func (*ProofRequest) Reset ¶ added in v0.3.5
func (x *ProofRequest) Reset()
func (*ProofRequest) String ¶ added in v0.3.5
func (x *ProofRequest) String() string
type ProofResponse ¶ added in v0.3.5
type ProofResponse struct { Proof string `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"` // contains filtered or unexported fields }
func (*ProofResponse) Descriptor
deprecated
added in
v0.3.5
func (*ProofResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProofResponse.ProtoReflect.Descriptor instead.
func (*ProofResponse) GetProof ¶ added in v0.3.5
func (x *ProofResponse) GetProof() string
func (*ProofResponse) ProtoMessage ¶ added in v0.3.5
func (*ProofResponse) ProtoMessage()
func (*ProofResponse) ProtoReflect ¶ added in v0.3.5
func (x *ProofResponse) ProtoReflect() protoreflect.Message
func (*ProofResponse) Reset ¶ added in v0.3.5
func (x *ProofResponse) Reset()
func (*ProofResponse) String ¶ added in v0.3.5
func (x *ProofResponse) String() string
type RawDataResponse ¶ added in v0.2.3
type RawDataResponse struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Buckets []*election.Bucket `protobuf:"bytes,2,rep,name=buckets,proto3" json:"buckets,omitempty"` Registrations []*election.Registration `protobuf:"bytes,3,rep,name=registrations,proto3" json:"registrations,omitempty"` // contains filtered or unexported fields }
func (*RawDataResponse) Descriptor
deprecated
added in
v0.2.3
func (*RawDataResponse) Descriptor() ([]byte, []int)
Deprecated: Use RawDataResponse.ProtoReflect.Descriptor instead.
func (*RawDataResponse) GetBuckets ¶ added in v0.2.3
func (x *RawDataResponse) GetBuckets() []*election.Bucket
func (*RawDataResponse) GetRegistrations ¶ added in v0.2.3
func (x *RawDataResponse) GetRegistrations() []*election.Registration
func (*RawDataResponse) GetTimestamp ¶ added in v0.2.3
func (x *RawDataResponse) GetTimestamp() *timestamppb.Timestamp
func (*RawDataResponse) ProtoMessage ¶ added in v0.2.3
func (*RawDataResponse) ProtoMessage()
func (*RawDataResponse) ProtoReflect ¶ added in v0.3.5
func (x *RawDataResponse) ProtoReflect() protoreflect.Message
func (*RawDataResponse) Reset ¶ added in v0.2.3
func (x *RawDataResponse) Reset()
func (*RawDataResponse) String ¶ added in v0.2.3
func (x *RawDataResponse) String() string
type UnimplementedAPIServiceServer ¶ added in v0.2.3
type UnimplementedAPIServiceServer struct { }
UnimplementedAPIServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAPIServiceServer) GetBuckets ¶ added in v0.2.3
func (UnimplementedAPIServiceServer) GetBuckets(context.Context, *GetBucketsRequest) (*BucketResponse, error)
func (UnimplementedAPIServiceServer) GetBucketsByCandidate ¶ added in v0.2.3
func (UnimplementedAPIServiceServer) GetBucketsByCandidate(context.Context, *GetBucketsByCandidateRequest) (*BucketResponse, error)
func (UnimplementedAPIServiceServer) GetCandidateByName ¶ added in v0.2.3
func (UnimplementedAPIServiceServer) GetCandidateByName(context.Context, *GetCandidateByNameRequest) (*Candidate, error)
func (UnimplementedAPIServiceServer) GetCandidates ¶ added in v0.2.3
func (UnimplementedAPIServiceServer) GetCandidates(context.Context, *GetCandidatesRequest) (*CandidateResponse, error)
func (UnimplementedAPIServiceServer) GetProof ¶ added in v0.3.5
func (UnimplementedAPIServiceServer) GetProof(context.Context, *ProofRequest) (*ProofResponse, error)
func (UnimplementedAPIServiceServer) GetRawData ¶ added in v0.2.3
func (UnimplementedAPIServiceServer) GetRawData(context.Context, *GetRawDataRequest) (*RawDataResponse, error)
func (UnimplementedAPIServiceServer) IsHealth ¶ added in v0.2.3
func (UnimplementedAPIServiceServer) IsHealth(context.Context, *emptypb.Empty) (*HealthCheckResponse, error)
type UnsafeAPIServiceServer ¶ added in v0.3.5
type UnsafeAPIServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAPIServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServiceServer will result in compilation errors.