events

package
v0.0.0-...-d40b2c6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllCategories

func AllCategories() map[string]string

func CategoryFromEvent

func CategoryFromEvent(rawEventId string) string

func LongCategory

func LongCategory(shortCategory string) string

func PartitionEventsByCategory

func PartitionEventsByCategory(loadedEvents []*GenconEvent) map[string][]*GenconEvent

func PartitionEventsByDay

func PartitionEventsByDay(loadedEvents []*GenconEvent) map[string][]*GenconEvent

func YearFromEvent

func YearFromEvent(rawEventId string) int

Types

type GenconEvent

type GenconEvent struct {
	EventId              string
	Year                 int
	Active               bool
	Group                string
	Title                string
	ShortDescription     string
	LongDescription      string
	EventType            string
	GameSystem           string
	RulesEdition         string
	MinPlayers           int
	MaxPlayers           int
	AgeRequired          string
	ExperienceRequired   string
	MaterialsProvided    bool
	StartTime            time.Time
	Duration             int
	EndTime              time.Time
	GMNames              string
	Website              string
	Email                string
	Tournament           bool
	RoundNumber          int
	TotalRounds          int
	MinPlayTime          int
	AttendeeRegistration string
	Cost                 int
	Location             string
	RoomName             string
	TableNumber          string
	SpecialCategory      string
	TicketsAvailable     int
	LastModified         time.Time
	ShortCategory        string
	IsStarred            bool
	OrgId                int64
}

func NormalizeEvent

func NormalizeEvent(event *GenconEvent) *GenconEvent

func ParseGenconCsv

func ParseGenconCsv(rawBytes []byte) []*GenconEvent

func ParseGenconSheet

func ParseGenconSheet(rawBytes []byte) []*GenconEvent
func (e *GenconEvent) GenconLink() string

func (*GenconEvent) IsoEndTime

func (event *GenconEvent) IsoEndTime() string

func (*GenconEvent) IsoStartTime

func (event *GenconEvent) IsoStartTime() string
func (e *GenconEvent) PlannerLink() string

func (*GenconEvent) SlimEvent

func (e *GenconEvent) SlimEvent() *SlimEvent

type SlimEvent

type SlimEvent struct {
	EventId          string
	StartTime        time.Time
	Duration         int
	EndTime          time.Time
	Location         string
	RoomName         string
	TableNumber      string
	TicketsAvailable int
	IsStarred        bool
}

Jump to

Keyboard shortcuts

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