pvl

package
v0.0.0-...-bf87dab Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pvl grabs Ponyville Live data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calendar

type Calendar struct {
	Result []struct {
		Body       interface{} `json:"body"`
		EndTime    int64       `json:"end_time"`
		Guid       string      `json:"guid"`
		ID         float64     `json:"id"`
		ImageURL   string      `json:"image_url"`
		IsAllDay   bool        `json:"is_all_day"`
		IsPromoted bool        `json:"is_promoted"`
		Location   interface{} `json:"location"`
		Range      string      `json:"range"`
		StartTime  int64       `json:"start_time"`
		StationID  int64       `json:"station_id"`
		Title      string      `json:"title"`
		WebURL     string      `json:"web_url"`
	} `json:"result"`
	Status string `json:"status"`
}

func Get

func Get() (Calendar, error)

Get grabs the station schedule from Ponyville Live.

type Wrapper

type Wrapper struct {
	Age  time.Time
	Info Calendar
}

Jump to

Keyboard shortcuts

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