Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reminder ¶
type Reminder struct { gorm.Model ReminderID int `json:"reminder_id"` VoteID int `json:"vote_id"` Vote Vote }
Reminder - model that represents remiders fot vote.
func CreateReminder ¶
CreateReminder - creates new reminder for passed voteID.
func GetReminderByVoteID ¶
GetReminderByVoteID - retrieves Reminder for passed voteID.
type Vote ¶
type Vote struct { gorm.Model VoteID int `json:"vote_id"` UserID int `json:"user_id"` VoterName string `json:"voter_name"` FirstName string `json:"voter_first_name"` LastName string `json:"voter_last_name"` PressedBtn string `json:"pressed_btn"` }
Vote - model for user collection.
func GetVotesByVoteID ¶
GetVotesByVoteID - return votes by vote id.
type VoteResult ¶
VoteResult - represent vote results by vote id.
func GetVoteResult ¶
func GetVoteResult(voteID int) []VoteResult
GetVoteResult - return votes count for vote id.
Click to show internal directories.
Click to hide internal directories.