Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GAumala/MediaServer
/ functions
Functions
35 in github.com/GAumala/MediaServer
⨍
Functions
35
◇
Types & classes
5
↓ 5 callers
Function
FindAllVideos
*FindAllVideos Walks throug the specified directories in the provided jsonFile * looking for videos. if the jsonFile string is empty or an invalid pat
filesys/Scanner.go:63
↓ 4 callers
Function
DefaultConfig
()
data/Config.go:60
↓ 4 callers
Function
NewVideoDir
NewVideoDir is a public constructor for VideoDir
data/VideoDir.go:27
↓ 4 callers
Function
ParseJsonConfig
(configPath string)
data/Config.go:45
↓ 3 callers
Function
getPublicFilePath
(templateFileName string)
net/StaticAssets.go:30
↓ 2 callers
Function
IsStreamableVideoFormat
*IsStreamableVideoFormat returns true if the extension provided in videoExtension * is an extension of video format that can be streamed over HTML5.
data/VideoInfo.go:25
↓ 2 callers
Method
String
()
data/Config.go:31
↓ 2 callers
Function
loadTemplate
(name string)
net/Server.go:18
↓ 1 callers
Function
RunServer
*RunServer starts the HTTP server at port 8080 using the specified config. */
net/Server.go:99
↓ 1 callers
Function
defaultVideoDir
()
data/Config.go:36
↓ 1 callers
Function
externalIP
()
net/ip.go:8
↓ 1 callers
Function
fileExists
(filename string)
net/StaticAssets.go:22
↓ 1 callers
Function
findVideosInPath
(verbose bool, root string, videoDict data.VideoDict)
filesys/Scanner.go:21
↓ 1 callers
Function
generateVideoKey
(videoPath string)
filesys/Scanner.go:15
↓ 1 callers
Function
getProjectDir
()
net/StaticAssets.go:14
↓ 1 callers
Function
htmlVideoHandler
(w http.ResponseWriter, r *http.Request)
net/Server.go:41
↓ 1 callers
Function
initConfig
()
MediaServer.go:10
↓ 1 callers
Function
initIPAddr
()
net/Server.go:88
↓ 1 callers
Function
rawVideoHandler
(w http.ResponseWriter, r *http.Request)
net/Server.go:61
↓ 1 callers
Method
videoDirsString
()
data/Config.go:19
Method
Len
()
data/VideoDir.go:16
Method
Less
(i, j int)
data/VideoDir.go:22
Method
Swap
(i, j int)
data/VideoDir.go:19
Function
TestFindAllVideosDefault
(t *testing.T)
filesys/scanner_test.go:12
Function
TestFindAllVideosNullDir
(t *testing.T)
filesys/scanner_test.go:26
Function
TestFindAllVideosWrongDir
(t *testing.T)
filesys/scanner_test.go:37
Function
TestIsStreamableVideoFormat
(t *testing.T)
data/videoinfo_test.go:10
Function
TestParseJsonConfig
(t *testing.T)
data/config_test.go:15
Function
TestParseJsonConfigEmpty
(t *testing.T)
data/config_test.go:40
Function
TestParseJsonConfigNullConfig
(t *testing.T)
data/config_test.go:10
Function
TestVideoDirSort
(t *testing.T)
data/videodir_test.go:11
Function
assetsHandler
(w http.ResponseWriter, r *http.Request)
net/StaticAssets.go:40
Function
indexHandler
(w http.ResponseWriter, r *http.Request)
net/Server.go:27
Function
main
()
MediaServer.go:28
Function
watchHandler
(w http.ResponseWriter, r *http.Request)
net/Server.go:79