Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConnectivityTestFailedErr = fmt.Errorf("connectivity test failed") UnexpectedFieldErr = fmt.Errorf("unexpected field") InvalidParameterErr = fmt.Errorf("invalid parameters") )
View Source
var FullconeDirect = NewDirect(true)
View Source
var SymmetricDirect = NewDirect(false)
Functions ¶
func FromClashRegister ¶
func FromClashRegister(name string, creator FromClashCreator)
func FromLinkRegister ¶
func FromLinkRegister(name string, creator FromLinkCreator)
Types ¶
type ContextDialer ¶
func (*ContextDialer) DialContext ¶
type Dialer ¶
func NewFromClash ¶
func NewFromClash(clashObj *yaml.Node, opt *GlobalOption) (dialer *Dialer, err error)
func NewFromLink ¶
func NewFromLink(name string, link string, opt *GlobalOption) (dialer *Dialer, err error)
func (*Dialer) SupportUDP ¶
type FromClashCreator ¶
type FromClashCreator func(clashObj *yaml.Node, opt *GlobalOption) (dialer *Dialer, err error)
type FromLinkCreator ¶
type FromLinkCreator func(link string, opt *GlobalOption) (dialer *Dialer, err error)
type GlobalOption ¶ added in v0.2.18
type GlobalOption struct {
AllowInsecure bool
}
Click to show internal directories.
Click to hide internal directories.