tm_poznan

package
v0.0.0-...-54a4899 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch() *feeds.Feed

func Serve

func Serve(w http.ResponseWriter, r *http.Request)

Types

type Callendar

type Callendar struct {
	Data []CallendarDatum `json:"data"`
}

type CallendarDatum

type CallendarDatum struct {
	Type       PurpleType       `json:"type"`
	ID         int64            `json:"id"`
	Attributes FluffyAttributes `json:"attributes"`
}

type DatumDatum

type DatumDatum struct {
	Type          FluffyType       `json:"type"`
	ID            int64            `json:"id"`
	Attributes    PurpleAttributes `json:"attributes"`
	Relationships Relationships    `json:"relationships"`
	Links         DatumLinks       `json:"links"`
}
type DatumLinks struct {
	Slug string `json:"slug"`
}

type DatumValue

type DatumValue struct {
	Data []DatumDatum `json:"data"`
}

type FluffyAttributes

type FluffyAttributes struct {
	ShowsID     int64   `json:"shows_id"`
	Publication string  `json:"publication"`
	Bilety24URL string  `json:"bilety24_url"`
	TagsTitle   *string `json:"tags_title"`
}

type FluffyType

type FluffyType string
const (
	Shows FluffyType = "shows"
)

type Location

type Location string
const (
	Away  Location = "away"
	Guest Location = "guest"
	Own   Location = "own"
)

type Meta

type Meta struct {
	CurrentPage int64  `json:"current_page"`
	From        int64  `json:"from"`
	LastPage    int64  `json:"last_page"`
	Path        string `json:"path"`
	PerPage     string `json:"per_page"`
	To          int64  `json:"to"`
	Total       int64  `json:"total"`
}

type PurpleAttributes

type PurpleAttributes struct {
	TypesID         int64    `json:"types_id"`
	GenresID        int64    `json:"genres_id"`
	Archive         int64    `json:"archive"`
	Position        int64    `json:"position"`
	Bilety24URL     string   `json:"bilety24_url"`
	ImgURL          string   `json:"img_url"`
	Img2URL         string   `json:"img2_url"`
	PosterURL       string   `json:"poster_url"`
	Title           string   `json:"title"`
	Excerpt         string   `json:"excerpt"`
	ReleaseDate     *string  `json:"release_date"`
	AgeRestrictions *string  `json:"age_restrictions"`
	Duration        *string  `json:"duration"`
	Location        Location `json:"location"`
}

type PurpleType

type PurpleType string
const (
	ShowsCallendar PurpleType = "shows_callendar"
)

type Relationships

type Relationships struct {
	Callendar Callendar `json:"callendar"`
}

type Welcome

type Welcome struct {
	Data  map[string]DatumValue `json:"data"`
	Links WelcomeLinks          `json:"links"`
	Meta  Meta                  `json:"meta"`
}
type WelcomeLinks struct {
	First string      `json:"first"`
	Last  string      `json:"last"`
	Prev  interface{} `json:"prev"`
	Next  interface{} `json:"next"`
}

Jump to

Keyboard shortcuts

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