api

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: GPL-3.0 Imports: 19 Imported by: 5

Documentation

Overview

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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

View Source
var APIService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.APIService",
	HandlerType: (*APIServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "getMeta",
			Handler:    _APIService_GetMeta_Handler,
		},
		{
			MethodName: "getCandidates",
			Handler:    _APIService_GetCandidates_Handler,
		},
		{
			MethodName: "getCandidateByName",
			Handler:    _APIService_GetCandidateByName_Handler,
		},
		{
			MethodName: "getBucketsByCandidate",
			Handler:    _APIService_GetBucketsByCandidate_Handler,
		},
		{
			MethodName: "getBuckets",
			Handler:    _APIService_GetBuckets_Handler,
		},
		{
			MethodName: "isHealth",
			Handler:    _APIService_IsHealth_Handler,
		},
		{
			MethodName: "getRawData",
			Handler:    _APIService_GetRawData_Handler,
		},
		{
			MethodName: "getProof",
			Handler:    _APIService_GetProof_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/api.proto",
}

APIService_ServiceDesc is the grpc.ServiceDesc for APIService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_api_proto protoreflect.FileDescriptor

Functions

func RegisterAPIServiceHandler added in v0.3.6

func RegisterAPIServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAPIServiceHandler registers the http handlers for service APIService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAPIServiceHandlerClient added in v0.3.6

func RegisterAPIServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client APIServiceClient) error

RegisterAPIServiceHandlerClient registers the http handlers for service APIService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "APIServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "APIServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "APIServiceClient" to call the correct interceptors.

func RegisterAPIServiceHandlerFromEndpoint added in v0.3.6

func RegisterAPIServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAPIServiceHandlerFromEndpoint is same as RegisterAPIServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAPIServiceHandlerServer added in v0.3.6

func RegisterAPIServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server APIServiceServer) error

RegisterAPIServiceHandlerServer registers the http handlers for service APIService to "mux". UnaryRPC :call APIServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAPIServiceHandlerFromEndpoint instead.

func RegisterAPIServiceServer

func RegisterAPIServiceServer(s grpc.ServiceRegistrar, 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) Descriptor() ([]byte, []int)

Deprecated: Use Bucket.ProtoReflect.Descriptor instead.

func (*Bucket) GetRemainingDuration

func (x *Bucket) GetRemainingDuration() string

func (*Bucket) GetVoter

func (x *Bucket) GetVoter() string

func (*Bucket) GetVotes

func (x *Bucket) GetVotes() string

func (*Bucket) GetWeightedVotes

func (x *Bucket) GetWeightedVotes() string

func (*Bucket) ProtoMessage

func (*Bucket) ProtoMessage()

func (*Bucket) ProtoReflect added in v0.3.5

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

func (*Bucket) Reset

func (x *Bucket) Reset()

func (*Bucket) String

func (x *Bucket) String() string

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

Deprecated: Use Candidate.ProtoReflect.Descriptor instead.

func (*Candidate) GetAddress

func (x *Candidate) GetAddress() string

func (*Candidate) GetName

func (x *Candidate) GetName() string

func (*Candidate) GetOperatorAddress

func (x *Candidate) GetOperatorAddress() string

func (*Candidate) GetRewardAddress

func (x *Candidate) GetRewardAddress() string

func (*Candidate) GetSelfStakingTokens

func (x *Candidate) GetSelfStakingTokens() string

func (*Candidate) GetTotalWeightedVotes

func (x *Candidate) GetTotalWeightedVotes() string

func (*Candidate) ProtoMessage

func (*Candidate) ProtoMessage()

func (*Candidate) ProtoReflect added in v0.3.5

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

func (*Candidate) Reset

func (x *Candidate) Reset()

func (*Candidate) String

func (x *Candidate) String() string

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

Deprecated: Use ChainMeta.ProtoReflect.Descriptor instead.

func (*ChainMeta) GetHeight

func (x *ChainMeta) GetHeight() string

func (*ChainMeta) GetTotalCandidates

func (x *ChainMeta) GetTotalCandidates() uint64

func (*ChainMeta) GetTotalVotedStakes

func (x *ChainMeta) GetTotalVotedStakes() string

func (*ChainMeta) GetTotalVotes

func (x *ChainMeta) GetTotalVotes() string

func (*ChainMeta) ProtoMessage

func (*ChainMeta) ProtoMessage()

func (*ChainMeta) ProtoReflect added in v0.3.5

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

func (*ChainMeta) Reset

func (x *ChainMeta) Reset()

func (*ChainMeta) String

func (x *ChainMeta) String() string

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 (*GetBucketsByCandidateRequest) Reset

func (x *GetBucketsByCandidateRequest) Reset()

func (*GetBucketsByCandidateRequest) 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 (*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 (*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) Enum added in v0.3.5

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 (HealthCheckResponse_Status) String

func (HealthCheckResponse_Status) Type added in v0.3.5

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 {
	Amount   string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Deadline string `protobuf:"bytes,2,opt,name=deadline,proto3" json:"deadline,omitempty"`
	Proof    string `protobuf:"bytes,3,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) GetAmount added in v0.3.6

func (x *ProofResponse) GetAmount() string

func (*ProofResponse) GetDeadline added in v0.3.6

func (x *ProofResponse) GetDeadline() string

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) GetBucketsByCandidate added in v0.2.3

func (UnimplementedAPIServiceServer) GetCandidateByName added in v0.2.3

func (UnimplementedAPIServiceServer) GetCandidates added in v0.2.3

func (UnimplementedAPIServiceServer) GetMeta added in v0.2.3

func (UnimplementedAPIServiceServer) GetProof added in v0.3.5

func (UnimplementedAPIServiceServer) GetRawData added in v0.2.3

func (UnimplementedAPIServiceServer) IsHealth added in v0.2.3

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.

Jump to

Keyboard shortcuts

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