Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SDK_VERSION = "No Version Provided"
Functions ¶
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.
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.