Documentation ¶
Index ¶
- Constants
- Variables
- func Address() string
- func AdvertiseList() []byte
- func AesKeyBase64ForMiner(minerAddr string) string
- func AesKeyForMiner(minerAddr string) []byte
- func AndroidApkVersion() (ver string, err error)
- func BalanceInDays(val int64) float32
- func ByPassDataLoad() (string, error)
- func GetPingVal(mid, minerIP string) float32
- func ImportWallet(data, auth string) bool
- func InitSystem(cb UICallBack, payMode bool, confUrl string)
- func IsOpen() bool
- func IsValidSubAddr(addr string) bool
- func LoadCustomerBasic(walletAddr, cusID string) (string, error)
- func LoadWallet(walletJSOn string) bool
- func MinerPort(addr string) int32
- func MustHitData() (string, error)
- func NewWallet(auth string) []byte
- func NodeConfigData() (string, error)
- func OpenWallet(auth string) bool
- func PrepareCharge(amountInDollar float64, chargeDays int, cusId, currency string) (string, error)
- func PriKeyData() []byte
- func PriceConfigData() (string, error)
- func RefreshHostByAddr(addr string) string
- func RuleDataLoad() (string, error)
- func RuleVerInt() ([]byte, error)
- func SubAddress() string
- func SubPriKeyData() []byte
- func SyncServerList() []byte
- func TestPing(mid string) []byte
- func TransferToFriend(from, to string, days int) error
- func Verify(data, sig []byte) []byte
- type AppHelper
- type CustomerBasic
- type NodeConfig
- type PingResult
- type PriceConfig
- type RuleVer
- type UICallBack
Constants ¶
View Source
const (
SecondsOfOneDay = float32(24 * 3600)
)
View Source
const (
TXCheckTime = time.Second * 2
)
Variables ¶
View Source
var ( AndroidVerUrl = "%s/version.js" RuleDataUrl = "%s/rule.txt" MustHitDataUrl = "%s/must_hit.txt" ByPassDataUrl = "%s/bypass.txt" RuleVerUrl = "%s/ruleVer.js" NodeConfigUrl = "%s/nodeConfig.json" PriceConfigUrl = "%s/priceConfig.json" WebHookDomain = "https://stripeaws.immeta.chat" TestWebHookDomain = "http://stripeaws.immeta.chat" )
Functions ¶
func AdvertiseList ¶
func AdvertiseList() []byte
func AesKeyBase64ForMiner ¶
func AesKeyForMiner ¶
func AndroidApkVersion ¶
func BalanceInDays ¶
func ByPassDataLoad ¶
func GetPingVal ¶
func ImportWallet ¶
func InitSystem ¶
func InitSystem(cb UICallBack, payMode bool, confUrl string)
func IsValidSubAddr ¶
func LoadCustomerBasic ¶
func LoadWallet ¶
func MustHitData ¶
func NodeConfigData ¶
func OpenWallet ¶
func PrepareCharge ¶
func PriKeyData ¶
func PriKeyData() []byte
func PriceConfigData ¶
func RefreshHostByAddr ¶
func RuleDataLoad ¶
func RuleVerInt ¶
func SubAddress ¶
func SubAddress() string
func SubPriKeyData ¶
func SubPriKeyData() []byte
func SyncServerList ¶
func SyncServerList() []byte
func TransferToFriend ¶
Types ¶
type CustomerBasic ¶
type NodeConfig ¶
type PingResult ¶
type PriceConfig ¶
type UICallBack ¶
Click to show internal directories.
Click to hide internal directories.