Documentation ¶
Index ¶
- Constants
- Variables
- func AdvertiseList() []byte
- func AndroidApkVersion() (ver string, err error)
- func CloseWallet()
- func ImportWallet(data, auth string) int32
- func ImportWalletPrivate(data, auth string) (string, error)
- func InitSystem(bypassIPs, baseDir string) error
- func InputPacket(data []byte) error
- func IsEmptyWallet() bool
- func IsGlobalMode() bool
- func IsWalletOpen() bool
- func MinerPort(addr string) int32
- func NewWallet(auth string) (string, error)
- func OpenWallet(auth string) error
- func RefreshHostByAddr(addr string) string
- func SetGlobalModel(g bool)
- func StartVPN(srvAddr, minerAddr string, d VpnDelegate) error
- func StopVpn()
- func SyncServerList() []byte
- func TestPing(mid string) []byte
- func WalletJson() string
- type AndroidAPP
- type PingResult
- type VpnDelegate
Constants ¶
View Source
const ( OpenWalletSuccess = iota PasswordError WalletError WalletSaveError NoWallet )
View Source
const (
WalletFile = "wallet.json"
)
Variables ¶
View Source
var TunInst *tun2Pipe.Tun2Pipe = nil
View Source
var VpnInst *proxy.VpnProxy = nil
Functions ¶
func AdvertiseList ¶
func AdvertiseList() []byte
func AndroidApkVersion ¶
func CloseWallet ¶
func CloseWallet()
func ImportWallet ¶
func ImportWalletPrivate ¶
func InitSystem ¶
func InputPacket ¶
func IsEmptyWallet ¶
func IsEmptyWallet() bool
func IsGlobalMode ¶
func IsGlobalMode() bool
func IsWalletOpen ¶
func IsWalletOpen() bool
func OpenWallet ¶
func RefreshHostByAddr ¶
func SetGlobalModel ¶
func SetGlobalModel(g bool)
func StartVPN ¶
func StartVPN(srvAddr, minerAddr string, d VpnDelegate) error
func SyncServerList ¶
func SyncServerList() []byte
func WalletJson ¶
func WalletJson() string
Types ¶
type AndroidAPP ¶
type AndroidAPP struct { IpCache map[string]string WPath string // contains filtered or unexported fields }
func (*AndroidAPP) ServiceClosed ¶
func (d *AndroidAPP) ServiceClosed()
type PingResult ¶
Click to show internal directories.
Click to hide internal directories.