parser

package
v1.1.0-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBoxSubscription

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

func ParseClashSubscription

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

func ParseRawSubscription

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

func ParseSIP008Subscription

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

func ParseSubscription

func ParseSubscription(ctx context.Context, 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