Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegxIsSSURI = regexp.MustCompile(`ss:\/\/([a-zA-Z0-9\.\-_]+):([^ @]+)@([a-zA-Z0-9\.\-_]+):(\d+)`) RegxIsSSRURI = regexp.MustCompile(`ssr:\/\/([a-zA-Z0-9\.\-_]+:)(\d+:)([a-zA-Z0-9\.\-_]+:)+\S+`) )
Regexp to Check URI
Functions ¶
This section is empty.
Types ¶
type SS ¶
type SS struct { Server string `json:"server"` ServerPort json.Number `json:"server_port"` Password string `json:"password"` Method string `json:"method"` }
SS original
func ParseSSFromURI ¶
ParseSSFromURI Parse SS From URI[ss://method:pass@host:port]
type SSR ¶
SSR implement
func ParseSSRFromURI ¶
ParseSSRFromURI Parse SSR From URI [ssr://host:port:protocol:method:obfs:pass]
type SliceFuncSSR ¶
type SliceFuncSSR []FuncSSR
SliceFuncSSR is Slice of FuncSSR
func (SliceFuncSSR) Len ¶
func (sfssr SliceFuncSSR) Len() int
func (SliceFuncSSR) Less ¶
func (sfssr SliceFuncSSR) Less(i, j int) bool
func (*SliceFuncSSR) SpeedTest ¶
func (sfssr *SliceFuncSSR) SpeedTest(TestCaseLevel TestCase)
SpeedTest Test Speed of SSR Proxy
func (SliceFuncSSR) Swap ¶
func (sfssr SliceFuncSSR) Swap(i, j int)
type SliceSS ¶
type SliceSS []SS
SliceSS is Slice of SS
func (SliceSS) GenSSURIList ¶
GenSSURIList gen SSR to URI [ss://method:pass@host:port]
type SliceSSR ¶
type SliceSSR []SSR
SliceSSR is Slice of SSR
func (SliceSSR) GenSSRURIList ¶
GenSSRURIList gen SSR to URI [ssr://host:port:protocol:method:obfs:pass]
Click to show internal directories.
Click to hide internal directories.