Documentation
¶
Overview ¶
Package tracklog persists live-radio title changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
// PlayedAt is when the metadata first became current.
PlayedAt time.Time `json:"played_at"`
// Station is the station display name.
Station string `json:"station"`
// StationURL is the original station address.
StationURL string `json:"station_url"`
// Artist is the parsed artist when one was supplied.
Artist string `json:"artist,omitempty"`
// Title is the parsed song or program title.
Title string `json:"title"`
// Raw is the exact sanitized stream title.
Raw string `json:"raw"`
// Artwork is the station image URL when available.
Artwork string `json:"artwork,omitempty"`
}
Entry is one observed radio title transition.
type Store ¶
type Store struct {
// Path is the JSON history location.
Path string
// contains filtered or unexported fields
}
Store serializes the bounded track log.
func DefaultStore ¶
func DefaultStore() *Store
DefaultStore uses the user's standard configuration directory.
Click to show internal directories.
Click to hide internal directories.