1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-10 14:26:26 -05:00
v2fly/common/environment/app.go
2021-11-27 14:32:07 +08:00

21 lines
484 B
Go

package environment
import (
"github.com/v2fly/v2ray-core/v4/features/extension/storage"
)
type AppEnvironmentCapabilitySet interface {
BaseEnvironmentCapabilitySet
SystemNetworkCapabilitySet
InstanceNetworkCapabilitySet
FileSystemCapabilitySet
PersistentStorage() storage.ScopedPersistentStorage
TransientStorage() storage.ScopedTransientStorage
}
type AppEnvironment interface {
AppEnvironmentCapabilitySet
NarrowScope(key []byte) (AppEnvironment, error)
doNotImpl()
}