Documentation ¶
Index ¶
- Variables
- func RegisterAPIServiceServer(s *grpc.Server, srv APIServiceServer)
- type APIServiceClient
- type APIServiceServer
- type Bucket
- func (*Bucket) Descriptor() ([]byte, []int)
- func (m *Bucket) GetRemainingDuration() string
- func (m *Bucket) GetVoter() string
- func (m *Bucket) GetVotes() string
- func (m *Bucket) GetWeightedVotes() string
- func (*Bucket) ProtoMessage()
- func (m *Bucket) Reset()
- func (m *Bucket) String() string
- func (m *Bucket) XXX_DiscardUnknown()
- func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bucket) XXX_Merge(src proto.Message)
- func (m *Bucket) XXX_Size() int
- func (m *Bucket) XXX_Unmarshal(b []byte) error
- type BucketResponse
- func (*BucketResponse) Descriptor() ([]byte, []int)
- func (m *BucketResponse) GetBuckets() []*Bucket
- func (*BucketResponse) ProtoMessage()
- func (m *BucketResponse) Reset()
- func (m *BucketResponse) String() string
- func (m *BucketResponse) XXX_DiscardUnknown()
- func (m *BucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BucketResponse) XXX_Merge(src proto.Message)
- func (m *BucketResponse) XXX_Size() int
- func (m *BucketResponse) XXX_Unmarshal(b []byte) error
- type Candidate
- func (*Candidate) Descriptor() ([]byte, []int)
- func (m *Candidate) GetAddress() string
- func (m *Candidate) GetName() string
- func (m *Candidate) GetOperatorAddress() string
- func (m *Candidate) GetRewardAddress() string
- func (m *Candidate) GetSelfStakingTokens() string
- func (m *Candidate) GetTotalWeightedVotes() string
- func (*Candidate) ProtoMessage()
- func (m *Candidate) Reset()
- func (m *Candidate) String() string
- func (m *Candidate) XXX_DiscardUnknown()
- func (m *Candidate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Candidate) XXX_Merge(src proto.Message)
- func (m *Candidate) XXX_Size() int
- func (m *Candidate) XXX_Unmarshal(b []byte) error
- type CandidateResponse
- func (*CandidateResponse) Descriptor() ([]byte, []int)
- func (m *CandidateResponse) GetCandidates() []*Candidate
- func (*CandidateResponse) ProtoMessage()
- func (m *CandidateResponse) Reset()
- func (m *CandidateResponse) String() string
- func (m *CandidateResponse) XXX_DiscardUnknown()
- func (m *CandidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CandidateResponse) XXX_Merge(src proto.Message)
- func (m *CandidateResponse) XXX_Size() int
- func (m *CandidateResponse) XXX_Unmarshal(b []byte) error
- type ChainMeta
- func (*ChainMeta) Descriptor() ([]byte, []int)
- func (m *ChainMeta) GetHeight() string
- func (m *ChainMeta) GetTotalCandidates() uint64
- func (m *ChainMeta) GetTotalVotedStakes() string
- func (m *ChainMeta) GetTotalVotes() string
- func (*ChainMeta) ProtoMessage()
- func (m *ChainMeta) Reset()
- func (m *ChainMeta) String() string
- func (m *ChainMeta) XXX_DiscardUnknown()
- func (m *ChainMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainMeta) XXX_Merge(src proto.Message)
- func (m *ChainMeta) XXX_Size() int
- func (m *ChainMeta) XXX_Unmarshal(b []byte) error
- type GetBucketsByCandidateRequest
- func (*GetBucketsByCandidateRequest) Descriptor() ([]byte, []int)
- func (m *GetBucketsByCandidateRequest) GetHeight() string
- func (m *GetBucketsByCandidateRequest) GetLimit() uint32
- func (m *GetBucketsByCandidateRequest) GetName() string
- func (m *GetBucketsByCandidateRequest) GetOffset() uint32
- func (*GetBucketsByCandidateRequest) ProtoMessage()
- func (m *GetBucketsByCandidateRequest) Reset()
- func (m *GetBucketsByCandidateRequest) String() string
- func (m *GetBucketsByCandidateRequest) XXX_DiscardUnknown()
- func (m *GetBucketsByCandidateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBucketsByCandidateRequest) XXX_Merge(src proto.Message)
- func (m *GetBucketsByCandidateRequest) XXX_Size() int
- func (m *GetBucketsByCandidateRequest) XXX_Unmarshal(b []byte) error
- type GetBucketsRequest
- func (*GetBucketsRequest) Descriptor() ([]byte, []int)
- func (m *GetBucketsRequest) GetHeight() string
- func (m *GetBucketsRequest) GetLimit() uint32
- func (m *GetBucketsRequest) GetOffset() uint32
- func (*GetBucketsRequest) ProtoMessage()
- func (m *GetBucketsRequest) Reset()
- func (m *GetBucketsRequest) String() string
- func (m *GetBucketsRequest) XXX_DiscardUnknown()
- func (m *GetBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBucketsRequest) XXX_Merge(src proto.Message)
- func (m *GetBucketsRequest) XXX_Size() int
- func (m *GetBucketsRequest) XXX_Unmarshal(b []byte) error
- type GetCandidateByNameRequest
- func (*GetCandidateByNameRequest) Descriptor() ([]byte, []int)
- func (m *GetCandidateByNameRequest) GetHeight() string
- func (m *GetCandidateByNameRequest) GetName() string
- func (*GetCandidateByNameRequest) ProtoMessage()
- func (m *GetCandidateByNameRequest) Reset()
- func (m *GetCandidateByNameRequest) String() string
- func (m *GetCandidateByNameRequest) XXX_DiscardUnknown()
- func (m *GetCandidateByNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCandidateByNameRequest) XXX_Merge(src proto.Message)
- func (m *GetCandidateByNameRequest) XXX_Size() int
- func (m *GetCandidateByNameRequest) XXX_Unmarshal(b []byte) error
- type GetCandidatesRequest
- func (*GetCandidatesRequest) Descriptor() ([]byte, []int)
- func (m *GetCandidatesRequest) GetHeight() string
- func (m *GetCandidatesRequest) GetLimit() uint32
- func (m *GetCandidatesRequest) GetOffset() uint32
- func (*GetCandidatesRequest) ProtoMessage()
- func (m *GetCandidatesRequest) Reset()
- func (m *GetCandidatesRequest) String() string
- func (m *GetCandidatesRequest) XXX_DiscardUnknown()
- func (m *GetCandidatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCandidatesRequest) XXX_Merge(src proto.Message)
- func (m *GetCandidatesRequest) XXX_Size() int
- func (m *GetCandidatesRequest) XXX_Unmarshal(b []byte) error
- type GetRawDataRequest
- func (*GetRawDataRequest) Descriptor() ([]byte, []int)
- func (m *GetRawDataRequest) GetHeight() string
- func (*GetRawDataRequest) ProtoMessage()
- func (m *GetRawDataRequest) Reset()
- func (m *GetRawDataRequest) String() string
- func (m *GetRawDataRequest) XXX_DiscardUnknown()
- func (m *GetRawDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRawDataRequest) XXX_Merge(src proto.Message)
- func (m *GetRawDataRequest) XXX_Size() int
- func (m *GetRawDataRequest) XXX_Unmarshal(b []byte) error
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)
- func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_Status
- func (*HealthCheckResponse) ProtoMessage()
- func (m *HealthCheckResponse) Reset()
- func (m *HealthCheckResponse) String() string
- func (m *HealthCheckResponse) XXX_DiscardUnknown()
- func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HealthCheckResponse) XXX_Merge(src proto.Message)
- func (m *HealthCheckResponse) XXX_Size() int
- func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error
- type HealthCheckResponse_Status
- type RawDataResponse
- func (*RawDataResponse) Descriptor() ([]byte, []int)
- func (m *RawDataResponse) GetBuckets() []*election.Bucket
- func (m *RawDataResponse) GetRegistrations() []*election.Registration
- func (m *RawDataResponse) GetTimestamp() *timestamp.Timestamp
- func (*RawDataResponse) ProtoMessage()
- func (m *RawDataResponse) Reset()
- func (m *RawDataResponse) String() string
- func (m *RawDataResponse) XXX_DiscardUnknown()
- func (m *RawDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RawDataResponse) XXX_Merge(src proto.Message)
- func (m *RawDataResponse) XXX_Size() int
- func (m *RawDataResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedAPIServiceServer
- func (*UnimplementedAPIServiceServer) GetBuckets(ctx context.Context, req *GetBucketsRequest) (*BucketResponse, error)
- func (*UnimplementedAPIServiceServer) GetBucketsByCandidate(ctx context.Context, req *GetBucketsByCandidateRequest) (*BucketResponse, error)
- func (*UnimplementedAPIServiceServer) GetCandidateByName(ctx context.Context, req *GetCandidateByNameRequest) (*Candidate, error)
- func (*UnimplementedAPIServiceServer) GetCandidates(ctx context.Context, req *GetCandidatesRequest) (*CandidateResponse, error)
- func (*UnimplementedAPIServiceServer) GetMeta(ctx context.Context, req *empty.Empty) (*ChainMeta, error)
- func (*UnimplementedAPIServiceServer) GetRawData(ctx context.Context, req *GetRawDataRequest) (*RawDataResponse, error)
- func (*UnimplementedAPIServiceServer) IsHealth(ctx context.Context, req *empty.Empty) (*HealthCheckResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var HealthCheckResponse_Status_name = map[int32]string{
0: "STARTING",
1: "ACTIVE",
2: "INACTIVE",
}
View Source
var HealthCheckResponse_Status_value = map[string]int32{
"STARTING": 0,
"ACTIVE": 1,
"INACTIVE": 2,
}
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 *empty.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 *empty.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) //get raw data by height GetRawData(ctx context.Context, in *GetRawDataRequest, opts ...grpc.CallOption) (*RawDataResponse, error) }
APIServiceClient is the client API for APIService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIServiceClient ¶
func NewAPIServiceClient(cc *grpc.ClientConn) APIServiceClient
type APIServiceServer ¶
type APIServiceServer interface { // get the blockchain meta data GetMeta(context.Context, *empty.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, *empty.Empty) (*HealthCheckResponse, error) //get raw data by height GetRawData(context.Context, *GetRawDataRequest) (*RawDataResponse, error) }
APIServiceServer is the server API for APIService service.
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Bucket) Descriptor ¶
func (*Bucket) GetRemainingDuration ¶
func (*Bucket) GetWeightedVotes ¶
func (*Bucket) ProtoMessage ¶
func (*Bucket) ProtoMessage()
func (*Bucket) XXX_DiscardUnknown ¶
func (m *Bucket) XXX_DiscardUnknown()
func (*Bucket) XXX_Marshal ¶
func (*Bucket) XXX_Unmarshal ¶
type BucketResponse ¶
type BucketResponse struct { Buckets []*Bucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BucketResponse) Descriptor ¶
func (*BucketResponse) Descriptor() ([]byte, []int)
func (*BucketResponse) GetBuckets ¶
func (m *BucketResponse) GetBuckets() []*Bucket
func (*BucketResponse) ProtoMessage ¶
func (*BucketResponse) ProtoMessage()
func (*BucketResponse) Reset ¶
func (m *BucketResponse) Reset()
func (*BucketResponse) String ¶
func (m *BucketResponse) String() string
func (*BucketResponse) XXX_DiscardUnknown ¶
func (m *BucketResponse) XXX_DiscardUnknown()
func (*BucketResponse) XXX_Marshal ¶
func (m *BucketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BucketResponse) XXX_Merge ¶
func (m *BucketResponse) XXX_Merge(src proto.Message)
func (*BucketResponse) XXX_Size ¶
func (m *BucketResponse) XXX_Size() int
func (*BucketResponse) XXX_Unmarshal ¶
func (m *BucketResponse) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Candidate) Descriptor ¶
func (*Candidate) GetAddress ¶
func (*Candidate) GetOperatorAddress ¶
func (*Candidate) GetRewardAddress ¶
func (*Candidate) GetSelfStakingTokens ¶
func (*Candidate) GetTotalWeightedVotes ¶
func (*Candidate) ProtoMessage ¶
func (*Candidate) ProtoMessage()
func (*Candidate) XXX_DiscardUnknown ¶
func (m *Candidate) XXX_DiscardUnknown()
func (*Candidate) XXX_Marshal ¶
func (*Candidate) XXX_Unmarshal ¶
type CandidateResponse ¶
type CandidateResponse struct { Candidates []*Candidate `protobuf:"bytes,1,rep,name=candidates,proto3" json:"candidates,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CandidateResponse) Descriptor ¶
func (*CandidateResponse) Descriptor() ([]byte, []int)
func (*CandidateResponse) GetCandidates ¶
func (m *CandidateResponse) GetCandidates() []*Candidate
func (*CandidateResponse) ProtoMessage ¶
func (*CandidateResponse) ProtoMessage()
func (*CandidateResponse) Reset ¶
func (m *CandidateResponse) Reset()
func (*CandidateResponse) String ¶
func (m *CandidateResponse) String() string
func (*CandidateResponse) XXX_DiscardUnknown ¶
func (m *CandidateResponse) XXX_DiscardUnknown()
func (*CandidateResponse) XXX_Marshal ¶
func (m *CandidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CandidateResponse) XXX_Merge ¶
func (m *CandidateResponse) XXX_Merge(src proto.Message)
func (*CandidateResponse) XXX_Size ¶
func (m *CandidateResponse) XXX_Size() int
func (*CandidateResponse) XXX_Unmarshal ¶
func (m *CandidateResponse) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainMeta) Descriptor ¶
func (*ChainMeta) GetTotalCandidates ¶
func (*ChainMeta) GetTotalVotedStakes ¶
func (*ChainMeta) GetTotalVotes ¶
func (*ChainMeta) ProtoMessage ¶
func (*ChainMeta) ProtoMessage()
func (*ChainMeta) XXX_DiscardUnknown ¶
func (m *ChainMeta) XXX_DiscardUnknown()
func (*ChainMeta) XXX_Marshal ¶
func (*ChainMeta) XXX_Unmarshal ¶
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBucketsByCandidateRequest) Descriptor ¶
func (*GetBucketsByCandidateRequest) Descriptor() ([]byte, []int)
func (*GetBucketsByCandidateRequest) GetHeight ¶
func (m *GetBucketsByCandidateRequest) GetHeight() string
func (*GetBucketsByCandidateRequest) GetLimit ¶
func (m *GetBucketsByCandidateRequest) GetLimit() uint32
func (*GetBucketsByCandidateRequest) GetName ¶
func (m *GetBucketsByCandidateRequest) GetName() string
func (*GetBucketsByCandidateRequest) GetOffset ¶
func (m *GetBucketsByCandidateRequest) GetOffset() uint32
func (*GetBucketsByCandidateRequest) ProtoMessage ¶
func (*GetBucketsByCandidateRequest) ProtoMessage()
func (*GetBucketsByCandidateRequest) Reset ¶
func (m *GetBucketsByCandidateRequest) Reset()
func (*GetBucketsByCandidateRequest) String ¶
func (m *GetBucketsByCandidateRequest) String() string
func (*GetBucketsByCandidateRequest) XXX_DiscardUnknown ¶
func (m *GetBucketsByCandidateRequest) XXX_DiscardUnknown()
func (*GetBucketsByCandidateRequest) XXX_Marshal ¶
func (m *GetBucketsByCandidateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBucketsByCandidateRequest) XXX_Merge ¶
func (m *GetBucketsByCandidateRequest) XXX_Merge(src proto.Message)
func (*GetBucketsByCandidateRequest) XXX_Size ¶
func (m *GetBucketsByCandidateRequest) XXX_Size() int
func (*GetBucketsByCandidateRequest) XXX_Unmarshal ¶
func (m *GetBucketsByCandidateRequest) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBucketsRequest) Descriptor ¶ added in v0.1.18
func (*GetBucketsRequest) Descriptor() ([]byte, []int)
func (*GetBucketsRequest) GetHeight ¶ added in v0.1.18
func (m *GetBucketsRequest) GetHeight() string
func (*GetBucketsRequest) GetLimit ¶ added in v0.1.18
func (m *GetBucketsRequest) GetLimit() uint32
func (*GetBucketsRequest) GetOffset ¶ added in v0.1.18
func (m *GetBucketsRequest) GetOffset() uint32
func (*GetBucketsRequest) ProtoMessage ¶ added in v0.1.18
func (*GetBucketsRequest) ProtoMessage()
func (*GetBucketsRequest) Reset ¶ added in v0.1.18
func (m *GetBucketsRequest) Reset()
func (*GetBucketsRequest) String ¶ added in v0.1.18
func (m *GetBucketsRequest) String() string
func (*GetBucketsRequest) XXX_DiscardUnknown ¶ added in v0.1.18
func (m *GetBucketsRequest) XXX_DiscardUnknown()
func (*GetBucketsRequest) XXX_Marshal ¶ added in v0.1.18
func (m *GetBucketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBucketsRequest) XXX_Merge ¶ added in v0.1.18
func (m *GetBucketsRequest) XXX_Merge(src proto.Message)
func (*GetBucketsRequest) XXX_Size ¶ added in v0.1.18
func (m *GetBucketsRequest) XXX_Size() int
func (*GetBucketsRequest) XXX_Unmarshal ¶ added in v0.1.18
func (m *GetBucketsRequest) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCandidateByNameRequest) Descriptor ¶
func (*GetCandidateByNameRequest) Descriptor() ([]byte, []int)
func (*GetCandidateByNameRequest) GetHeight ¶
func (m *GetCandidateByNameRequest) GetHeight() string
func (*GetCandidateByNameRequest) GetName ¶
func (m *GetCandidateByNameRequest) GetName() string
func (*GetCandidateByNameRequest) ProtoMessage ¶
func (*GetCandidateByNameRequest) ProtoMessage()
func (*GetCandidateByNameRequest) Reset ¶
func (m *GetCandidateByNameRequest) Reset()
func (*GetCandidateByNameRequest) String ¶
func (m *GetCandidateByNameRequest) String() string
func (*GetCandidateByNameRequest) XXX_DiscardUnknown ¶
func (m *GetCandidateByNameRequest) XXX_DiscardUnknown()
func (*GetCandidateByNameRequest) XXX_Marshal ¶
func (m *GetCandidateByNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCandidateByNameRequest) XXX_Merge ¶
func (m *GetCandidateByNameRequest) XXX_Merge(src proto.Message)
func (*GetCandidateByNameRequest) XXX_Size ¶
func (m *GetCandidateByNameRequest) XXX_Size() int
func (*GetCandidateByNameRequest) XXX_Unmarshal ¶
func (m *GetCandidateByNameRequest) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCandidatesRequest) Descriptor ¶
func (*GetCandidatesRequest) Descriptor() ([]byte, []int)
func (*GetCandidatesRequest) GetHeight ¶
func (m *GetCandidatesRequest) GetHeight() string
func (*GetCandidatesRequest) GetLimit ¶
func (m *GetCandidatesRequest) GetLimit() uint32
func (*GetCandidatesRequest) GetOffset ¶
func (m *GetCandidatesRequest) GetOffset() uint32
func (*GetCandidatesRequest) ProtoMessage ¶
func (*GetCandidatesRequest) ProtoMessage()
func (*GetCandidatesRequest) Reset ¶
func (m *GetCandidatesRequest) Reset()
func (*GetCandidatesRequest) String ¶
func (m *GetCandidatesRequest) String() string
func (*GetCandidatesRequest) XXX_DiscardUnknown ¶
func (m *GetCandidatesRequest) XXX_DiscardUnknown()
func (*GetCandidatesRequest) XXX_Marshal ¶
func (m *GetCandidatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCandidatesRequest) XXX_Merge ¶
func (m *GetCandidatesRequest) XXX_Merge(src proto.Message)
func (*GetCandidatesRequest) XXX_Size ¶
func (m *GetCandidatesRequest) XXX_Size() int
func (*GetCandidatesRequest) XXX_Unmarshal ¶
func (m *GetCandidatesRequest) XXX_Unmarshal(b []byte) error
type GetRawDataRequest ¶ added in v0.2.3
type GetRawDataRequest struct { Height string `protobuf:"bytes,1,opt,name=height,proto3" json:"height,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetRawDataRequest) Descriptor ¶ added in v0.2.3
func (*GetRawDataRequest) Descriptor() ([]byte, []int)
func (*GetRawDataRequest) GetHeight ¶ added in v0.2.3
func (m *GetRawDataRequest) GetHeight() string
func (*GetRawDataRequest) ProtoMessage ¶ added in v0.2.3
func (*GetRawDataRequest) ProtoMessage()
func (*GetRawDataRequest) Reset ¶ added in v0.2.3
func (m *GetRawDataRequest) Reset()
func (*GetRawDataRequest) String ¶ added in v0.2.3
func (m *GetRawDataRequest) String() string
func (*GetRawDataRequest) XXX_DiscardUnknown ¶ added in v0.2.3
func (m *GetRawDataRequest) XXX_DiscardUnknown()
func (*GetRawDataRequest) XXX_Marshal ¶ added in v0.2.3
func (m *GetRawDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRawDataRequest) XXX_Merge ¶ added in v0.2.3
func (m *GetRawDataRequest) XXX_Merge(src proto.Message)
func (*GetRawDataRequest) XXX_Size ¶ added in v0.2.3
func (m *GetRawDataRequest) XXX_Size() int
func (*GetRawDataRequest) XXX_Unmarshal ¶ added in v0.2.3
func (m *GetRawDataRequest) XXX_Unmarshal(b []byte) error
type HealthCheckResponse ¶
type HealthCheckResponse struct { Status HealthCheckResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=api.HealthCheckResponse_Status" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HealthCheckResponse) Descriptor ¶
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
func (*HealthCheckResponse) GetStatus ¶
func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_Status
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) Reset ¶
func (m *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (m *HealthCheckResponse) String() string
func (*HealthCheckResponse) XXX_DiscardUnknown ¶
func (m *HealthCheckResponse) XXX_DiscardUnknown()
func (*HealthCheckResponse) XXX_Marshal ¶
func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HealthCheckResponse) XXX_Merge ¶
func (m *HealthCheckResponse) XXX_Merge(src proto.Message)
func (*HealthCheckResponse) XXX_Size ¶
func (m *HealthCheckResponse) XXX_Size() int
func (*HealthCheckResponse) XXX_Unmarshal ¶
func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error
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) EnumDescriptor ¶
func (HealthCheckResponse_Status) EnumDescriptor() ([]byte, []int)
func (HealthCheckResponse_Status) String ¶
func (x HealthCheckResponse_Status) String() string
type RawDataResponse ¶ added in v0.2.3
type RawDataResponse struct { Timestamp *timestamp.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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RawDataResponse) Descriptor ¶ added in v0.2.3
func (*RawDataResponse) Descriptor() ([]byte, []int)
func (*RawDataResponse) GetBuckets ¶ added in v0.2.3
func (m *RawDataResponse) GetBuckets() []*election.Bucket
func (*RawDataResponse) GetRegistrations ¶ added in v0.2.3
func (m *RawDataResponse) GetRegistrations() []*election.Registration
func (*RawDataResponse) GetTimestamp ¶ added in v0.2.3
func (m *RawDataResponse) GetTimestamp() *timestamp.Timestamp
func (*RawDataResponse) ProtoMessage ¶ added in v0.2.3
func (*RawDataResponse) ProtoMessage()
func (*RawDataResponse) Reset ¶ added in v0.2.3
func (m *RawDataResponse) Reset()
func (*RawDataResponse) String ¶ added in v0.2.3
func (m *RawDataResponse) String() string
func (*RawDataResponse) XXX_DiscardUnknown ¶ added in v0.2.3
func (m *RawDataResponse) XXX_DiscardUnknown()
func (*RawDataResponse) XXX_Marshal ¶ added in v0.2.3
func (m *RawDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RawDataResponse) XXX_Merge ¶ added in v0.2.3
func (m *RawDataResponse) XXX_Merge(src proto.Message)
func (*RawDataResponse) XXX_Size ¶ added in v0.2.3
func (m *RawDataResponse) XXX_Size() int
func (*RawDataResponse) XXX_Unmarshal ¶ added in v0.2.3
func (m *RawDataResponse) XXX_Unmarshal(b []byte) error
type UnimplementedAPIServiceServer ¶ added in v0.2.3
type UnimplementedAPIServiceServer struct { }
UnimplementedAPIServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAPIServiceServer) GetBuckets ¶ added in v0.2.3
func (*UnimplementedAPIServiceServer) GetBuckets(ctx context.Context, req *GetBucketsRequest) (*BucketResponse, error)
func (*UnimplementedAPIServiceServer) GetBucketsByCandidate ¶ added in v0.2.3
func (*UnimplementedAPIServiceServer) GetBucketsByCandidate(ctx context.Context, req *GetBucketsByCandidateRequest) (*BucketResponse, error)
func (*UnimplementedAPIServiceServer) GetCandidateByName ¶ added in v0.2.3
func (*UnimplementedAPIServiceServer) GetCandidateByName(ctx context.Context, req *GetCandidateByNameRequest) (*Candidate, error)
func (*UnimplementedAPIServiceServer) GetCandidates ¶ added in v0.2.3
func (*UnimplementedAPIServiceServer) GetCandidates(ctx context.Context, req *GetCandidatesRequest) (*CandidateResponse, error)
func (*UnimplementedAPIServiceServer) GetRawData ¶ added in v0.2.3
func (*UnimplementedAPIServiceServer) GetRawData(ctx context.Context, req *GetRawDataRequest) (*RawDataResponse, error)
func (*UnimplementedAPIServiceServer) IsHealth ¶ added in v0.2.3
func (*UnimplementedAPIServiceServer) IsHealth(ctx context.Context, req *empty.Empty) (*HealthCheckResponse, error)
Click to show internal directories.
Click to hide internal directories.