1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-24 13:34:41 -05:00
sub2sing-box/parser/parsers_map.go

17 lines
495 B
Go
Raw Normal View History

2024-03-11 11:39:58 -04:00
package parser
import (
2024-03-22 04:10:15 -04:00
"sub2sing-box/constant"
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-22 04:10:15 -04:00
constant.ShadowsocksPrefix: ParseShadowsocks,
constant.VMessPrefix: ParseVmess,
constant.TrojanPrefix: ParseTrojan,
constant.VLESSPrefix: ParseVless,
constant.HysteriaPrefix: ParseHysteria,
constant.Hysteria2Prefix1: ParseHysteria2,
constant.Hysteria2Prefix2: ParseHysteria2,
2024-03-11 11:39:58 -04:00
}