Documentation
¶
Index ¶
- Variables
- func RegisterRVerServer(s *grpc.Server, srv RVerServer)
- func Valid(r *TrustedCheckInRequest, now time.Time, key []byte) bool
- type CheckInRequest
- type CheckInResponse
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetChoices() []string
- func (x *CreateRequest) GetQuestion() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- type Digester
- type Election
- func (*Election) Descriptor() ([]byte, []int)deprecated
- func (x *Election) GetBallotKey() string
- func (x *Election) GetChoices() []string
- func (x *Election) GetClose() *timestamp.Timestamp
- func (x *Election) GetFlags() []Election_Flag
- func (x *Election) GetKey() string
- func (x *Election) GetQuestion() string
- func (*Election) ProtoMessage()
- func (x *Election) ProtoReflect() protoreflect.Message
- func (x *Election) Reset()
- func (x *Election) String() string
- type ElectionView
- func (*ElectionView) Descriptor() ([]byte, []int)deprecated
- func (x *ElectionView) GetBallotKey() string
- func (x *ElectionView) GetChoices() []string
- func (x *ElectionView) GetClose() *timestamp.Timestamp
- func (x *ElectionView) GetFlags() []Election_Flag
- func (x *ElectionView) GetQuestion() string
- func (*ElectionView) ProtoMessage()
- func (x *ElectionView) ProtoReflect() protoreflect.Message
- func (x *ElectionView) Reset()
- func (x *ElectionView) String() string
- type Election_Flag
- func (Election_Flag) Descriptor() protoreflect.EnumDescriptor
- func (x Election_Flag) Enum() *Election_Flag
- func (Election_Flag) EnumDescriptor() ([]byte, []int)deprecated
- func (x Election_Flag) Number() protoreflect.EnumNumber
- func (x Election_Flag) String() string
- func (Election_Flag) Type() protoreflect.EnumType
- type GetRequest
- type GetResponse
- type GetViewRequest
- type GetViewResponse
- type ListRequest
- type ListResponse
- type ListViewsRequest
- func (*ListViewsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListViewsRequest) GetFilter() ListViewsRequest_Filter
- func (*ListViewsRequest) ProtoMessage()
- func (x *ListViewsRequest) ProtoReflect() protoreflect.Message
- func (x *ListViewsRequest) Reset()
- func (x *ListViewsRequest) String() string
- type ListViewsRequest_Filter
- func (ListViewsRequest_Filter) Descriptor() protoreflect.EnumDescriptor
- func (x ListViewsRequest_Filter) Enum() *ListViewsRequest_Filter
- func (ListViewsRequest_Filter) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListViewsRequest_Filter) Number() protoreflect.EnumNumber
- func (x ListViewsRequest_Filter) String() string
- func (ListViewsRequest_Filter) Type() protoreflect.EnumType
- type ListViewsResponse
- func (*ListViewsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListViewsResponse) GetElections() []*ElectionView
- func (*ListViewsResponse) ProtoMessage()
- func (x *ListViewsResponse) ProtoReflect() protoreflect.Message
- func (x *ListViewsResponse) Reset()
- func (x *ListViewsResponse) String() string
- type ModifyFlags
- func (*ModifyFlags) Descriptor() ([]byte, []int)deprecated
- func (x *ModifyFlags) GetAdd() []Election_Flag
- func (x *ModifyFlags) GetRemove() []Election_Flag
- func (*ModifyFlags) ProtoMessage()
- func (x *ModifyFlags) ProtoReflect() protoreflect.Message
- func (x *ModifyFlags) Reset()
- func (x *ModifyFlags) String() string
- type RVerClient
- type RVerServer
- type RemainingVote
- func (*RemainingVote) Descriptor() ([]byte, []int)deprecated
- func (x *RemainingVote) GetChoices() []string
- func (x *RemainingVote) GetName() string
- func (*RemainingVote) ProtoMessage()
- func (x *RemainingVote) ProtoReflect() protoreflect.Message
- func (x *RemainingVote) Reset()
- func (x *RemainingVote) String() string
- type Report
- type ReportRequest
- func (*ReportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReportRequest) GetBallotKey() string
- func (x *ReportRequest) GetKey() string
- func (*ReportRequest) ProtoMessage()
- func (x *ReportRequest) ProtoReflect() protoreflect.Message
- func (x *ReportRequest) Reset()
- func (x *ReportRequest) String() string
- type ReportResponse
- type Round
- type SetClose
- type Tally
- func (*Tally) Descriptor() ([]byte, []int)deprecated
- func (x *Tally) GetChoice() string
- func (x *Tally) GetCount() float64
- func (x *Tally) GetOutcome() Tally_Outcome
- func (*Tally) ProtoMessage()
- func (x *Tally) ProtoReflect() protoreflect.Message
- func (x *Tally) Reset()
- func (x *Tally) String() string
- type Tally_Outcome
- func (Tally_Outcome) Descriptor() protoreflect.EnumDescriptor
- func (x Tally_Outcome) Enum() *Tally_Outcome
- func (Tally_Outcome) EnumDescriptor() ([]byte, []int)deprecated
- func (x Tally_Outcome) Number() protoreflect.EnumNumber
- func (x Tally_Outcome) String() string
- func (Tally_Outcome) Type() protoreflect.EnumType
- type TrustedCheckInRequest
- func (*TrustedCheckInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TrustedCheckInRequest) GetClientId() string
- func (x *TrustedCheckInRequest) GetDigest() []byte
- func (x *TrustedCheckInRequest) GetTimestamp() *timestamp.Timestamp
- func (x *TrustedCheckInRequest) GetUserName() string
- func (*TrustedCheckInRequest) ProtoMessage()
- func (x *TrustedCheckInRequest) ProtoReflect() protoreflect.Message
- func (x *TrustedCheckInRequest) Reset()
- func (x *TrustedCheckInRequest) String() string
- type TrustedCheckInResponse
- type UnimplementedRVerServer
- func (*UnimplementedRVerServer) CheckIn(context.Context, *CheckInRequest) (*CheckInResponse, error)
- func (*UnimplementedRVerServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (*UnimplementedRVerServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (*UnimplementedRVerServer) GetView(context.Context, *GetViewRequest) (*GetViewResponse, error)
- func (*UnimplementedRVerServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (*UnimplementedRVerServer) ListViews(context.Context, *ListViewsRequest) (*ListViewsResponse, error)
- func (*UnimplementedRVerServer) Report(context.Context, *ReportRequest) (*ReportResponse, error)
- func (*UnimplementedRVerServer) TrustedCheckIn(context.Context, *TrustedCheckInRequest) (*TrustedCheckInResponse, error)
- func (*UnimplementedRVerServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- func (*UnimplementedRVerServer) Vote(context.Context, *VoteRequest) (*VoteResponse, error)
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetKey() string
- func (x *UpdateRequest) GetOperations() []*UpdateRequest_Operation
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpdateRequest_Operation
- func (*UpdateRequest_Operation) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest_Operation) GetModifyFlags() *ModifyFlags
- func (m *UpdateRequest_Operation) GetOperation() isUpdateRequest_Operation_Operation
- func (x *UpdateRequest_Operation) GetSetClose() *SetClose
- func (*UpdateRequest_Operation) ProtoMessage()
- func (x *UpdateRequest_Operation) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest_Operation) Reset()
- func (x *UpdateRequest_Operation) String() string
- type UpdateRequest_Operation_ModifyFlags
- type UpdateRequest_Operation_SetClose
- type UpdateResponse
- type VoteRequest
- func (*VoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VoteRequest) GetBallotKey() string
- func (x *VoteRequest) GetChoices() []string
- func (x *VoteRequest) GetName() string
- func (*VoteRequest) ProtoMessage()
- func (x *VoteRequest) ProtoReflect() protoreflect.Message
- func (x *VoteRequest) Reset()
- func (x *VoteRequest) String() string
- type VoteResponse
Constants ¶
This section is empty.
Variables ¶
var ( ListViewsRequest_Filter_name = map[int32]string{ 0: "UNKNOWN", 1: "PUBLIC", 2: "VOTED_IN", } ListViewsRequest_Filter_value = map[string]int32{ "UNKNOWN": 0, "PUBLIC": 1, "VOTED_IN": 2, } )
Enum value maps for ListViewsRequest_Filter.
var ( Tally_Outcome_name = map[int32]string{ 0: "UNKNOWN", 1: "ELECTED", 2: "ELIMINATED", } Tally_Outcome_value = map[string]int32{ "UNKNOWN": 0, "ELECTED": 1, "ELIMINATED": 2, } )
Enum value maps for Tally_Outcome.
var ( Election_Flag_name = map[int32]string{ 0: "UNKNOWN", 1: "PUBLIC", 2: "RESULTS_HIDDEN", } Election_Flag_value = map[string]int32{ "UNKNOWN": 0, "PUBLIC": 1, "RESULTS_HIDDEN": 2, } )
Enum value maps for Election_Flag.
var File_pb_rvapi_rvapi_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRVerServer ¶
func RegisterRVerServer(s *grpc.Server, srv RVerServer)
Types ¶
type CheckInRequest ¶
type CheckInRequest struct {
// contains filtered or unexported fields
}
func (*CheckInRequest) Descriptor
deprecated
func (*CheckInRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckInRequest.ProtoReflect.Descriptor instead.
func (*CheckInRequest) ProtoMessage ¶
func (*CheckInRequest) ProtoMessage()
func (*CheckInRequest) ProtoReflect ¶
func (x *CheckInRequest) ProtoReflect() protoreflect.Message
func (*CheckInRequest) Reset ¶
func (x *CheckInRequest) Reset()
func (*CheckInRequest) String ¶
func (x *CheckInRequest) String() string
type CheckInResponse ¶
type CheckInResponse struct {
// contains filtered or unexported fields
}
func (*CheckInResponse) Descriptor
deprecated
func (*CheckInResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckInResponse.ProtoReflect.Descriptor instead.
func (*CheckInResponse) ProtoMessage ¶
func (*CheckInResponse) ProtoMessage()
func (*CheckInResponse) ProtoReflect ¶
func (x *CheckInResponse) ProtoReflect() protoreflect.Message
func (*CheckInResponse) Reset ¶
func (x *CheckInResponse) Reset()
func (*CheckInResponse) String ¶
func (x *CheckInResponse) String() string
type CreateRequest ¶
type CreateRequest struct { Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` Choices []string `protobuf:"bytes,2,rep,name=choices,proto3" json:"choices,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetChoices ¶
func (x *CreateRequest) GetChoices() []string
func (*CreateRequest) GetQuestion ¶
func (x *CreateRequest) GetQuestion() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Election *Election `protobuf:"bytes,1,opt,name=election,proto3" json:"election,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetElection ¶
func (x *CreateResponse) GetElection() *Election
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type Digester ¶
type Digester struct {
// contains filtered or unexported fields
}
Digester encapsulates concerns around message digests.
func NewDigester ¶
NewDigester returns a new digester for the provided key. It's thread safe.
func (*Digester) SetDigest ¶
func (d *Digester) SetDigest(r *TrustedCheckInRequest) error
SetDigest calculates the digest for this request and sets it; the timestamp and username must be set.
type Election ¶
type Election struct { Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` Choices []string `protobuf:"bytes,2,rep,name=choices,proto3" json:"choices,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` BallotKey string `protobuf:"bytes,4,opt,name=ballot_key,json=ballotKey,proto3" json:"ballot_key,omitempty"` Close *timestamp.Timestamp `protobuf:"bytes,5,opt,name=close,proto3" json:"close,omitempty"` Flags []Election_Flag `protobuf:"varint,6,rep,packed,name=flags,proto3,enum=rvapi.Election_Flag" json:"flags,omitempty"` // contains filtered or unexported fields }
func (*Election) Descriptor
deprecated
func (*Election) GetBallotKey ¶
func (*Election) GetChoices ¶
func (*Election) GetFlags ¶
func (x *Election) GetFlags() []Election_Flag
func (*Election) GetQuestion ¶
func (*Election) ProtoMessage ¶
func (*Election) ProtoMessage()
func (*Election) ProtoReflect ¶
func (x *Election) ProtoReflect() protoreflect.Message
type ElectionView ¶
type ElectionView struct { Question string `protobuf:"bytes,1,opt,name=question,proto3" json:"question,omitempty"` Choices []string `protobuf:"bytes,2,rep,name=choices,proto3" json:"choices,omitempty"` BallotKey string `protobuf:"bytes,3,opt,name=ballot_key,json=ballotKey,proto3" json:"ballot_key,omitempty"` Close *timestamp.Timestamp `protobuf:"bytes,5,opt,name=close,proto3" json:"close,omitempty"` Flags []Election_Flag `protobuf:"varint,6,rep,packed,name=flags,proto3,enum=rvapi.Election_Flag" json:"flags,omitempty"` // contains filtered or unexported fields }
func (*ElectionView) Descriptor
deprecated
func (*ElectionView) Descriptor() ([]byte, []int)
Deprecated: Use ElectionView.ProtoReflect.Descriptor instead.
func (*ElectionView) GetBallotKey ¶
func (x *ElectionView) GetBallotKey() string
func (*ElectionView) GetChoices ¶
func (x *ElectionView) GetChoices() []string
func (*ElectionView) GetClose ¶
func (x *ElectionView) GetClose() *timestamp.Timestamp
func (*ElectionView) GetFlags ¶
func (x *ElectionView) GetFlags() []Election_Flag
func (*ElectionView) GetQuestion ¶
func (x *ElectionView) GetQuestion() string
func (*ElectionView) ProtoMessage ¶
func (*ElectionView) ProtoMessage()
func (*ElectionView) ProtoReflect ¶
func (x *ElectionView) ProtoReflect() protoreflect.Message
func (*ElectionView) Reset ¶
func (x *ElectionView) Reset()
func (*ElectionView) String ¶
func (x *ElectionView) String() string
type Election_Flag ¶
type Election_Flag int32
const ( Election_UNKNOWN Election_Flag = 0 Election_PUBLIC Election_Flag = 1 Election_RESULTS_HIDDEN Election_Flag = 2 )
func (Election_Flag) Descriptor ¶
func (Election_Flag) Descriptor() protoreflect.EnumDescriptor
func (Election_Flag) Enum ¶
func (x Election_Flag) Enum() *Election_Flag
func (Election_Flag) EnumDescriptor
deprecated
func (Election_Flag) EnumDescriptor() ([]byte, []int)
Deprecated: Use Election_Flag.Descriptor instead.
func (Election_Flag) Number ¶
func (x Election_Flag) Number() protoreflect.EnumNumber
func (Election_Flag) String ¶
func (x Election_Flag) String() string
func (Election_Flag) Type ¶
func (Election_Flag) Type() protoreflect.EnumType
type GetRequest ¶
type GetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetKey ¶
func (x *GetRequest) GetKey() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Election *Election `protobuf:"bytes,1,opt,name=election,proto3" json:"election,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetElection ¶
func (x *GetResponse) GetElection() *Election
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type GetViewRequest ¶
type GetViewRequest struct { BallotKey string `protobuf:"bytes,1,opt,name=ballot_key,json=ballotKey,proto3" json:"ballot_key,omitempty"` // contains filtered or unexported fields }
func (*GetViewRequest) Descriptor
deprecated
func (*GetViewRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetViewRequest.ProtoReflect.Descriptor instead.
func (*GetViewRequest) GetBallotKey ¶
func (x *GetViewRequest) GetBallotKey() string
func (*GetViewRequest) ProtoMessage ¶
func (*GetViewRequest) ProtoMessage()
func (*GetViewRequest) ProtoReflect ¶
func (x *GetViewRequest) ProtoReflect() protoreflect.Message
func (*GetViewRequest) Reset ¶
func (x *GetViewRequest) Reset()
func (*GetViewRequest) String ¶
func (x *GetViewRequest) String() string
type GetViewResponse ¶
type GetViewResponse struct { Election *ElectionView `protobuf:"bytes,1,opt,name=election,proto3" json:"election,omitempty"` // contains filtered or unexported fields }
func (*GetViewResponse) Descriptor
deprecated
func (*GetViewResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetViewResponse.ProtoReflect.Descriptor instead.
func (*GetViewResponse) GetElection ¶
func (x *GetViewResponse) GetElection() *ElectionView
func (*GetViewResponse) ProtoMessage ¶
func (*GetViewResponse) ProtoMessage()
func (*GetViewResponse) ProtoReflect ¶
func (x *GetViewResponse) ProtoReflect() protoreflect.Message
func (*GetViewResponse) Reset ¶
func (x *GetViewResponse) Reset()
func (*GetViewResponse) String ¶
func (x *GetViewResponse) String() string
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Elections []*Election `protobuf:"bytes,1,rep,name=elections,proto3" json:"elections,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetElections ¶
func (x *ListResponse) GetElections() []*Election
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type ListViewsRequest ¶
type ListViewsRequest struct { Filter ListViewsRequest_Filter `protobuf:"varint,1,opt,name=filter,proto3,enum=rvapi.ListViewsRequest_Filter" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*ListViewsRequest) Descriptor
deprecated
func (*ListViewsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListViewsRequest.ProtoReflect.Descriptor instead.
func (*ListViewsRequest) GetFilter ¶
func (x *ListViewsRequest) GetFilter() ListViewsRequest_Filter
func (*ListViewsRequest) ProtoMessage ¶
func (*ListViewsRequest) ProtoMessage()
func (*ListViewsRequest) ProtoReflect ¶
func (x *ListViewsRequest) ProtoReflect() protoreflect.Message
func (*ListViewsRequest) Reset ¶
func (x *ListViewsRequest) Reset()
func (*ListViewsRequest) String ¶
func (x *ListViewsRequest) String() string
type ListViewsRequest_Filter ¶
type ListViewsRequest_Filter int32
const ( ListViewsRequest_UNKNOWN ListViewsRequest_Filter = 0 ListViewsRequest_PUBLIC ListViewsRequest_Filter = 1 ListViewsRequest_VOTED_IN ListViewsRequest_Filter = 2 )
func (ListViewsRequest_Filter) Descriptor ¶
func (ListViewsRequest_Filter) Descriptor() protoreflect.EnumDescriptor
func (ListViewsRequest_Filter) Enum ¶
func (x ListViewsRequest_Filter) Enum() *ListViewsRequest_Filter
func (ListViewsRequest_Filter) EnumDescriptor
deprecated
func (ListViewsRequest_Filter) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListViewsRequest_Filter.Descriptor instead.
func (ListViewsRequest_Filter) Number ¶
func (x ListViewsRequest_Filter) Number() protoreflect.EnumNumber
func (ListViewsRequest_Filter) String ¶
func (x ListViewsRequest_Filter) String() string
func (ListViewsRequest_Filter) Type ¶
func (ListViewsRequest_Filter) Type() protoreflect.EnumType
type ListViewsResponse ¶
type ListViewsResponse struct { Elections []*ElectionView `protobuf:"bytes,1,rep,name=elections,proto3" json:"elections,omitempty"` // contains filtered or unexported fields }
func (*ListViewsResponse) Descriptor
deprecated
func (*ListViewsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListViewsResponse.ProtoReflect.Descriptor instead.
func (*ListViewsResponse) GetElections ¶
func (x *ListViewsResponse) GetElections() []*ElectionView
func (*ListViewsResponse) ProtoMessage ¶
func (*ListViewsResponse) ProtoMessage()
func (*ListViewsResponse) ProtoReflect ¶
func (x *ListViewsResponse) ProtoReflect() protoreflect.Message
func (*ListViewsResponse) Reset ¶
func (x *ListViewsResponse) Reset()
func (*ListViewsResponse) String ¶
func (x *ListViewsResponse) String() string
type ModifyFlags ¶
type ModifyFlags struct { Add []Election_Flag `protobuf:"varint,1,rep,packed,name=add,proto3,enum=rvapi.Election_Flag" json:"add,omitempty"` Remove []Election_Flag `protobuf:"varint,2,rep,packed,name=remove,proto3,enum=rvapi.Election_Flag" json:"remove,omitempty"` // contains filtered or unexported fields }
func (*ModifyFlags) Descriptor
deprecated
func (*ModifyFlags) Descriptor() ([]byte, []int)
Deprecated: Use ModifyFlags.ProtoReflect.Descriptor instead.
func (*ModifyFlags) GetAdd ¶
func (x *ModifyFlags) GetAdd() []Election_Flag
func (*ModifyFlags) GetRemove ¶
func (x *ModifyFlags) GetRemove() []Election_Flag
func (*ModifyFlags) ProtoMessage ¶
func (*ModifyFlags) ProtoMessage()
func (*ModifyFlags) ProtoReflect ¶
func (x *ModifyFlags) ProtoReflect() protoreflect.Message
func (*ModifyFlags) Reset ¶
func (x *ModifyFlags) Reset()
func (*ModifyFlags) String ¶
func (x *ModifyFlags) String() string
type RVerClient ¶
type RVerClient interface { CheckIn(ctx context.Context, in *CheckInRequest, opts ...grpc.CallOption) (*CheckInResponse, error) TrustedCheckIn(ctx context.Context, in *TrustedCheckInRequest, opts ...grpc.CallOption) (*TrustedCheckInResponse, error) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) GetView(ctx context.Context, in *GetViewRequest, opts ...grpc.CallOption) (*GetViewResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) ListViews(ctx context.Context, in *ListViewsRequest, opts ...grpc.CallOption) (*ListViewsResponse, error) Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Vote(ctx context.Context, in *VoteRequest, opts ...grpc.CallOption) (*VoteResponse, error) }
RVerClient is the client API for RVer 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 NewRVerClient ¶
func NewRVerClient(cc grpc.ClientConnInterface) RVerClient
type RVerServer ¶
type RVerServer interface { CheckIn(context.Context, *CheckInRequest) (*CheckInResponse, error) TrustedCheckIn(context.Context, *TrustedCheckInRequest) (*TrustedCheckInResponse, error) Create(context.Context, *CreateRequest) (*CreateResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) GetView(context.Context, *GetViewRequest) (*GetViewResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) ListViews(context.Context, *ListViewsRequest) (*ListViewsResponse, error) Report(context.Context, *ReportRequest) (*ReportResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Vote(context.Context, *VoteRequest) (*VoteResponse, error) // contains filtered or unexported methods }
RVerServer is the server API for RVer service. All implementations must embed UnimplementedRVerServer for forward compatibility
type RemainingVote ¶
type RemainingVote struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Choices []string `protobuf:"bytes,2,rep,name=choices,proto3" json:"choices,omitempty"` // contains filtered or unexported fields }
func (*RemainingVote) Descriptor
deprecated
func (*RemainingVote) Descriptor() ([]byte, []int)
Deprecated: Use RemainingVote.ProtoReflect.Descriptor instead.
func (*RemainingVote) GetChoices ¶
func (x *RemainingVote) GetChoices() []string
func (*RemainingVote) GetName ¶
func (x *RemainingVote) GetName() string
func (*RemainingVote) ProtoMessage ¶
func (*RemainingVote) ProtoMessage()
func (*RemainingVote) ProtoReflect ¶
func (x *RemainingVote) ProtoReflect() protoreflect.Message
func (*RemainingVote) Reset ¶
func (x *RemainingVote) Reset()
func (*RemainingVote) String ¶
func (x *RemainingVote) String() string
type Report ¶
type Report struct { Rounds []*Round `protobuf:"bytes,1,rep,name=rounds,proto3" json:"rounds,omitempty"` Winners []string `protobuf:"bytes,2,rep,name=winners,proto3" json:"winners,omitempty"` // contains filtered or unexported fields }
func (*Report) Descriptor
deprecated
func (*Report) GetWinners ¶
func (*Report) ProtoMessage ¶
func (*Report) ProtoMessage()
func (*Report) ProtoReflect ¶
func (x *Report) ProtoReflect() protoreflect.Message
type ReportRequest ¶
type ReportRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` BallotKey string `protobuf:"bytes,2,opt,name=ballot_key,json=ballotKey,proto3" json:"ballot_key,omitempty"` // contains filtered or unexported fields }
func (*ReportRequest) Descriptor
deprecated
func (*ReportRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReportRequest.ProtoReflect.Descriptor instead.
func (*ReportRequest) GetBallotKey ¶
func (x *ReportRequest) GetBallotKey() string
func (*ReportRequest) GetKey ¶
func (x *ReportRequest) GetKey() string
func (*ReportRequest) ProtoMessage ¶
func (*ReportRequest) ProtoMessage()
func (*ReportRequest) ProtoReflect ¶
func (x *ReportRequest) ProtoReflect() protoreflect.Message
func (*ReportRequest) Reset ¶
func (x *ReportRequest) Reset()
func (*ReportRequest) String ¶
func (x *ReportRequest) String() string
type ReportResponse ¶
type ReportResponse struct { Report *Report `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"` // contains filtered or unexported fields }
func (*ReportResponse) Descriptor
deprecated
func (*ReportResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReportResponse.ProtoReflect.Descriptor instead.
func (*ReportResponse) GetReport ¶
func (x *ReportResponse) GetReport() *Report
func (*ReportResponse) ProtoMessage ¶
func (*ReportResponse) ProtoMessage()
func (*ReportResponse) ProtoReflect ¶
func (x *ReportResponse) ProtoReflect() protoreflect.Message
func (*ReportResponse) Reset ¶
func (x *ReportResponse) Reset()
func (*ReportResponse) String ¶
func (x *ReportResponse) String() string
type Round ¶
type Round struct { Tallies []*Tally `protobuf:"bytes,4,rep,name=tallies,proto3" json:"tallies,omitempty"` OverallVotes int32 `protobuf:"varint,5,opt,name=overall_votes,json=overallVotes,proto3" json:"overall_votes,omitempty"` // contains filtered or unexported fields }
func (*Round) Descriptor
deprecated
func (*Round) GetOverallVotes ¶
func (*Round) GetTallies ¶
func (*Round) ProtoMessage ¶
func (*Round) ProtoMessage()
func (*Round) ProtoReflect ¶
func (x *Round) ProtoReflect() protoreflect.Message
type SetClose ¶
type SetClose struct { Close *timestamp.Timestamp `protobuf:"bytes,1,opt,name=close,proto3" json:"close,omitempty"` // contains filtered or unexported fields }
func (*SetClose) Descriptor
deprecated
func (*SetClose) ProtoMessage ¶
func (*SetClose) ProtoMessage()
func (*SetClose) ProtoReflect ¶
func (x *SetClose) ProtoReflect() protoreflect.Message
type Tally ¶
type Tally struct { Choice string `protobuf:"bytes,1,opt,name=choice,proto3" json:"choice,omitempty"` Count float64 `protobuf:"fixed64,2,opt,name=count,proto3" json:"count,omitempty"` Outcome Tally_Outcome `protobuf:"varint,3,opt,name=outcome,proto3,enum=rvapi.Tally_Outcome" json:"outcome,omitempty"` // contains filtered or unexported fields }
func (*Tally) Descriptor
deprecated
func (*Tally) GetOutcome ¶
func (x *Tally) GetOutcome() Tally_Outcome
func (*Tally) ProtoMessage ¶
func (*Tally) ProtoMessage()
func (*Tally) ProtoReflect ¶
func (x *Tally) ProtoReflect() protoreflect.Message
type Tally_Outcome ¶
type Tally_Outcome int32
const ( Tally_UNKNOWN Tally_Outcome = 0 Tally_ELECTED Tally_Outcome = 1 Tally_ELIMINATED Tally_Outcome = 2 )
func (Tally_Outcome) Descriptor ¶
func (Tally_Outcome) Descriptor() protoreflect.EnumDescriptor
func (Tally_Outcome) Enum ¶
func (x Tally_Outcome) Enum() *Tally_Outcome
func (Tally_Outcome) EnumDescriptor
deprecated
func (Tally_Outcome) EnumDescriptor() ([]byte, []int)
Deprecated: Use Tally_Outcome.Descriptor instead.
func (Tally_Outcome) Number ¶
func (x Tally_Outcome) Number() protoreflect.EnumNumber
func (Tally_Outcome) String ¶
func (x Tally_Outcome) String() string
func (Tally_Outcome) Type ¶
func (Tally_Outcome) Type() protoreflect.EnumType
type TrustedCheckInRequest ¶
type TrustedCheckInRequest struct { ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` UserName string `protobuf:"bytes,2,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Digest []byte `protobuf:"bytes,4,opt,name=digest,proto3" json:"digest,omitempty"` // contains filtered or unexported fields }
func (*TrustedCheckInRequest) Descriptor
deprecated
func (*TrustedCheckInRequest) Descriptor() ([]byte, []int)
Deprecated: Use TrustedCheckInRequest.ProtoReflect.Descriptor instead.
func (*TrustedCheckInRequest) GetClientId ¶
func (x *TrustedCheckInRequest) GetClientId() string
func (*TrustedCheckInRequest) GetDigest ¶
func (x *TrustedCheckInRequest) GetDigest() []byte
func (*TrustedCheckInRequest) GetTimestamp ¶
func (x *TrustedCheckInRequest) GetTimestamp() *timestamp.Timestamp
func (*TrustedCheckInRequest) GetUserName ¶
func (x *TrustedCheckInRequest) GetUserName() string
func (*TrustedCheckInRequest) ProtoMessage ¶
func (*TrustedCheckInRequest) ProtoMessage()
func (*TrustedCheckInRequest) ProtoReflect ¶
func (x *TrustedCheckInRequest) ProtoReflect() protoreflect.Message
func (*TrustedCheckInRequest) Reset ¶
func (x *TrustedCheckInRequest) Reset()
func (*TrustedCheckInRequest) String ¶
func (x *TrustedCheckInRequest) String() string
type TrustedCheckInResponse ¶
type TrustedCheckInResponse struct {
// contains filtered or unexported fields
}
func (*TrustedCheckInResponse) Descriptor
deprecated
func (*TrustedCheckInResponse) Descriptor() ([]byte, []int)
Deprecated: Use TrustedCheckInResponse.ProtoReflect.Descriptor instead.
func (*TrustedCheckInResponse) ProtoMessage ¶
func (*TrustedCheckInResponse) ProtoMessage()
func (*TrustedCheckInResponse) ProtoReflect ¶
func (x *TrustedCheckInResponse) ProtoReflect() protoreflect.Message
func (*TrustedCheckInResponse) Reset ¶
func (x *TrustedCheckInResponse) Reset()
func (*TrustedCheckInResponse) String ¶
func (x *TrustedCheckInResponse) String() string
type UnimplementedRVerServer ¶
type UnimplementedRVerServer struct { }
UnimplementedRVerServer must be embedded to have forward compatible implementations.
func (*UnimplementedRVerServer) CheckIn ¶
func (*UnimplementedRVerServer) CheckIn(context.Context, *CheckInRequest) (*CheckInResponse, error)
func (*UnimplementedRVerServer) Create ¶
func (*UnimplementedRVerServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (*UnimplementedRVerServer) Get ¶
func (*UnimplementedRVerServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (*UnimplementedRVerServer) GetView ¶
func (*UnimplementedRVerServer) GetView(context.Context, *GetViewRequest) (*GetViewResponse, error)
func (*UnimplementedRVerServer) List ¶
func (*UnimplementedRVerServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (*UnimplementedRVerServer) ListViews ¶
func (*UnimplementedRVerServer) ListViews(context.Context, *ListViewsRequest) (*ListViewsResponse, error)
func (*UnimplementedRVerServer) Report ¶
func (*UnimplementedRVerServer) Report(context.Context, *ReportRequest) (*ReportResponse, error)
func (*UnimplementedRVerServer) TrustedCheckIn ¶
func (*UnimplementedRVerServer) TrustedCheckIn(context.Context, *TrustedCheckInRequest) (*TrustedCheckInResponse, error)
func (*UnimplementedRVerServer) Update ¶
func (*UnimplementedRVerServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
func (*UnimplementedRVerServer) Vote ¶
func (*UnimplementedRVerServer) Vote(context.Context, *VoteRequest) (*VoteResponse, error)
type UpdateRequest ¶
type UpdateRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Operations []*UpdateRequest_Operation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetKey ¶
func (x *UpdateRequest) GetKey() string
func (*UpdateRequest) GetOperations ¶
func (x *UpdateRequest) GetOperations() []*UpdateRequest_Operation
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
type UpdateRequest_Operation ¶
type UpdateRequest_Operation struct { // Types that are assignable to Operation: // *UpdateRequest_Operation_SetClose // *UpdateRequest_Operation_ModifyFlags Operation isUpdateRequest_Operation_Operation `protobuf_oneof:"operation"` // contains filtered or unexported fields }
func (*UpdateRequest_Operation) Descriptor
deprecated
func (*UpdateRequest_Operation) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest_Operation.ProtoReflect.Descriptor instead.
func (*UpdateRequest_Operation) GetModifyFlags ¶
func (x *UpdateRequest_Operation) GetModifyFlags() *ModifyFlags
func (*UpdateRequest_Operation) GetOperation ¶
func (m *UpdateRequest_Operation) GetOperation() isUpdateRequest_Operation_Operation
func (*UpdateRequest_Operation) GetSetClose ¶
func (x *UpdateRequest_Operation) GetSetClose() *SetClose
func (*UpdateRequest_Operation) ProtoMessage ¶
func (*UpdateRequest_Operation) ProtoMessage()
func (*UpdateRequest_Operation) ProtoReflect ¶
func (x *UpdateRequest_Operation) ProtoReflect() protoreflect.Message
func (*UpdateRequest_Operation) Reset ¶
func (x *UpdateRequest_Operation) Reset()
func (*UpdateRequest_Operation) String ¶
func (x *UpdateRequest_Operation) String() string
type UpdateRequest_Operation_ModifyFlags ¶
type UpdateRequest_Operation_ModifyFlags struct {
ModifyFlags *ModifyFlags `protobuf:"bytes,2,opt,name=modify_flags,json=modifyFlags,proto3,oneof"`
}
type UpdateRequest_Operation_SetClose ¶
type UpdateRequest_Operation_SetClose struct {
SetClose *SetClose `protobuf:"bytes,1,opt,name=set_close,json=setClose,proto3,oneof"`
}
type UpdateResponse ¶
type UpdateResponse struct { Election *Election `protobuf:"bytes,1,opt,name=election,proto3" json:"election,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetElection ¶
func (x *UpdateResponse) GetElection() *Election
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
type VoteRequest ¶
type VoteRequest struct { BallotKey string `protobuf:"bytes,1,opt,name=ballot_key,json=ballotKey,proto3" json:"ballot_key,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Choices []string `protobuf:"bytes,3,rep,name=choices,proto3" json:"choices,omitempty"` // contains filtered or unexported fields }
func (*VoteRequest) Descriptor
deprecated
func (*VoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use VoteRequest.ProtoReflect.Descriptor instead.
func (*VoteRequest) GetBallotKey ¶
func (x *VoteRequest) GetBallotKey() string
func (*VoteRequest) GetChoices ¶
func (x *VoteRequest) GetChoices() []string
func (*VoteRequest) GetName ¶
func (x *VoteRequest) GetName() string
func (*VoteRequest) ProtoMessage ¶
func (*VoteRequest) ProtoMessage()
func (*VoteRequest) ProtoReflect ¶
func (x *VoteRequest) ProtoReflect() protoreflect.Message
func (*VoteRequest) Reset ¶
func (x *VoteRequest) Reset()
func (*VoteRequest) String ¶
func (x *VoteRequest) String() string
type VoteResponse ¶
type VoteResponse struct {
// contains filtered or unexported fields
}
func (*VoteResponse) Descriptor
deprecated
func (*VoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use VoteResponse.ProtoReflect.Descriptor instead.
func (*VoteResponse) ProtoMessage ¶
func (*VoteResponse) ProtoMessage()
func (*VoteResponse) ProtoReflect ¶
func (x *VoteResponse) ProtoReflect() protoreflect.Message
func (*VoteResponse) Reset ¶
func (x *VoteResponse) Reset()
func (*VoteResponse) String ¶
func (x *VoteResponse) String() string