lib

package
v0.0.0-...-6ab5b1c Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCalendar

func GenerateCalendar(w io.Writer, scheduleURL string)

GenerateCalendar generates the iCalendar file into w

func LogRequest

func LogRequest(addr, path string)

LogRequest logs the request to a Discord webhook, if present

Types

type Game

type Game struct {
	StartTime time.Time
	Game      string
	Runners   string
	Duration  time.Duration
	Category  string
	Host      string
}

Game represents a GDQ schedule block

func ParseGame

func ParseGame(firstRow *html.Node) (*Game, error)

func (*Game) WriteIcalEvent

func (g *Game) WriteIcalEvent(w io.Writer)

WriteIcalEvent writes an iCalendar event for a game into w.

Jump to

Keyboard shortcuts

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