Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MimeTypeByPath ¶
MimeTypeByPath determines the MIME-type of file at the given path
Types ¶
type Cache ¶
type Cache interface {
Set(key interface{}, value interface{})
Get(key interface{}) (value interface{}, ok bool)
}
type FfprobeCacheItem ¶
Public definition so that external modules can persist cache contents.
type Server ¶
type Server struct {
HTTPConn net.Listener
FriendlyName string
Interfaces []net.Interface
RootObjectPath string
FFProbeCache Cache
// The service SOAP handler keyed by service URN.
Services map[string]UPnPService
LogHeaders bool
// Disable transcoding, and the resource elements implied in the CDS.
NoTranscode bool
// Force transcoding to certain format of the 'transcodes' map
ForceTranscodeTo string
// Disable media probing with ffprobe
NoProbe bool
Icons []Icon
// Stall event subscription requests until they drop. A workaround for
// some bad clients.
StallEventSubscribe bool
// Time interval between SSPD announces
NotifyInterval time.Duration
// Ignore hidden files and directories
IgnoreHidden bool
// Ingnore unreadable files and directories
IgnoreUnreadable bool
// White list of clients
AllowedIpNets []*net.IPNet
// contains filtered or unexported fields
}
func (*Server) IgnorePath ¶
IgnorePath detects if a file/directory should be ignored.
Click to show internal directories.
Click to hide internal directories.