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