clash

package module
v0.0.0-...-08e8fd8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

README

clash

clash for android generator config.yaml

Documentation

Index

Constants

View Source
const (
	ModeTrojan = "trojan"
)

Variables

This section is empty.

Functions

func AutoMode

func AutoMode(port, name string, proxy ...*Proxy) (b []byte, err error)

func DeCompressFromBase64

func DeCompressFromBase64(b []byte) ([]byte, error)

func ForAndroid

func ForAndroid(password, host, port string) (b []byte, err error)

func NewOptions

func NewOptions(port string) string

func NewProxies

func NewProxies(name string, proxy ...*Proxy) string

func NewProxyGroup

func NewProxyGroup(name string, proxies ...string) string
func ParseTrojanLink(link string) (password, host, port, tag string, err error)

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

type Proxy

type Proxy struct {
	Tag      string `json:"name"`
	Name     string `json:"type"`
	Server   string `json:"server"`
	Port     string `json:"port"`
	Password string `json:"password"`
}

func NewProxy

func NewProxy(name, server, port, password, tag string) *Proxy

func (*Proxy) String

func (p *Proxy) String() string

Jump to

Keyboard shortcuts

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