refactor dependency resolution

This commit is contained in:
Darien Raymond committed 2018-10-21 10:27:13 +02:00
1 parent d9cdfffc69
commit a5dcb0f13e
36 files changed
+356 -730

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
package policy
import (
"time"
)
type DefaultManager struct{}
func (DefaultManager) Type() interface{} {
return ManagerType()
}
func (DefaultManager) ForLevel(level uint32) Session {
p := SessionDefault()
if level == 1 {
p.Timeouts.ConnectionIdle = time.Second * 600
}
return p
}
func (DefaultManager) ForSystem() System {
return System{}
}
func (DefaultManager) Start() error {
return nil
}
func (DefaultManager) Close() error {
return nil
}