mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-16 20:13:01 +00:00
18 lines
707 B
Go
18 lines
707 B
Go
package features
|
|
|
|
import "github.com/xtls/xray-core/common"
|
|
|
|
//go:generate go run github.com/xtls/xray-core/common/errors/errorgen
|
|
|
|
// Feature is the interface for Xray features. All features must implement this interface.
|
|
// All existing features have an implementation in app directory. These features can be replaced by third-party ones.
|
|
type Feature interface {
|
|
common.HasType
|
|
common.Runnable
|
|
}
|
|
|
|
// PrintDeprecatedFeatureWarning prints a warning for deprecated feature.
|
|
func PrintDeprecatedFeatureWarning(feature string) {
|
|
newError("You are using a deprecated feature: " + feature + ". Please update your config file with latest configuration format, or update your client software.").WriteToLog()
|
|
}
|