Documentation ¶
Index ¶
- Variables
- type Candidate
- func (*Candidate) Descriptor() ([]byte, []int)deprecated
- func (x *Candidate) GetGroup() string
- func (x *Candidate) GetImage() []byte
- func (x *Candidate) GetImgName() string
- func (x *Candidate) GetName() string
- func (x *Candidate) GetUrl() string
- func (*Candidate) ProtoMessage()
- func (x *Candidate) ProtoReflect() protoreflect.Message
- func (x *Candidate) Reset()
- func (x *Candidate) String() string
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetCandidates() []*Candidate
- func (x *Config) GetHkmAddr() string
- func (x *Config) GetIvmAddr() string
- func (x *Config) GetLabels() []string
- func (x *Config) GetManCid() string
- func (x *Config) GetParams() *Params
- func (x *Config) GetPubKey() []byte
- func (x *Config) GetSalt1() string
- func (x *Config) GetSalt2() []byte
- func (x *Config) GetTime() *TimeInfo
- func (x *Config) GetTitle() string
- func (x *Config) GetType() int32
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type KeyPair
- type ManIdentity
- type Params
- type TimeInfo
- func (*TimeInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TimeInfo) GetBegin() string
- func (x *TimeInfo) GetEnd() string
- func (x *TimeInfo) GetLoc() string
- func (*TimeInfo) ProtoMessage()
- func (x *TimeInfo) ProtoReflect() protoreflect.Message
- func (x *TimeInfo) Reset()
- func (x *TimeInfo) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_keypair_proto protoreflect.FileDescriptor
View Source
var File_votingconfig_proto protoreflect.FileDescriptor
View Source
var File_votingmanager_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Candidate ¶
type Candidate struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` Image []byte `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` ImgName string `protobuf:"bytes,5,opt,name=imgName,proto3" json:"imgName,omitempty"` // contains filtered or unexported fields }
func (*Candidate) Descriptor
deprecated
func (*Candidate) GetImgName ¶
func (*Candidate) ProtoMessage ¶
func (*Candidate) ProtoMessage()
func (*Candidate) ProtoReflect ¶
func (x *Candidate) ProtoReflect() protoreflect.Message
type Config ¶
type Config struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Time *TimeInfo `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` Salt1 string `protobuf:"bytes,3,opt,name=salt1,proto3" json:"salt1,omitempty"` Salt2 []byte `protobuf:"bytes,4,opt,name=salt2,proto3" json:"salt2,omitempty"` Candidates []*Candidate `protobuf:"bytes,5,rep,name=candidates,proto3" json:"candidates,omitempty"` ManCid string `protobuf:"bytes,6,opt,name=manCid,proto3" json:"manCid,omitempty"` PubKey []byte `protobuf:"bytes,7,opt,name=pubKey,proto3" json:"pubKey,omitempty"` Params *Params `protobuf:"bytes,8,opt,name=params,proto3" json:"params,omitempty"` Type int32 `protobuf:"varint,9,opt,name=type,proto3" json:"type,omitempty"` HkmAddr string `protobuf:"bytes,10,opt,name=hkmAddr,proto3" json:"hkmAddr,omitempty"` IvmAddr string `protobuf:"bytes,11,opt,name=ivmAddr,proto3" json:"ivmAddr,omitempty"` Labels []string `protobuf:"bytes,12,rep,name=labels,proto3" json:"labels,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetCandidates ¶
func (*Config) GetHkmAddr ¶
func (*Config) GetIvmAddr ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type KeyPair ¶
type KeyPair struct { SignKey []byte `protobuf:"bytes,1,opt,name=signKey,proto3" json:"signKey,omitempty"` VerfKey []byte `protobuf:"bytes,2,opt,name=verfKey,proto3" json:"verfKey,omitempty"` // contains filtered or unexported fields }
func (*KeyPair) Descriptor
deprecated
func (*KeyPair) GetSignKey ¶
func (*KeyPair) GetVerfKey ¶
func (*KeyPair) ProtoMessage ¶
func (*KeyPair) ProtoMessage()
func (*KeyPair) ProtoReflect ¶
func (x *KeyPair) ProtoReflect() protoreflect.Message
type ManIdentity ¶
type ManIdentity struct { Priv []byte `protobuf:"bytes,1,opt,name=priv,proto3" json:"priv,omitempty"` // contains filtered or unexported fields }
func (*ManIdentity) Descriptor
deprecated
func (*ManIdentity) Descriptor() ([]byte, []int)
Deprecated: Use ManIdentity.ProtoReflect.Descriptor instead.
func (*ManIdentity) GetPriv ¶
func (x *ManIdentity) GetPriv() []byte
func (*ManIdentity) ProtoMessage ¶
func (*ManIdentity) ProtoMessage()
func (*ManIdentity) ProtoReflect ¶
func (x *ManIdentity) ProtoReflect() protoreflect.Message
func (*ManIdentity) Reset ¶
func (x *ManIdentity) Reset()
func (*ManIdentity) String ¶
func (x *ManIdentity) String() string
type Params ¶
type Params struct { Min int32 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` Max int32 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*Params) Descriptor
deprecated
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type TimeInfo ¶
type TimeInfo struct { Begin string `protobuf:"bytes,1,opt,name=begin,proto3" json:"begin,omitempty"` End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` Loc string `protobuf:"bytes,3,opt,name=loc,proto3" json:"loc,omitempty"` // contains filtered or unexported fields }
func (*TimeInfo) Descriptor
deprecated
func (*TimeInfo) ProtoMessage ¶
func (*TimeInfo) ProtoMessage()
func (*TimeInfo) ProtoReflect ¶
func (x *TimeInfo) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.