Documentation
¶
Index ¶
- func About(db *sql.DB) gin.HandlerFunc
- func BootstrapContext(app *firebase.App, db *sql.DB, bggCache *background.GameCache) gin.HandlerFunc
- func CategoryList(db *sql.DB) func(c *gin.Context)
- func GenconEndDate(year int) string
- func GenconStartDate(year int) string
- func GetStarredEventGroups(db *sql.DB) func(c *gin.Context)
- func GetStarredEvents(db *sql.DB) func(c *gin.Context)
- func GetTemplateFunctions(cache *background.GameCache) template.FuncMap
- func KeyByBggYear(g *postgres.EventGroup, context *Context) (majorGroup, minorGroup string)
- func KeyByCategoryOrg(g *postgres.EventGroup, context *Context) (majorGroup, minorGroup string)
- func KeyByCategorySystem(g *postgres.EventGroup, context *Context) (majorGroup, minorGroup string)
- func MergeOrgs(db *sql.DB) gin.HandlerFunc
- func NewParty(db *sql.DB) func(c *gin.Context)
- func PartitionGroups(groups []*postgres.EventGroup, context *Context, params QueryParams) ([]string, map[string][]string, map[string]map[string][]*postgres.EventGroup)
- func Party(db *sql.DB) func(c *gin.Context)
- func Search(db *sql.DB) func(c *gin.Context)
- func StarEvent(db *sql.DB) func(c *gin.Context)
- func StarredPage(db *sql.DB) func(c *gin.Context)
- func User(db *sql.DB) gin.HandlerFunc
- func UserNameChange(db *sql.DB) gin.HandlerFunc
- func ViewCategory(db *sql.DB) func(c *gin.Context)
- func ViewEvent(db *sql.DB) gin.HandlerFunc
- func ViewOrgs(db *sql.DB) gin.HandlerFunc
- type Context
- type EventKeyFunc
- type FirebaseConfig
- type LookupResult
- type QueryParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapContext ¶
func BootstrapContext(app *firebase.App, db *sql.DB, bggCache *background.GameCache) gin.HandlerFunc
func GenconEndDate ¶
func GenconStartDate ¶
func GetTemplateFunctions ¶
func GetTemplateFunctions(cache *background.GameCache) template.FuncMap
func KeyByBggYear ¶
func KeyByBggYear(g *postgres.EventGroup, context *Context) (majorGroup, minorGroup string)
func KeyByCategoryOrg ¶
func KeyByCategoryOrg(g *postgres.EventGroup, context *Context) (majorGroup, minorGroup string)
func KeyByCategorySystem ¶
func KeyByCategorySystem(g *postgres.EventGroup, context *Context) (majorGroup, minorGroup string)
func PartitionGroups ¶
func PartitionGroups( groups []*postgres.EventGroup, context *Context, params QueryParams, ) ([]string, map[string][]string, map[string]map[string][]*postgres.EventGroup)
func UserNameChange ¶
func UserNameChange(db *sql.DB) gin.HandlerFunc
Types ¶
type Context ¶
type Context struct {
Year int
DisplayName string
Email string
Starred *postgres.UserStarredEvents
User *postgres.User
Firebase FirebaseConfig
BggCache *background.GameCache
}
type EventKeyFunc ¶
type EventKeyFunc func(*postgres.EventGroup, *Context) (string, string)
type FirebaseConfig ¶
type LookupResult ¶
type LookupResult struct {
MainEvent *events.GenconEvent
EventsPerDay map[string][]*events.GenconEvent
TotalTickets int
}
Click to show internal directories.
Click to hide internal directories.