voters

package
v0.0.0-...-8ed6344 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: GPL-3.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleRepository

type RoleRepository interface {
	Roles() ([]entities.Role, []error)
	Role(id uint) (*entities.Role, []error)
	RoleByName(name string) (*entities.Role, []error)
	UpdateRole(role *entities.Role) (*entities.Role, []error)
	DeleteRole(id uint) (*entities.Role, []error)
	StoreRole(role *entities.Role) (*entities.Role, []error)
}

type RoleService

type RoleService interface {
	Roles() ([]entities.Role, []error)
	Role(id uint) (*entities.Role, []error)
	RoleByName(name string) (*entities.Role, []error)
	UpdateRole(role *entities.Role) (*entities.Role, []error)
	DeleteRole(id uint) (*entities.Role, []error)
	StoreRole(role *entities.Role) (*entities.Role, []error)
}

type SessionRepository

type SessionRepository interface {
	Session(sessionID string) (*entities.Session, []error)
	StoreSession(session *entities.Session) (*entities.Session, []error)
	DeleteSession(sessionID string) (*entities.Session, []error)
}

type SessionService

type SessionService interface {
	Session(sessionID string) (*entities.Session, []error)
	StoreSession(session *entities.Session) (*entities.Session, []error)
	DeleteSession(sessionID string) (*entities.Session, []error)
}

type VotersRepository

type VotersRepository interface {
	Voters() ([]entities.Voters, []error)
	Voter(id uint) (*entities.Voters, []error)
	VoterByGID(gid string) (*entities.Voters, []error)
	UpdateVoter(voter *entities.Voters) (*entities.Voters, []error)
	Deletevoter(id uint) (*entities.Voters, []error)
	StoreVoter(voter *entities.Voters) (*entities.Voters, []error)
	PhoneExists(uname string) bool
	GIDExists(gid string) bool
	VoterRoles(voters *entities.Voters) ([]entities.Role, []error)
	Regster4Event(id uint) error
	Vote(pid int, eid int, vid int) []error
	CheckEvent(id uint) (*entities.Events, []error)
	StoreRegVoter(voter *entities.RegVoters) (*entities.RegVoters, []error)
	StoreRegParty(parties *entities.RegParties) (*entities.RegParties, []error)
	GetRegVoters() ([]entities.RegVoters, []error)
	GetRegParites() ([]entities.RegParties, []error)
	Votes() ([]entities.Votes, []error)
	GetRegVotersByID(id int) (*entities.RegVoters, []error)
	GetRegPartyByID(id int) (*entities.Parties, []error)
	GetAlreadyVoted(id int) (*entities.Votes, []error)
}

type VotersService

type VotersService interface {
	Voters() ([]entities.Voters, []error)
	Voter(id uint) (*entities.Voters, []error)
	VoterByGID(gid string) (*entities.Voters, []error)
	UpdateVoter(voter *entities.Voters) (*entities.Voters, []error)
	Deletevoter(id uint) (*entities.Voters, []error)
	StoreVoter(voter *entities.Voters) (*entities.Voters, []error)
	PhoneExists(uname string) bool
	GIDExists(gid string) bool
	VoterRoles(voters *entities.Voters) ([]entities.Role, []error)
	Regster4Event(id uint) error
	Vote(pid int, eid int, vid int) []error
	CheckEvent(id uint) (*entities.Events, []error)
	StoreRegVoter(voter *entities.RegVoters) (*entities.RegVoters, []error)
	StoreRegParty(parties *entities.RegParties) (*entities.RegParties, []error)
	GetRegVoters() ([]entities.RegVoters, []error)
	GetRegParites() ([]entities.RegParties, []error)
	Votes() ([]entities.Votes, []error)
	GetRegVotersByID(id int) (*entities.RegVoters, []error)
	GetRegPartyByID(id int) (*entities.Parties, []error)
	GetAlreadyVoted(id int) (*entities.Votes, []error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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