mongo

package
v0.0.0-...-658978e Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disconnect

func Disconnect()

func GetAllMayorNames

func GetAllMayorNames() ([]string, error)

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 GetLastVoting() (*model.Voting, error)

func GetPreviouslyElectedMayor

func GetPreviouslyElectedMayor() (*model.Candidate, error)

func Init

func Init() error

func InsertElectionPeriod

func InsertElectionPeriod(electionPeriod *model.ElectionPeriod) error

func InsertElectionPeriods

func InsertElectionPeriods(electionPeriods []*model.ElectionPeriod) error

func InsertVoting

func InsertVoting(voting *model.Voting) error

func UpdateElectionPeriod

func UpdateElectionPeriod(electionPeriod *model.ElectionPeriod) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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