ui

package
v0.0.0-...-3226cea Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: AGPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Database api.DatabaseAPI
)

Functions

func CreateIssue

func CreateIssue(debugInfo string, genUrl bool, issueRequestStr string) (string, error)

func CreateTicket

func CreateTicket(debugInfo string, ticketRequestStr string) error

func DatabaseMessage

func DatabaseMessage(msg string)

func DownloadPendingUpdates

func DownloadPendingUpdates()

func DownloadUpdatesOnWifiConnected

func DownloadUpdatesOnWifiConnected()

func EnableTunnel

func EnableTunnel()

func GetDebugInfo

func GetDebugInfo() (string, error)

func GetDebugInfoFile

func GetDebugInfoFile()

func GetLogs

func GetLogs(ID int64) []logs.LogLine

func IsGeoIPDataAvailable

func IsGeoIPDataAvailable() (bool, error)

func IsOnWifiNetwork

func IsOnWifiNetwork() bool

func IsTunnelActive

func IsTunnelActive() bool

func NewApkAvaliable

func NewApkAvaliable() bool

func PerformRequest

func PerformRequest(call PluginCall)

func RestartTunnel

func RestartTunnel()

func Shutdown

func Shutdown()

func SubscribeToDatabase

func SubscribeToDatabase(call PluginCall)

Types

type PluginCall

type PluginCall = engine.PluginCall

type Request

type Request = struct {
	Method  string              `json:"method"`
	Url     string              `json:"url"`
	Headers map[string][]string `json:"headers"`
	Body    string              `json:"body"`
}

type ResponseWriter

type ResponseWriter struct {
	// contains filtered or unexported fields
}

func NewResponseWriter

func NewResponseWriter() *ResponseWriter

func (*ResponseWriter) Header

func (w *ResponseWriter) Header() http.Header

func (*ResponseWriter) Write

func (w *ResponseWriter) Write(b []byte) (int, error)

func (*ResponseWriter) WriteHeader

func (w *ResponseWriter) WriteHeader(statusCode int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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