radio

package
v0.0.0-...-863df89 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintStatus

func PrintStatus() error

func StreamURL

func StreamURL() string

Types

type DJ

type DJ struct {
	ID   int    `json:"id"`
	Name string `json:"djname"`
}

type Position

type Position struct {
	Ok          bool
	Start       time.Time
	End         time.Time
	Now         time.Time
	Len         time.Duration
	Current     time.Duration
	CurrentPerc float64
}

type QItem

type QItem struct {
	Meta      string `json:"meta"`
	Time      string `json:"-"`
	Timestamp int64  `json:"timestamp"`
}

type Result

type Result struct {
	Status Status `json:"main"`
}

type Status

type Status struct {
	NowPlaying string `json:"np"`
	Listeners  int    `json:"listeners"`
	IsAfk      bool   `json:"isafkstream"`
	CurrentPos int64  `json:"current"`
	StartPos   int64  `json:"start_time"`
	EndPos     int64  `json:"end_time"`
	Pos        Position
	Dj         DJ      `json:"dj"`
	Queue      []QItem `json:"queue"`
	LastPlayed []QItem `json:"lp"`
}

Jump to

Keyboard shortcuts

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