radio

package
v0.0.0-...-6cdaf0f Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Radio

type Radio struct {
	Port       int
	Folder     string
	Seek       int64
	Uptime     int64
	Buffer     []byte
	TrackOnAir string
	Playlist   []model.Track
	// contains filtered or unexported fields
}

func (*Radio) GeneratePlaylist

func (r *Radio) GeneratePlaylist()

Generate a playlist

func (*Radio) GetDatabase

func (r *Radio) GetDatabase() *gorm.DB

Return the database connection

func (*Radio) GetTrackOnAir

func (r *Radio) GetTrackOnAir() string

func (*Radio) Init

func (r *Radio) Init(port int, folder string)

Constructor

func (*Radio) Next

func (r *Radio) Next()

it's just an alias

func (*Radio) PlayRadio

func (r *Radio) PlayRadio()

func (*Radio) SetDatabase

func (r *Radio) SetDatabase(d *gorm.DB)

Set the database connection

func (*Radio) SetTrack

func (r *Radio) SetTrack(t model.Track)

func (*Radio) StreamTrack

func (radio *Radio) StreamTrack(db *gorm.DB) http.Handler

Jump to

Keyboard shortcuts

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