sub2sing-box/parser/parsers_map.go

17 lines
531 B
Go
Raw Normal View History

2024-03-11 23:39:58 +08:00
package parser
import (
2024-09-19 18:12:24 +08:00
"github.com/nitezs/sub2sing-box/constant"
"github.com/nitezs/sub2sing-box/model"
2024-03-11 23:39:58 +08:00
)
var ParserMap map[string]func(string) (model.Outbound, error) = map[string]func(string) (model.Outbound, error){
2024-03-22 16:10:15 +08: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 23:39:58 +08:00
}