model

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CountryChineseName = map[string]string{}/* 258 elements not displayed */
View Source
var CountryEnglishName = map[string]string{}/* 253 elements not displayed */
View Source
var CountryFlag = map[string]string{}/* 259 elements not displayed */
View Source
var CountryISO = map[string]string{}/* 259 elements not displayed */

Functions

func GetContryName

func GetContryName(tag string) string

func IsCountryGroup

func IsCountryGroup(tag string) bool

Types

type ConvertRequest

type ConvertRequest struct {
	Subscriptions []string          `form:"subscription" json:"subscription"`
	Proxies       []string          `form:"proxy" json:"proxy"`
	Template      string            `form:"template" json:"template"`
	Delete        string            `form:"delete" json:"delete"`
	Rename        map[string]string `form:"rename" json:"rename"`
	Group         bool              `form:"group" json:"group"`
	GroupType     string            `form:"group-type" json:"group-type"`
	SortKey       string            `form:"sort" json:"sort"`
	SortType      string            `form:"sort-type" json:"sort-type"`
	Output        string            `json:"output"`
	GroupRules    string            `form:"group-rules" json:"group-rules"`
	UserAgent     string            `form:"user-agent" json:"user-agent"`
}

type Endpoint

type Endpoint option.Endpoint

func (*Endpoint) MarshalJSON

func (e *Endpoint) MarshalJSON() ([]byte, error)

type Inbound

type Inbound option.Inbound

func (*Inbound) MarshalJSON

func (i *Inbound) MarshalJSON() ([]byte, error)

type LogOptions

type LogOptions struct {
	Disabled     bool   `json:"disabled,omitempty"`
	Level        string `json:"level,omitempty"`
	Output       string `json:"output,omitempty"`
	Timestamp    bool   `json:"timestamp,omitempty"`
	DisableColor bool   `json:"-"`
}

type Options

type Options _Options

func (*Options) UnmarshalJSONContext

func (o *Options) UnmarshalJSONContext(ctx context.Context, content []byte) error

type Outbound

type Outbound option.Outbound

func (*Outbound) MarshalJSON

func (o *Outbound) MarshalJSON() ([]byte, error)

type SortByNumber

type SortByNumber []Outbound

func (SortByNumber) Len

func (a SortByNumber) Len() int

func (SortByNumber) Less

func (a SortByNumber) Less(i, j int) bool

func (SortByNumber) Swap

func (a SortByNumber) Swap(i, j int)

type SortByTag

type SortByTag []Outbound

func (SortByTag) Len

func (a SortByTag) Len() int

func (SortByTag) Less

func (a SortByTag) Less(i, j int) bool

func (SortByTag) Swap

func (a SortByTag) Swap(i, j int)

type StubOptions

type StubOptions struct{}

type VmessJson

type VmessJson struct {
	V    any    `json:"v"`
	Ps   string `json:"ps"`
	Add  string `json:"add"`
	Port any    `json:"port"`
	Id   string `json:"id"`
	Aid  any    `json:"aid"`
	Scy  string `json:"scy"`
	Net  string `json:"net"`
	Type string `json:"type"`
	Host string `json:"host"`
	Path string `json:"path"`
	Tls  string `json:"tls"`
	Sni  string `json:"sni"`
	Alpn string `json:"alpn"`
	Fp   string `json:"fp"`
}

Jump to

Keyboard shortcuts

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