2021-06-24 11:28:08 -04:00
|
|
|
package environment
|
|
|
|
|
2021-09-05 10:36:57 -04:00
|
|
|
import (
|
|
|
|
"github.com/v2fly/v2ray-core/v4/features/extension/storage"
|
|
|
|
)
|
2021-06-24 11:28:08 -04:00
|
|
|
|
|
|
|
type ProxyEnvironmentCapabilitySet interface {
|
|
|
|
BaseEnvironmentCapabilitySet
|
|
|
|
InstanceNetworkCapabilitySet
|
|
|
|
|
2021-09-05 10:36:57 -04:00
|
|
|
TransientStorage() storage.ScopedTransientStorage
|
2021-06-24 11:28:08 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type ProxyEnvironment interface {
|
|
|
|
ProxyEnvironmentCapabilitySet
|
|
|
|
|
|
|
|
NarrowScope(key []byte) (ProxyEnvironment, error)
|
|
|
|
NarrowScopeToTransport(key []byte) (TransportEnvironment, error)
|
|
|
|
|
|
|
|
doNotImpl()
|
|
|
|
}
|