internal

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

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

Go to latest
Published: Dec 1, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllListHandler

func AllListHandler(x http.ResponseWriter, b *http.Request)

func AvailableFileSystems

func AvailableFileSystems() []string

func FileExt

func FileExt(filename string) string

func GetAvailableDrives

func GetAvailableDrives(x http.ResponseWriter, r *http.Request)

func GetMusicDetails

func GetMusicDetails(x http.ResponseWriter, b *http.Request)

func ListLimited

func ListLimited(x http.ResponseWriter, b *http.Request)

func PrintHelp

func PrintHelp(x http.ResponseWriter, b *http.Request)

func RefreshedListHandler

func RefreshedListHandler(x http.ResponseWriter, b *http.Request)

func SearchMusicName

func SearchMusicName(x http.ResponseWriter, b *http.Request)

func SliceContains

func SliceContains(a []string, i string) bool

func StartServer

func StartServer(c []string, port int)

Types

type Command

type Command struct {
	Com string `json:"com"`
	Fun string `json:"fun"`
}

type Commands

type Commands []Command

type MusicFiles

type MusicFiles []MusicStruct

func GetMusicList

func GetMusicList(drives []string) MusicFiles

func GetRefreshedMusicList

func GetRefreshedMusicList(drives []string) MusicFiles

func (MusicFiles) Len

func (s MusicFiles) Len() int

func (MusicFiles) Less

func (s MusicFiles) Less(i, j int) bool

func (MusicFiles) Search

func (s MusicFiles) Search(q string) MusicFiles

func (MusicFiles) SearchStrict

func (s MusicFiles) SearchStrict(q string) MusicFiles

func (MusicFiles) Swap

func (s MusicFiles) Swap(i, j int)

func (MusicFiles) ToJson

func (s MusicFiles) ToJson() string

type MusicMoreDetail

type MusicMoreDetail struct {
	Artist string `json:"artist"`
	Title  string `json:"title"`
	Album  string `json:"album"`
	Year   int    `json:"year"`
	Genre  string `json:"genre"`
}

func (MusicMoreDetail) ToJson

func (s MusicMoreDetail) ToJson() string

type MusicStruct

type MusicStruct struct {
	Fname string `json:"filename"`
	Fpath string `json:"filepath"`
}

Jump to

Keyboard shortcuts

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