Documentation ¶
Index ¶
- Variables
- func NewDNS() services.Service
- func Start(serviceID, serviceArgsStr string) (errStr string)
- func StartProfiling(storePath string)
- func StartWithLog(serviceID, serviceArgsStr string, loggerCallback LogCallback) (errStr string)
- func Stop(serviceID string)
- func StopProfiling()
- func Version() string
- type DNS
- type DNSArgs
- type LogCallback
Constants ¶
This section is empty.
Variables ¶
View Source
var SDK_VERSION = "No Version Provided"
Functions ¶
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 StopProfiling ¶
func StopProfiling()
Types ¶
type DNS ¶
type DNS struct {
// contains filtered or unexported fields
}
func (*DNS) InitService ¶
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)
}
Click to show internal directories.
Click to hide internal directories.