config

package
v0.0.0-...-58c1c1a Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VotingNotYetStarted = iota
	AcceptingVotes
	VotingStopped
	ResultsAvailable
)

Possible Election States

View Source
const (
	KeysNotGenerated = iota
	KeysGenerated
	KeysDeclared
)

Possible states for a candidate

Variables

View Source
var (
	ElectionState        int
	ElectionName         string
	MailSenderAuthID     string
	MailSenderEmailID    string
	MailSenderPassword   string
	MailSignature        string
	MailSMTPHost         string
	MailSMTPPort         string
	MailSuffix           string
	MongoDialURL         string
	MongoDbName          string
	MongoUsername        string
	MongoPassword        string
	AssetsPath           string
	BallotIDsPath        string
	ElectionDataFilePath string
	ApplicationPort      string
	SessionsKey          string
	MaxTimeDelay         int
	RollNumberOfCEO      string
	PublicKeyOfCEO       string
	PrivateKeyOfCEO      string
	ResultProgress       float64
)

Global variables used by the program

Functions

func InitializeConfiguration

func InitializeConfiguration()

Method to read the values of the global variables from environment variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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