Documentation ¶
Index ¶
- func AuthenticateMailer()
- func CreateCaptcha() (string, string)
- func EndSession(c *gin.Context)
- func ExportBallotIdsToFile(ballotIds []string, fileName string) error
- func ExportSingleVoteBallotIdsToFile(ballotIds []models.UsedSingleVoteBallotID, fileName string) error
- func GenerateMail(recipient *models.MailRecipient, role string) string
- func GetRandomAuthCode() string
- func GetRandomTimeDelay() time.Duration
- func GetSessionID(c *gin.Context) (string, error)
- func InitializeRandomSeed()
- func SendMailTo(recipient *models.MailRecipient, role string) error
- func StartSession(c *gin.Context)
- func VerifyCaptcha(id, value string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateMailer ¶
func AuthenticateMailer()
func CreateCaptcha ¶
func EndSession ¶
This function deletes the data store about the user from the session storage.
func ExportBallotIdsToFile ¶
func ExportSingleVoteBallotIdsToFile ¶
func ExportSingleVoteBallotIdsToFile(ballotIds []models.UsedSingleVoteBallotID, fileName string) error
func GenerateMail ¶
func GenerateMail(recipient *models.MailRecipient, role string) string
Returns a string that represents the mail contents.
func GetRandomAuthCode ¶
func GetRandomAuthCode() string
Function to return a random string to be used as authentication code.
func GetRandomTimeDelay ¶
Function to get a random time delay after which the vote will be added to the database.
func GetSessionID ¶
This function returns the identification of the logged in user.
func InitializeRandomSeed ¶
func InitializeRandomSeed()
func SendMailTo ¶
func SendMailTo(recipient *models.MailRecipient, role string) error
func StartSession ¶
This function stores the identification of the logged in user in the encrypted cookie-based session storage.
func VerifyCaptcha ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.