model

package
v0.8.14 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickCounterResponse

type ClickCounterResponse struct {
	Ok          string `json:"ok"`
	Message     string `json:"message"`
	Stationuuid string `json:"stationuuid"`
	Name        string `json:"name"`
	URL         string `json:"url"`
}

type Country

type Country struct {
	Name         string `json:"name"`
	ISO3166_1    string `json:"iso_3166_1"`
	Stationcount int    `json:"stationcount"`
}

type Language

type Language struct {
	Name         string `json:"name"`
	ISO639       string `json:"iso_639"`
	Stationcount int    `json:"stationcount"`
}

type ServerMirror

type ServerMirror struct {
	IP   string `json:"ip"`
	Name string `json:"name"`
}

type Station

type Station struct {
	Stationuuid string `json:"stationuuid"` // A globally unique identifier for the station
	Name        string `json:"name"`        // 	The name of the station
	URL         string `json:"url"`         // The stream URL provided by the user
	// An automatically "resolved" stream URL. Things resolved are playlists (M3U/PLS/ASX...), HTTP redirects (Code 301/302).
	// This link is especially usefull if you use this API from a platform that is not able to do a resolve on its own (e.g. JavaScript in browser)
	// or you just don't want to invest the time in decoding playlists yourself.
	Homepage        string      `json:"homepage"`    // URL to the homepage of the stream, so you can direct the user to a page with more information about the stream.
	Tags            string      `json:"tags"`        // Tags of the stream with more information about it
	Country         string      `json:"country"`     //  	DEPRECATED: use countrycode instead, full name of the country. Currently it is autogenerated from the countrycode.
	Countrycode     string      `json:"countrycode"` // Official countrycodes as in ISO 3166-1 alpha-2
	State           string      `json:"state"`
	Language        string      `json:"language"` // string, multivalue, split by comma 	Languages that are spoken in this stream.
	Votes           int64       `json:"votes"`    // Number of votes for this station. This number is by server and only ever increases. It will never be reset to 0.
	Codec           string      `json:"codec"`
	Bitrate         int64       `json:"bitrate"`
	Lastcheckoktime string      `json:"lastcheckoktime"`
	Clickcount      int64       `json:"clickcount"`
	Clicktrend      int64       `json:"clicktrend"`
	GeoLat          interface{} `json:"geo_lat"`
	GeoLong         interface{} `json:"geo_long"`

	IsCustom bool `json:"-"`
}

func (Station) Description

func (s Station) Description() string

func (Station) FilterValue

func (s Station) FilterValue() string

func (Station) Title

func (s Station) Title() string

type StationTag

type StationTag struct {
	Name         string `json:"name"`
	Stationcount string `json:"stationcount"`
}

Jump to

Keyboard shortcuts

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