mobile

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recover

func Recover(times int, thread int) (int, error)

Recover return cpu benchmark

func Run

func Run(args *Args) error

func Version

func Version() string

Types

type Args

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

func NewArgs

func NewArgs() *Args

func (*Args) Add

func (a *Args) Add(arg string)

func (*Args) Export

func (a *Args) Export() []string

type NatInfo

type NatInfo struct {
	FamilyType int    `json:"family_type"`
	Port       int    `json:"port"`
	Type       int    `json:"type"`
	IP         string `json:"ip"`
}

func GetNatInfo

func GetNatInfo(addr string) (*NatInfo, error)

GetNatInfo detect nat info of node

type Task

type Task struct {
	Finished chan bool
}

func (Task) Run

func (w Task) Run(msg, sig []byte, times int)

Jump to

Keyboard shortcuts

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