1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/transport/internet/authenticator_json.go
2016-09-21 14:39:07 +02:00

20 lines
374 B
Go

// +build json
package internet
import (
"v2ray.com/core/common/loader"
)
func CreateAuthenticatorConfig(rawConfig []byte) (string, interface{}, error) {
config, name, err := configLoader.Load(rawConfig)
if err != nil {
return name, nil, err
}
return name, config, nil
}
var (
configLoader = loader.NewJSONConfigLoader(loader.ConfigCreatorCache{}, "type", "")
)