pb

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Deprecated: Use Candidate.ProtoReflect.Descriptor instead.

func (*Candidate) GetGroup

func (x *Candidate) GetGroup() string

func (*Candidate) GetImage

func (x *Candidate) GetImage() []byte

func (*Candidate) GetImgName

func (x *Candidate) GetImgName() string

func (*Candidate) GetName

func (x *Candidate) GetName() string

func (*Candidate) GetUrl

func (x *Candidate) GetUrl() string

func (*Candidate) ProtoMessage

func (*Candidate) ProtoMessage()

func (*Candidate) ProtoReflect

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

func (*Candidate) Reset

func (x *Candidate) Reset()

func (*Candidate) String

func (x *Candidate) String() string

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetCandidates

func (x *Config) GetCandidates() []*Candidate

func (*Config) GetHkmAddr

func (x *Config) GetHkmAddr() string

func (*Config) GetIvmAddr

func (x *Config) GetIvmAddr() string

func (*Config) GetLabels

func (x *Config) GetLabels() []string

func (*Config) GetManCid added in v0.3.0

func (x *Config) GetManCid() string

func (*Config) GetParams

func (x *Config) GetParams() *Params

func (*Config) GetPubKey

func (x *Config) GetPubKey() []byte

func (*Config) GetSalt1

func (x *Config) GetSalt1() string

func (*Config) GetSalt2

func (x *Config) GetSalt2() []byte

func (*Config) GetTime

func (x *Config) GetTime() *TimeInfo

func (*Config) GetTitle

func (x *Config) GetTitle() string

func (*Config) GetType

func (x *Config) GetType() int32

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

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

Deprecated: Use KeyPair.ProtoReflect.Descriptor instead.

func (*KeyPair) GetSignKey

func (x *KeyPair) GetSignKey() []byte

func (*KeyPair) GetVerfKey

func (x *KeyPair) GetVerfKey() []byte

func (*KeyPair) ProtoMessage

func (*KeyPair) ProtoMessage()

func (*KeyPair) ProtoReflect

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

func (*KeyPair) Reset

func (x *KeyPair) Reset()

func (*KeyPair) String

func (x *KeyPair) String() string

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetMax

func (x *Params) GetMax() int32

func (*Params) GetMin

func (x *Params) GetMin() int32

func (*Params) GetTotal

func (x *Params) GetTotal() int32

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

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

Deprecated: Use TimeInfo.ProtoReflect.Descriptor instead.

func (*TimeInfo) GetBegin

func (x *TimeInfo) GetBegin() string

func (*TimeInfo) GetEnd

func (x *TimeInfo) GetEnd() string

func (*TimeInfo) GetLoc

func (x *TimeInfo) GetLoc() string

func (*TimeInfo) ProtoMessage

func (*TimeInfo) ProtoMessage()

func (*TimeInfo) ProtoReflect

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

func (*TimeInfo) Reset

func (x *TimeInfo) Reset()

func (*TimeInfo) String

func (x *TimeInfo) String() string

Jump to

Keyboard shortcuts

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