1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-25 17:00:53 -05:00
sub2sing-box/parser/parsers_map.go

16 lines
386 B
Go
Raw Normal View History

2024-03-11 11:39:58 -04:00
package parser
import (
2024-03-20 08:54:23 -04:00
"sub2sing-box/model"
2024-03-11 11:39:58 -04:00
)
var ParserMap map[string]func(string) (model.Outbound, error) = map[string]func(string) (model.Outbound, error){
2024-03-11 11:39:58 -04:00
"ss://": ParseShadowsocks,
"vmess://": ParseVmess,
"trojan://": ParseTrojan,
"vless://": ParseVless,
"hysteria://": ParseHysteria,
"hy2://": ParseHysteria2,
"hysteria2://": ParseHysteria2,
}