mirror of https://github.com/v2ray/v2ray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
461 B
32 lines
461 B
6 years ago
|
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
|
||
|
}
|