Versions in this module Expand all Collapse all v1 v1.0.0 Jan 9, 2019 Changes in this version + const CmdAuthorizeVote + const CmdBallot + const CmdBestBlock + const CmdCensorComment + const CmdGetComments + const CmdLikeComment + const CmdNewComment + const CmdProposalCommentsLikes + const CmdProposalVotes + const CmdStartVote + const ID + const MDStreamAuthorizeVote + const MDStreamVoteBits + const MDStreamVoteSnapshot + const Version + const VersionAuthorizeVote + const VersionStartVote + const VersionStartVoteReply + const VoteDurationMax + const VoteDurationMin + func EncodeAuthorizeVote(av AuthorizeVote) ([]byte, error) + func EncodeAuthorizeVoteReply(avr AuthorizeVoteReply) ([]byte, error) + func EncodeBallot(b Ballot) ([]byte, error) + func EncodeBallotReply(br BallotReply) ([]byte, error) + func EncodeCastVoteReply(cvr CastVoteReply) ([]byte, error) + func EncodeCensorComment(cc CensorComment) ([]byte, error) + func EncodeCensorCommentReply(ccr CensorCommentReply) ([]byte, error) + func EncodeComment(c Comment) ([]byte, error) + func EncodeGetComments(gc GetComments) ([]byte, error) + func EncodeGetCommentsReply(gcr GetCommentsReply) ([]byte, error) + func EncodeGetProposalCommentsLikes(gpcv GetProposalCommentsLikes) ([]byte, error) + func EncodeGetProposalCommentsLikesReply(gpclr GetProposalCommentsLikesReply) ([]byte, error) + func EncodeLikeComment(lc LikeComment) ([]byte, error) + func EncodeLikeCommentReply(lcr LikeCommentReply) ([]byte, error) + func EncodeNewComment(nc NewComment) ([]byte, error) + func EncodeNewCommentReply(ncr NewCommentReply) ([]byte, error) + func EncodeStartVote(v StartVote) ([]byte, error) + func EncodeStartVoteReply(v StartVoteReply) ([]byte, error) + func EncodeVote(v Vote) ([]byte, error) + func EncodeVoteResults(v VoteResults) ([]byte, error) + func EncodeVoteResultsReply(v VoteResultsReply) ([]byte, error) + type AuthorizeVote struct + Action string + PublicKey string + Receipt string + Signature string + Timestamp int64 + Token string + Version uint + func DecodeAuthorizeVote(payload []byte) (*AuthorizeVote, error) + type AuthorizeVoteReply struct + Action string + Receipt string + func DecodeAuthorizeVoteReply(payload []byte) (*AuthorizeVoteReply, error) + type Ballot struct + Votes []CastVote + func DecodeBallot(payload []byte) (*Ballot, error) + type BallotReply struct + Receipts []CastVoteReply + func DecodeBallotReply(payload []byte) (*BallotReply, error) + type CastVote struct + Signature string + Ticket string + Token string + VoteBit string + type CastVoteReply struct + ClientSignature string + Error string + Signature string + func DecodeCastVoteReply(payload []byte) (*CastVoteReply, error) + type CensorComment struct + CommentID string + PublicKey string + Reason string + Receipt string + Signature string + Timestamp int64 + Token string + func DecodeCensorComment(payload []byte) (*CensorComment, error) + type CensorCommentReply struct + Receipt string + func DecodeCensorCommentReply(payload []byte) (*CensorCommentReply, error) + type Comment struct + Censored bool + Comment string + CommentID string + ParentID string + PublicKey string + Receipt string + ResultVotes int64 + Signature string + Timestamp int64 + Token string + TotalVotes uint64 + func DecodeComment(payload []byte) (*Comment, error) + type GetComments struct + Token string + func DecodeGetComments(payload []byte) (*GetComments, error) + type GetCommentsReply struct + Comments []Comment + func DecodeGetCommentsReply(payload []byte) (*GetCommentsReply, error) + type GetProposalCommentsLikes struct + Token string + func DecodeGetProposalCommentsLikes(payload []byte) (*GetProposalCommentsLikes, error) + type GetProposalCommentsLikesReply struct + CommentsLikes []LikeComment + func DecodeGetProposalCommentsLikesReply(payload []byte) (*GetProposalCommentsLikesReply, error) + type LikeComment struct + Action string + CommentID string + PublicKey string + Receipt string + Signature string + Timestamp int64 + Token string + func DecodeLikeComment(payload []byte) (*LikeComment, error) + type LikeCommentReply struct + Error string + Receipt string + Result int64 + Total uint64 + func DecodeLikeCommentReply(payload []byte) (*LikeCommentReply, error) + type NewComment struct + Comment string + ParentID string + PublicKey string + Signature string + Token string + func DecodeNewComment(payload []byte) (*NewComment, error) + type NewCommentReply struct + Comment Comment + func DecodeNewCommentReply(payload []byte) (*NewCommentReply, error) + type StartVote struct + PublicKey string + Signature string + Version uint + Vote Vote + func DecodeStartVote(payload []byte) (*StartVote, error) + type StartVoteReply struct + EligibleTickets []string + EndHeight string + StartBlockHash string + StartBlockHeight string + Version uint + func DecodeStartVoteReply(payload []byte) (*StartVoteReply, error) + type Vote struct + Duration uint32 + Mask uint64 + Options []VoteOption + PassPercentage uint32 + QuorumPercentage uint32 + Token string + func DecodeVote(payload []byte) (*Vote, error) + type VoteOption struct + Bits uint64 + Description string + Id string + type VoteResults struct + Token string + func DecodeVoteResults(payload []byte) (*VoteResults, error) + type VoteResultsReply struct + CastVotes []CastVote + StartVote StartVote + func DecodeVoteResultsReply(payload []byte) (*VoteResultsReply, error)