func NewService(txnManager models.TransactionManager, cfg Config, sceneServer sceneServer) *Service {
	ret := &Service{
		txnManager:  txnManager,
		sceneServer: sceneServer,
		config:      cfg,
		ipWhitelistMgr: &ipWhitelistManager{
			config: cfg,
		},
		mutex: sync.Mutex{},
	}

	return ret
}
// NewService initialises and returns a new DLNA service.
NewService initialises and returns a new DLNA service.
// NewService initialises and returns a new DLNA service .
func NewService(txnManager models.TransactionManager, cfg Config, sceneServer sceneServer) *Service {
	ret := &Service{
		txnManager:  txnManager,
		sceneServer: sceneServer,
		config:      cfg,
		ipWhitelistMgr: &ipWhitelistManager{
			config: cfg,
		},
		mutex: sync.Mutex{},
	}
	return ret
}
func NewService ( txnManager models . TransactionManager , cfg Config , sceneServer sceneServer ) * Service { ret := & Service { txnManager : txnManager , sceneServer : sceneServer , config : cfg , ipWhitelistMgr : & ipWhitelistManager { config : cfg , } , mutex : sync . Mutex { } , } return ret }
NewService initialises and returns a new DLNA service.
NewService initialises and returns a new DLNA service .