androidlib

package module
v0.0.0-...-b9f8a21 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 21 Imported by: 0

README

androidlib

for android

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TunInst *tun2Pipe.Tun2Pipe = nil

Functions

func Balance

func Balance() (string, error)

func Buy

func Buy(name, email, cell string) (string, error)

func FreshMiners

func FreshMiners() error

func GetWalletInfo

func GetWalletInfo() (string, error)

func InitBeetle

func InitBeetle(basdir string, bypassIPs string) bool

func InputPacket

func InputPacket(data []byte) error

func IsGlobalMode

func IsGlobalMode() bool

func IsWalletCreate

func IsWalletCreate() bool

func IsWalletOpen

func IsWalletOpen() bool

func LicenseLog

func LicenseLog() ([]string, error)

func LicenseRenew

func LicenseRenew(tx string) (string, error)

func ListAllMiner

func ListAllMiner() ([]string, error)

func LoadBypassIPs

func LoadBypassIPs(bypassIPs string)

func LoadFromBootsTrap

func LoadFromBootsTrap() error

func OpenWallet

func OpenWallet(auth string) error

func Ping

func Ping(minerId string) (int64, error)

func QueryPrice

func QueryPrice(month int, payType int, addr string) (string, error)

func RefreshLicense

func RefreshLicense() error

func SetGlobalModel

func SetGlobalModel(g bool)

func ShowLicense

func ShowLicense() (string, error)

func StartBeetle

func StartBeetle() error

func StartVpn

func StartVpn(minerId string, d VpnDelegate) error

func StopBeetle

func StopBeetle() error

func StopVpn

func StopVpn() error

func VpnIsStarted

func VpnIsStarted() bool

Types

type Beetle

type Beetle struct {
	CurrentMiner string
	VpnMode      int
	BasDir       string
}

type TransactionItem

type TransactionItem struct {
	TxStr string `json:"tx_str"`
	*db.ClientTranstionItem
}

type VpnDelegate

type VpnDelegate interface {
	Bypass(fd int32) bool
	io.Writer
	VpnClosed()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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