Documentation
¶
Index ¶
- type Cache
- 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.Instance, sceneServer sceneServer) *Service
NewService initialises and returns a new DLNA service.
func (*Service) AddTempDLNAIP ¶
func (s *Service) AddTempDLNAIP(pattern string, duration *time.Duration)
func (*Service) IsRunning ¶
func (s *Service) IsRunning() bool
IsRunning returns true if the DLNA service is running.
func (*Service) RemoveTempDLNAIP ¶
func (s *Service) RemoveTempDLNAIP(pattern string) bool
type UPnPService ¶
type UPnPService interface {
Handle(action string, argsXML []byte, r *http.Request) (respArgs map[string]string, err error)
Subscribe(callback []*url.URL, timeoutSeconds int) (sid string, actualTimeout int, err error)
Unsubscribe(sid string) error
}
UPnP SOAP service.
Click to show internal directories.
Click to hide internal directories.