github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/app/restfulapi/config.go (about) 1 package restfulapi 2 3 import ( 4 "context" 5 6 "github.com/v2fly/v2ray-core/v5/common" 7 ) 8 9 func init() { 10 common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) { 11 return newRestfulService(ctx, config.(*Config)) 12 })) 13 }