proxy

package
v0.0.0-...-1ef8d7c Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2018 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const SDK_VERSION = "5.0"

Variables

This section is empty.

Functions

func NewDNS

func NewDNS() services.Service

func Start

func Start(serviceID, serviceArgsStr string) (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 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
}

Jump to

Keyboard shortcuts

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