mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
12 lines
331 B
Go
12 lines
331 B
Go
package v5cfg
|
|
|
|
import (
|
|
"encoding/json"
|
|
"github.com/golang/protobuf/proto"
|
|
"github.com/v2fly/v2ray-core/v4/common/registry"
|
|
)
|
|
|
|
func loadHeterogeneousConfigFromRawJson(interfaceType, name string, rawJson json.RawMessage) (proto.Message, error) {
|
|
return registry.LoadImplementationByAlias(interfaceType, name, []byte(rawJson))
|
|
}
|