Documentation
¶
Index ¶
- func AllListHandler(x http.ResponseWriter, b *http.Request)
- func AvailableFileSystems() []string
- func FileExt(filename string) string
- func GetAvailableDrives(x http.ResponseWriter, r *http.Request)
- func GetMusicDetails(x http.ResponseWriter, b *http.Request)
- func ListLimited(x http.ResponseWriter, b *http.Request)
- func PrintHelp(x http.ResponseWriter, b *http.Request)
- func RefreshedListHandler(x http.ResponseWriter, b *http.Request)
- func SearchMusicName(x http.ResponseWriter, b *http.Request)
- func SliceContains(a []string, i string) bool
- func StartServer(c []string, port int)
- type Command
- type Commands
- type MusicFiles
- type MusicMoreDetail
- type MusicStruct
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 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 RefreshedListHandler ¶
func RefreshedListHandler(x http.ResponseWriter, b *http.Request)
func SearchMusicName ¶
func SearchMusicName(x http.ResponseWriter, b *http.Request)
func SliceContains ¶
func StartServer ¶
Types ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.