parser

package
v1.0.0-beta.12 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBoxSubscription

func ParseBoxSubscription(content string) ([]option.Outbound, error)

func ParseClashSubscription

func ParseClashSubscription(content string) ([]option.Outbound, error)

func ParseRawSubscription

func ParseRawSubscription(content string) ([]option.Outbound, error)

func ParseSIP008Subscription

func ParseSIP008Subscription(content string) ([]option.Outbound, error)
func ParseShadowsocksLink(link string) (option.Outbound, error)

func ParseSubscription

func ParseSubscription(content string) ([]option.Outbound, error)
func ParseSubscriptionLink(link string) (option.Outbound, error)

Types

type ShadowsocksDocument

type ShadowsocksDocument struct {
	Version int                         `json:"version"`
	Servers []ShadowsocksServerDocument `json:"servers"`
}

type ShadowsocksServerDocument

type ShadowsocksServerDocument struct {
	ID         string `json:"id"`
	Remarks    string `json:"remarks"`
	Server     string `json:"server"`
	ServerPort int    `json:"server_port"`
	Password   string `json:"password"`
	Method     string `json:"method"`
	Plugin     string `json:"plugin"`
	PluginOpts string `json:"plugin_opts"`
}

Jump to

Keyboard shortcuts

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