prifimobile

package
v0.0.0-...-465a192 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNewKeyPairAndAssign

func GenerateNewKeyPairAndAssign() error

Keys

func GetPrifiPort

func GetPrifiPort() (int, error)

PriFi Port

func GetPrivateKey

func GetPrivateKey() (string, error)

Get Private Key

func GetPublicKey

func GetPublicKey() (string, error)

Gets Public Key

func GetRelayAddress

func GetRelayAddress() (string, error)

Relay Address

func GetRelayPort

func GetRelayPort() (int, error)

Relay Port

func GetRelaySocksPort

func GetRelaySocksPort() (int, error)

Relay Socks Port

func SetPrivateKey

func SetPrivateKey(priKey string) error

Sets Private Key

func SetPublicKey

func SetPublicKey(pubKey string) error

Sets Public Key

func SetRelayAddress

func SetRelayAddress(host string) error

Sets RelayAddress

func SetRelayPort

func SetRelayPort(port int) error

Sets Relay Port

func SetRelaySocksPort

func SetRelaySocksPort(port int) error

Sets relay socks port

func StartClient

func StartClient()

The "main" function that is called by Mobile OS in order to launch a client server

func StopClient

func StopClient()

Unused

Types

type HTTPRequestResult

type HTTPRequestResult struct {
	Latency    int64
	StatusCode int
	BodySize   int
}

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.

Jump to

Keyboard shortcuts

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