Documentation ¶
Index ¶
- func BuildContentFeatures(mediaType string, seek string, transcode bool) (string, error)
- func ConvertFilename(s string) string
- func GetMimeDetailsFromFile(f string) (string, error)
- func GetMimeDetailsFromStream(s io.ReadCloser) (string, error)
- func HostPortIsAlive(h string) bool
- func RandomString() (string, error)
- func URLtoListenIPandPort(u string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildContentFeatures ¶
BuildContentFeatures - Build the content features string for the "contentFeatures.dlna.org" header.
func ConvertFilename ¶
ConvertFilename is a helper function that percent-encodes a string.
func GetMimeDetailsFromFile ¶
GetMimeDetailsFromFile - Get media file mime details.
func GetMimeDetailsFromStream ¶
func GetMimeDetailsFromStream(s io.ReadCloser) (string, error)
GetMimeDetailsFromStream - Get media URL mime details.
func HostPortIsAlive ¶
HostPortIsAlive - We use this function to periodically health check the selected device and decide if we want to keep the entry in the list or to remove it.
func RandomString ¶
RandomString - A random string generator to generate the callback paths for our webservers.
func URLtoListenIPandPort ¶
URLtoListenIPandPort for a given internal URL, find the correct IP/Interface to listen to.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.