controllers

package
v0.0.0-...-60c1827 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// {{{
	Q_BINGO_LIST = `` /* 164-byte string literal not displayed */

	Q_BINGO_COUNTIES = `` /* 197-byte string literal not displayed */

)
View Source
const (
	// SQL queries {{{
	Q_HBS = `` /* 176-byte string literal not displayed */

	Q_HBC = `` /* 155-byte string literal not displayed */

	Q_BILL = `` /* 150-byte string literal not displayed */

	Q_HIT_BY_ID = `` /* 195-byte string literal not displayed */

	Q_BREAKDOWN_US = `` /* 210-byte string literal not displayed */

	Q_BREAKDOWN_CA = `` /* 151-byte string literal not displayed */

	Q_BREAKDOWN_OTHER = `` /* 170-byte string literal not displayed */

	Q_REGION_BREAKDOWN_US = `` /* 214-byte string literal not displayed */

	Q_REGION_BREAKDOWN_INTL = `` /* 152-byte string literal not displayed */

	S_INSERT_BILL = `insert into bills (serial, series, denomination, rptkey, residence)values($1, $2, $3, $4, $5)`
	S_INSERT_HIT  = `insert into hits (bill_id, country, state, county%s, city, zip, entdate) values ($1, $2, $3, $4, $5, $6, $7%s)`
	S_UPDATE_HIT  = `update hits set country=$1, state=$2, county=$3, county_id=$4, city=$5, zip=$6, entdate=$7 where id=$8`

	START_YEAR = 2003
)
View Source
const (
	ERR_NO_USER       = "No username specified"
	ERR_NO_PASS       = "No password specified"
	ERR_BAD_USER_PASS = "You supplied an incorrect username and/or password."
	ERR_SYSTEM_ERROR  = "A system error occurred when trying to validate your credentials."
)
View Source
const (
	DATE_LIST_YEAR   = 2000
	DATE_LIST_LAYOUT = `2006-01-02`
)
View Source
const SQL_BILL_BY_ID = `select id, serial, series, denomination, rptkey, residence from bills where id=$1`

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(c *revel.Controller) revel.Result

Types

type App

type App struct {
	*revel.Controller
}

func (App) Index

func (c App) Index() revel.Result

type Bills

type Bills struct {
	*revel.Controller
}

func (Bills) Edit

func (c Bills) Edit() revel.Result

func (Bills) Update

func (c Bills) Update() revel.Result

type Bingos

type Bingos struct {
	*revel.Controller
}

func (Bingos) Create

func (c Bingos) Create() revel.Result

func (Bingos) Edit

func (c Bingos) Edit() revel.Result

func (Bingos) Index

func (c Bingos) Index() revel.Result

func (Bingos) New

func (c Bingos) New() revel.Result

func (Bingos) Show

func (c Bingos) Show() revel.Result

func (Bingos) Update

func (c Bingos) Update(id int) revel.Result

type Charts

type Charts struct {
	*revel.Controller
}

func (Charts) Grapher

func (c Charts) Grapher(mapName string) revel.Result

type Entries

type Entries struct {
	*revel.Controller
}

func (Entries) Edit

func (c Entries) Edit() revel.Result

func (Entries) GetEntryByKey

func (c Entries) GetEntryByKey(key string) revel.Result

func (Entries) Update

func (c Entries) Update() revel.Result

type Hits

type Hits struct {
	*revel.Controller
}

func (Hits) Breakdown

func (c Hits) Breakdown() revel.Result

func (Hits) Create

func (c Hits) Create() revel.Result

func (Hits) Edit

func (c Hits) Edit() revel.Result

func (Hits) Index

func (c Hits) Index() revel.Result

func (Hits) New

func (c Hits) New() revel.Result

func (Hits) ShowBrk

func (c Hits) ShowBrk() revel.Result

func (Hits) Update

func (c Hits) Update() revel.Result

type Login

type Login struct {
	*revel.Controller
}

func (Login) Index

func (c Login) Index() revel.Result

func (Login) Login

func (c Login) Login() revel.Result

func (Login) Logout

func (c Login) Logout() revel.Result

type Reports

type Reports struct {
	*revel.Controller
}

func (Reports) FirstHits

func (c Reports) FirstHits() revel.Result

func (Reports) HitsCalendar

func (c Reports) HitsCalendar() revel.Result

func (Reports) Index

func (c Reports) Index() revel.Result

func (Reports) Last50Counts

func (c Reports) Last50Counts() revel.Result

func (Reports) MasterStats

func (c Reports) MasterStats() revel.Result

func (Reports) TopCounties

func (c Reports) TopCounties() revel.Result

type Settings

type Settings struct {
	*revel.Controller
}

func (Settings) Index

func (c Settings) Index() revel.Result

type Util

type Util struct {
	*revel.Controller
}

func (Util) GetCounties

func (c Util) GetCounties() revel.Result

func (Util) GetCurrentResidence

func (c Util) GetCurrentResidence() revel.Result

func (Util) GetFirstHits

func (c Util) GetFirstHits() revel.Result

func (Util) GetHitById

func (c Util) GetHitById() revel.Result

func (Util) GetHomeCounty

func (c Util) GetHomeCounty() revel.Result

func (Util) GetHomeState

func (c Util) GetHomeState() revel.Result

func (Util) GetResidences

func (c Util) GetResidences() revel.Result

func (Util) GetStateCountyCityFromZIP

func (c Util) GetStateCountyCityFromZIP() revel.Result

func (Util) GetStatesProvinces

func (c Util) GetStatesProvinces() revel.Result

func (Util) SetTimeZone

func (c Util) SetTimeZone() revel.Result

Jump to

Keyboard shortcuts

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