Documentation ¶ Index ¶ Constants func InitVoteSystem(voteChannel <-chan models.Vote, server *models.Server) type VoteInfo type VoteSystem Constants ¶ View Source const ( SECONDS_PER_VOTE = 20 ) Variables ¶ This section is empty. Functions ¶ func InitVoteSystem ¶ func InitVoteSystem(voteChannel <-chan models.Vote, server *models.Server) Types ¶ type VoteInfo ¶ type VoteInfo struct { // contains filtered or unexported fields } type VoteSystem ¶ type VoteSystem struct { // Mutex needed ? CanVote bool Cancel bool VoteYes map[string]int // use of map cause golang has no set VoteNo map[string]int // use of map cause golang has no set } Source Files ¶ View all Source files vote.go vote_map.go Directories ¶ Show internal Expand all Path Synopsis votes_list Click to show internal directories. Click to hide internal directories.