tmrlweb

package
v0.0.0-...-d2adc2b Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DayNameMap = map[string]string{
	"2024-07-19": "WEEK 1 | FRI 19 JUL",
	"2024-07-20": "WEEK 1 | SAT 20 JUL",
	"2024-07-21": "WEEK 1 | SUN 21 JUL",
	"2024-07-26": "WEEK 2 | FRI 26 JUL",
	"2024-07-27": "WEEK 2 | SAT 27 JUL",
	"2024-07-28": "WEEK 2 | SUN 28 JUL",
}

Functions

func CurrentlyPLaying

func CurrentlyPLaying(p Performance) bool

func GetLiveStreams

func GetLiveStreams(YTList *[]YTVideo)

func GetStages

func GetStages(date string) map[string][]Performance

func GetTimetableImage

func GetTimetableImage(date string) (*bytes.Reader, error)

func LoadPerformances

func LoadPerformances() error

Types

type Date

type Date struct {
	time.Time
}

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(b []byte) (err error)

type Performance

type Performance struct {
	ArtistName string `json:"name,omitempty"`
	Stage      struct {
		Name string `json:"name,omitempty"`
	} `json:"stage,omitempty"`
	Date      string `json:"date,omitempty"`
	Day       string `json:"day,omitempty"`
	StartTime Date   `json:"startTime,omitempty"`
	EndTime   Date   `json:"endTime,omitempty"`
}

func GetPerformances

func GetPerformances(date string, stage string) []Performance

type YTVideo

type YTVideo struct {
	ID           string `json:"id,omitempty"`
	Title        string `json:"fulltitle,omitempty"`
	ThumbnailURL string `json:"thumbnail,omitempty"`
	ChannelTitle string `json:"channel,omitempty"`
	ChannelURL   string `json:"channel_url,omitempty"`
	URL          string `json:"original_url,omitempty"`
	ManifestURL  string `json:"url,omitempty"`
	Live         bool   `json:"is_live,omitempty"`
}

Jump to

Keyboard shortcuts

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