model

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 9 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{}/* 258 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"`
}

type LogOptions added in v0.0.5

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 added in v0.0.5

type Options _Options

func (*Options) UnmarshalJSON added in v0.0.5

func (o *Options) UnmarshalJSON(content []byte) error

type Outbound

type Outbound struct {
	option.Outbound
}

func (*Outbound) GetOutbounds

func (h *Outbound) GetOutbounds() []string

func (*Outbound) SetOutbounds

func (h *Outbound) SetOutbounds(outbounds []string)

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 VmessJson

type VmessJson struct {
	V    string `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