Documentation
¶
Index ¶
- Constants
- func CalculateResult()
- func GetAllUsers() ([]interface{}, error)
- func GetJedi() (interface{}, error)
- func GetSith() (interface{}, error)
- func GetVotes() (interface{}, error)
- func StoreCandidate(ca Candidate)
- func StoreUser(opt UserOption) (interface{}, error)
- func StoreVote(cid string) (interface{}, error)
- type Candidate
- type User
- type UserOption
- type VoteResult
Constants ¶
View Source
const (
INCR = 1
)
Variables ¶
This section is empty.
Functions ¶
func CalculateResult ¶
func CalculateResult()
func GetAllUsers ¶
func GetAllUsers() ([]interface{}, error)
func StoreCandidate ¶
func StoreCandidate(ca Candidate)
func StoreUser ¶
func StoreUser(opt UserOption) (interface{}, error)
Types ¶
type Candidate ¶
type Candidate struct { Id int `redis:"Id"` Name string `redis:"Name"` Description string `redis:"Description` Timestamp string `redis:"Timestamp"` }
func GetAllCandidates ¶
func GetCandidateById ¶
type UserOption ¶
Click to show internal directories.
Click to hide internal directories.