github.com/xraypb/xray-core@v1.6.6/features/feature.go (about)

     1  package features
     2  
     3  import "github.com/xraypb/xray-core/common"
     4  
     5  //go:generate go run github.com/xraypb/xray-core/common/errors/errorgen
     6  
     7  // Feature is the interface for Xray features. All features must implement this interface.
     8  // All existing features have an implementation in app directory. These features can be replaced by third-party ones.
     9  type Feature interface {
    10  	common.HasType
    11  	common.Runnable
    12  }
    13  
    14  // PrintDeprecatedFeatureWarning prints a warning for deprecated feature.
    15  func PrintDeprecatedFeatureWarning(feature string) {
    16  	newError("You are using a deprecated feature: " + feature + ". Please update your config file with latest configuration format, or update your client software.").WriteToLog()
    17  }