Documentation ¶
Index ¶
- func Disconnect()
- func GetAllMayorNames() ([]string, error)
- func GetCurrentElectionPeriod() (*model.ElectionPeriod, error)
- func GetElectionPeriodByYear(year int) (*model.ElectionPeriod, error)
- func GetElectionPeriodsByTimespan(from int64, to int64) ([]*model.ElectionPeriod, error)
- func GetLastVoting() (*model.Voting, error)
- func GetPreviouslyElectedMayor() (*model.Candidate, error)
- func Init() error
- func InsertElectionPeriod(electionPeriod *model.ElectionPeriod) error
- func InsertElectionPeriods(electionPeriods []*model.ElectionPeriod) error
- func InsertVoting(voting *model.Voting) error
- func UpdateElectionPeriod(electionPeriod *model.ElectionPeriod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Disconnect ¶
func Disconnect()
func GetAllMayorNames ¶
func GetCurrentElectionPeriod ¶
func GetCurrentElectionPeriod() (*model.ElectionPeriod, error)
func GetElectionPeriodByYear ¶
func GetElectionPeriodByYear(year int) (*model.ElectionPeriod, error)
func GetElectionPeriodsByTimespan ¶
func GetElectionPeriodsByTimespan(from int64, to int64) ([]*model.ElectionPeriod, error)
func GetLastVoting ¶
func InsertElectionPeriod ¶
func InsertElectionPeriod(electionPeriod *model.ElectionPeriod) error
func InsertElectionPeriods ¶
func InsertElectionPeriods(electionPeriods []*model.ElectionPeriod) error
func InsertVoting ¶
func UpdateElectionPeriod ¶
func UpdateElectionPeriod(electionPeriod *model.ElectionPeriod) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.