mirror of
https://github.com/nitezs/sub2sing-box.git
synced 2024-12-25 00:04:41 -05:00
16 lines
389 B
Go
16 lines
389 B
Go
package parser
|
|
|
|
import (
|
|
"sub2sing-box/internal/model"
|
|
)
|
|
|
|
var ParserMap map[string]func(string) (model.Proxy, error) = map[string]func(string) (model.Proxy, error){
|
|
"ss://": ParseShadowsocks,
|
|
"vmess://": ParseVmess,
|
|
"trojan://": ParseTrojan,
|
|
"vless://": ParseVless,
|
|
"hysteria://": ParseHysteria,
|
|
"hy2://": ParseHysteria2,
|
|
"hysteria2://": ParseHysteria2,
|
|
}
|