Documentation ¶
Index ¶
- func GenerateNewKeyPairAndAssign() error
- func GetPrifiPort() (int, error)
- func GetPrivateKey() (string, error)
- func GetPublicKey() (string, error)
- func GetRelayAddress() (string, error)
- func GetRelayPort() (int, error)
- func GetRelaySocksPort() (int, error)
- func SetPrivateKey(priKey string) error
- func SetPublicKey(pubKey string) error
- func SetRelayAddress(host string) error
- func SetRelayPort(port int) error
- func SetRelaySocksPort(port int) error
- func StartClient()
- func StopClient()
- type HTTPRequestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartClient ¶
func StartClient()
The "main" function that is called by Mobile OS in order to launch a client server
Types ¶
type HTTPRequestResult ¶
Used for latency test
func NewHTTPRequestResult ¶
func NewHTTPRequestResult() *HTTPRequestResult
Creates an HTTPRequestResult
func (*HTTPRequestResult) RetrieveHTTPResponseThroughPrifi ¶
func (result *HTTPRequestResult) RetrieveHTTPResponseThroughPrifi(targetURLString string, timeout int, throughPrifi bool) error
* Request google home page through PriFi * * It is a method instead of a function due to the type restriction of gomobile.
Click to show internal directories.
Click to hide internal directories.