proxy

package
v10.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: GPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SDK_VERSION = "No Version Provided"

Functions

func NewDNS

func NewDNS() services.Service

func Start

func Start(serviceID, serviceArgsStr string) (errStr string)

func StartProfiling

func StartProfiling(storePath string)

func StartWithLog

func StartWithLog(serviceID, serviceArgsStr string, loggerCallback LogCallback) (errStr string)

Start serviceID : is service identify id,different service's id should be difference serviceArgsStr: is the whole command line args string such as : 1."http -t tcp -p :8989" 2."socks -t tcp -p :8989" and so on. if an error occured , errStr will be the error reason if start success, errStr is empty.

func Stop

func Stop(serviceID string)

func StopProfiling

func StopProfiling()

func Version

func Version() string

Types

type DNS

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

func (*DNS) CheckArgs

func (s *DNS) CheckArgs() (err error)

func (*DNS) Clean

func (s *DNS) Clean()

func (*DNS) InitService

func (s *DNS) InitService() (err error)

func (*DNS) Start

func (s *DNS) Start(args interface{}, log *logger.Logger) (err error)

func (*DNS) StopService

func (s *DNS) StopService()

type DNSArgs

type DNSArgs struct {
	ParentServiceType *string
	ParentType        *string
	Parent            *string
	ParentAuth        *string
	ParentKey         *string
	ParentCompress    *bool
	KCP               kcpcfg.KCPConfigArgs
	CertFile          *string
	KeyFile           *string
	CaCertFile        *string
	Local             *string
	Timeout           *int
	RemoteDNSAddress  *string
	DNSTTL            *int
	CacheFile         *string
	LocalSocks5Port   *string
}

type LogCallback

type LogCallback interface {
	Write(line string)
}

Jump to

Keyboard shortcuts

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