eventService

package
v0.0.0-...-bf229e6 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Name            string
	Description     string
	Location        string
	URL             string
	ImageURL        string
	AttendingCount  int
	InterestedCount int
	StartTime       time.Time
	EndTime         time.Time
}

An Event represents a HackSoc event.

func (*Event) GetInterestLine

func (e *Event) GetInterestLine() string

func (*Event) GetShortDate

func (e *Event) GetShortDate() string

type EventGroup

type EventGroup struct {
	Ongoing  []*Event
	Upcoming []*Event
	Past     []*Event
}

func GroupEvents

func GroupEvents() (*EventGroup, error)

GroupEvents groups the events by 'right now', 'upcoming', and 'past'

Jump to

Keyboard shortcuts

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