psi

package
v0.0.14-beta-android Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendFeedback

func SendFeedback(configJson, diagnosticsJson, b64EncodedPublicKey, uploadServer, uploadPath, uploadServerHeaders string)

Encrypt and upload feedback.

func SetClientVerificationPayload

func SetClientVerificationPayload(clientVerificationPayload string)

This is a passthrough to Controller.SetClientVerificationPayloadForActiveTunnels. Note: should only be called after Start() and before Stop(); otherwise, will silently take no action.

func Start

func Start(
	configJson, embeddedServerEntryList string,
	provider PsiphonProvider,
	useDeviceBinder bool, useIPv6Synthesizer bool) error

func Stop

func Stop()

Types

type PsiphonProvider

type PsiphonProvider interface {
	Notice(noticeJSON string)
	HasNetworkConnectivity() int
	BindToDevice(fileDescriptor int) error
	IPv6Synthesize(IPv4Addr string) string
	GetPrimaryDnsServer() string
	GetSecondaryDnsServer() string
}

Jump to

Keyboard shortcuts

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