1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00
v2fly/common/environment/base.go

40 lines
871 B
Go
Raw Normal View History

2021-06-24 11:28:08 -04:00
package environment
import (
2021-09-05 10:36:57 -04:00
"github.com/v2fly/v2ray-core/v4/common/environment/filesystemcap"
2021-06-24 11:28:08 -04:00
"github.com/v2fly/v2ray-core/v4/common/log"
"github.com/v2fly/v2ray-core/v4/transport/internet"
"github.com/v2fly/v2ray-core/v4/transport/internet/tagged"
)
type BaseEnvironmentCapabilitySet interface {
FeaturesLookupCapabilitySet
LogCapabilitySet
}
type BaseEnvironment interface {
BaseEnvironmentCapabilitySet
doNotImpl()
}
type SystemNetworkCapabilitySet interface {
Dialer() internet.SystemDialer
Listener() internet.SystemListener
}
type InstanceNetworkCapabilitySet interface {
OutboundDialer() tagged.DialFunc
}
type FeaturesLookupCapabilitySet interface {
RequireFeatures(callback interface{}) error
}
type LogCapabilitySet interface {
RecordLog(msg log.Message)
}
type FileSystemCapabilitySet interface {
2021-09-05 10:36:57 -04:00
filesystemcap.FileSystemCapabilitySet
2021-06-24 11:28:08 -04:00
}