github.com/imannamdari/v2ray-core/v5@v5.0.5/app/restfulapi/config.go (about) 1 package restfulapi 2 3 import ( 4 "context" 5 6 "github.com/imannamdari/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 }