1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00

18 lines
650 B
Go
Raw Normal View History

package features
import "v2ray.com/core/common"
2018-10-13 15:15:49 +02:00
//go:generate errorgen
// Feature is the interface for V2Ray 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 {
2018-10-12 23:57:56 +02:00
common.HasType
common.Runnable
}
2018-10-13 15:15:49 +02:00
// 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()
}