Documentation ¶
Index ¶
- type Cache
- type Config
- type Icon
- type Server
- type Service
- func (s *Service) AddTempDLNAIP(pattern string, duration *time.Duration)
- func (s *Service) IsRunning() bool
- func (s *Service) RemoveTempDLNAIP(pattern string) bool
- func (s *Service) Start(duration *time.Duration) error
- func (s *Service) Status() *models.DLNAStatus
- func (s *Service) Stop(duration *time.Duration)
- type UPnPService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Set(key interface{}, value interface{}) Get(key interface{}) (value interface{}, ok bool) }
type Server ¶
type Server struct { HTTPConn net.Listener FriendlyName string Interfaces []net.Interface RootObjectPath string LogHeaders 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 // contains filtered or unexported fields }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(txnManager models.TransactionManager, cfg Config, sceneServer sceneServer) *Service
NewService initialises and returns a new DLNA service.
func (*Service) AddTempDLNAIP ¶
func (*Service) RemoveTempDLNAIP ¶
func (*Service) Start ¶
Start starts the DLNA service. If duration is provided, then the service is stopped after the duration has elapsed.
func (*Service) Status ¶
func (s *Service) Status() *models.DLNAStatus
Click to show internal directories.
Click to hide internal directories.