net

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DEEP_WEB_RADIO_URL = "http://anonyradixhkgh5myfrkarggfnmdzzhhcgoy2v66uf7sml27to5n2tid.onion"
View Source
const TOR_WIN32_DOWNLOAD_URL = "https://www.torproject.org/dist/torbrowser/11.0.3/tor-win32-0.4.6.9.zip"

Variables

This section is empty.

Functions

This section is empty.

Types

type RadioClient

type RadioClient struct {
	// contains filtered or unexported fields
}

func NewRadioClient

func NewRadioClient() (RadioClient, error)

func (*RadioClient) Close

func (client *RadioClient) Close()

Close should be called when you are done using the client.

func (*RadioClient) LiveStations

func (client *RadioClient) LiveStations() ([]RadioStation, error)

LiveStations is a getter for the client's 'stations' field. If the client already has stations set LiveStations will return these. Otherwise it will extrapolate them from the client's homePage, insert them into the stations field and return them.

func (*RadioClient) Stream

func (client *RadioClient) Stream(station RadioStation) (io.ReadCloser, error)

Stream returns an mp3 encoded audio stream.

type RadioStation

type RadioStation struct {
	Title string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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