parser

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ParseHysteria

func ParseHysteria(proxy string) (model.Outbound, error)

func ParseHysteria2

func ParseHysteria2(proxy string) (model.Outbound, error)

func ParsePort

func ParsePort(portStr string) (uint16, error)

func ParseShadowsocks

func ParseShadowsocks(proxy string) (model.Outbound, error)

func ParseSocks added in v0.0.7

func ParseSocks(proxy string) (model.Outbound, error)

func ParseTrojan

func ParseTrojan(proxy string) (model.Outbound, error)

func ParseVless

func ParseVless(proxy string) (model.Outbound, error)

func ParseVmess

func ParseVmess(proxy string) (model.Outbound, error)

Types

type ParseError

type ParseError struct {
	Type    ParseErrorType
	Message string
	Raw     string
}

func (*ParseError) Error

func (e *ParseError) Error() string

type ParseErrorType

type ParseErrorType string
const (
	ErrInvalidPrefix ParseErrorType = "invalid url prefix"
	ErrInvalidStruct ParseErrorType = "invalid struct"
	ErrInvalidPort   ParseErrorType = "invalid port number"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL