Versions in this module Expand all Collapse all v0 v0.2.0 Mar 4, 2021 Changes in this version + type CastDCCVote struct + Key uint + Signature string + Token string + TokenVoteBit string + UserID string + VoteBit string + func (CastDCCVote) TableName() string + type DCCUserWeight struct + Key string + Token string + UserID string + Weight int64 + func (DCCUserWeight) TableName() string + type KeyValue struct + Key string + Value []byte + func (KeyValue) TableName() string type Record + TokenPrefix string + type StartDCCVote struct + Duration uint32 + EligibleUserIDs []DCCUserWeight + EndHeight uint32 + Mask uint64 + Options []VoteDCCOption + PassPercentage uint32 + PublicKey string + QuorumPercentage uint32 + Signature string + StartBlockHash string + StartBlockHeight uint32 + Token string + Version uint64 + func (StartDCCVote) TableName() string + type VoteDCCOption struct + Bits uint64 + Description string + ID string + Key uint + Token string + func (VoteDCCOption) TableName() string + type VoteDCCOptionResult struct + Key string + Option VoteDCCOption + OptionKey uint + Token string + Votes uint64 + func (VoteDCCOptionResult) TableName() string + type VoteDCCResults struct + Approved bool + Results []VoteDCCOptionResult + Token string + func (VoteDCCResults) TableName() string v0.1.0 May 7, 2020 Changes in this version + const UserPoliteiad + const UserPoliteiawww + func DisableLog() + func New(user, host, net, rootCert, cert, key string) (*cockroachdb, error) + func UseLogger(logger slog.Logger) + type AuthorizeVote struct + Action string + Key string + PublicKey string + Receipt string + Signature string + Timestamp int64 + Token string + Version uint64 + func (AuthorizeVote) TableName() string + type CastVote struct + Key uint + Signature string + Ticket string + Token string + TokenVoteBit string + VoteBit string + func (CastVote) TableName() string + type Comment struct + Censored bool + Comment string + CommentID string + Key string + ParentID string + PublicKey string + Receipt string + Signature string + Timestamp int64 + Token string + func (Comment) TableName() string + type File struct + Digest string + Key uint + MIME string + Name string + Payload string + RecordKey string + func (File) TableName() string + type LikeComment struct + Action string + CommentID string + Key uint + PublicKey string + Signature string + Token string + func (LikeComment) TableName() string + type MetadataStream struct + ID uint64 + Key uint + Payload string + RecordKey string + func (MetadataStream) TableName() string + type ProposalMetadata struct + LinkBy int64 + LinkTo string + Name string + Token string + type Record struct + Files []File + Key string + Merkle string + Metadata []MetadataStream + Signature string + Status int + Timestamp int64 + Token string + Version uint64 + func (Record) TableName() string + type StartVote struct + Duration uint32 + EligibleTicketCount int + EligibleTickets string + EndHeight uint32 + Mask uint64 + Options []VoteOption + PassPercentage uint32 + ProposalVersion uint32 + PublicKey string + QuorumPercentage uint32 + Signature string + StartBlockHash string + StartBlockHeight uint32 + Token string + Type int + Version uint + func (StartVote) TableName() string + type Version struct + ID string + Timestamp int64 + Version string + func (Version) TableName() string + type VoteOption struct + Bits uint64 + Description string + ID string + Key uint + Token string + func (VoteOption) TableName() string + type VoteOptionResult struct + Key string + Option VoteOption + OptionKey uint + Token string + Votes uint64 + func (VoteOptionResult) TableName() string + type VoteResults struct + Approved bool + Results []VoteOptionResult + Token string + func (VoteResults) TableName() string