outbound

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientType

type ClientType string
const (
	XrayCore ClientType = "xray"
	SingBox  ClientType = "sing"
)

type IOutbound

type IOutbound interface {
	Parse(string)
	Addr() string
	Port() int
	Scheme() string
	GetOutboundStr() string
	GetRawUri() string
}

func GetOutbound

func GetOutbound(clientType ClientType, rawUri string) (result IOutbound)

type ProxyItem added in v0.0.2

type ProxyItem struct {
	Address      string     `json:"address"`
	Port         int        `json:"port"`
	RTT          int64      `json:"rtt"`
	RawUri       string     `json:"raw_uri"`
	Outbound     string     `json:"outbound"`
	OutboundType ClientType `json:"outbound_type"`
}

func NewItem added in v0.0.2

func NewItem(rawUri string) *ProxyItem

func NewItemByEncryptedRawUri added in v0.0.2

func NewItemByEncryptedRawUri(enRawUri string) (item *ProxyItem)

func (*ProxyItem) GetHost added in v0.0.2

func (that *ProxyItem) GetHost() string

func (*ProxyItem) GetOutbound added in v0.0.2

func (that *ProxyItem) GetOutbound() string

func (*ProxyItem) GetOutboundType added in v0.0.2

func (that *ProxyItem) GetOutboundType() ClientType

func (*ProxyItem) String added in v0.0.2

func (that *ProxyItem) String() string

Item string for conf.txt

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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