1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-23 14:54:42 -05:00
sub2sing-box/parser/parsers_map.go

18 lines
572 B
Go
Raw Normal View History

2024-03-11 11:39:58 -04:00
package parser
import (
2024-09-19 06:12:24 -04:00
"github.com/nitezs/sub2sing-box/constant"
"github.com/nitezs/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-11-12 21:49:01 -05:00
constant.SocksPrefix: ParseSocks,
2024-03-11 11:39:58 -04:00
}