vote

package
v0.0.0-...-2102788 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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