rvapi

package
v0.0.0-...-7b1381d Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

View Source
var File_pb_rvapi_rvapi_proto protoreflect.FileDescriptor

Functions

func RegisterRVerServer

func RegisterRVerServer(s *grpc.Server, srv RVerServer)

func Valid

func Valid(r *TrustedCheckInRequest, now time.Time, key []byte) bool

Valid returns whether or not this request is valid for the provided key

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

func NewDigester(key string) *Digester

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

Deprecated: Use Election.ProtoReflect.Descriptor instead.

func (*Election) GetBallotKey

func (x *Election) GetBallotKey() string

func (*Election) GetChoices

func (x *Election) GetChoices() []string

func (*Election) GetClose

func (x *Election) GetClose() *timestamp.Timestamp

func (*Election) GetFlags

func (x *Election) GetFlags() []Election_Flag

func (*Election) GetKey

func (x *Election) GetKey() string

func (*Election) GetQuestion

func (x *Election) GetQuestion() string

func (*Election) ProtoMessage

func (*Election) ProtoMessage()

func (*Election) ProtoReflect

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

func (*Election) Reset

func (x *Election) Reset()

func (*Election) String

func (x *Election) String() string

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

func (x Election_Flag) String() string

func (Election_Flag) Type

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 (*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) Enum

func (ListViewsRequest_Filter) EnumDescriptor deprecated

func (ListViewsRequest_Filter) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListViewsRequest_Filter.Descriptor instead.

func (ListViewsRequest_Filter) Number

func (ListViewsRequest_Filter) String

func (x ListViewsRequest_Filter) String() string

func (ListViewsRequest_Filter) Type

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

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

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

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetRounds

func (x *Report) GetRounds() []*Round

func (*Report) GetWinners

func (x *Report) GetWinners() []string

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

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

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

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

Deprecated: Use Round.ProtoReflect.Descriptor instead.

func (*Round) GetOverallVotes

func (x *Round) GetOverallVotes() int32

func (*Round) GetTallies

func (x *Round) GetTallies() []*Tally

func (*Round) ProtoMessage

func (*Round) ProtoMessage()

func (*Round) ProtoReflect

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

func (*Round) Reset

func (x *Round) Reset()

func (*Round) String

func (x *Round) String() string

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

Deprecated: Use SetClose.ProtoReflect.Descriptor instead.

func (*SetClose) GetClose

func (x *SetClose) GetClose() *timestamp.Timestamp

func (*SetClose) ProtoMessage

func (*SetClose) ProtoMessage()

func (*SetClose) ProtoReflect

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

func (*SetClose) Reset

func (x *SetClose) Reset()

func (*SetClose) String

func (x *SetClose) String() string

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

Deprecated: Use Tally.ProtoReflect.Descriptor instead.

func (*Tally) GetChoice

func (x *Tally) GetChoice() string

func (*Tally) GetCount

func (x *Tally) GetCount() float64

func (*Tally) GetOutcome

func (x *Tally) GetOutcome() Tally_Outcome

func (*Tally) ProtoMessage

func (*Tally) ProtoMessage()

func (*Tally) ProtoReflect

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

func (*Tally) Reset

func (x *Tally) Reset()

func (*Tally) String

func (x *Tally) String() string

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

func (x Tally_Outcome) String() string

func (Tally_Outcome) Type

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) Create

func (*UnimplementedRVerServer) Get

func (*UnimplementedRVerServer) GetView

func (*UnimplementedRVerServer) List

func (*UnimplementedRVerServer) ListViews

func (*UnimplementedRVerServer) Report

func (*UnimplementedRVerServer) TrustedCheckIn

func (*UnimplementedRVerServer) Update

func (*UnimplementedRVerServer) Vote

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

Jump to

Keyboard shortcuts

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