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
|
|
|
)
|
|
|
|
|
2024-03-20 12:02:38 -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
|
|
|
}
|