Documentation ¶
Index ¶
- Constants
- Variables
- func GetCsSelfPassphrase() string
- func GetFlowBalance(flow uint64) *big.Int
- func GetNeedBalance(startTime, endTime, flow uint64) *big.Int
- func GetNeedFarmerCount() int
- func GetObjMetaQueryCount() int
- func GetReadCheckCount() int
- func GetTimeBalance(seconds uint64) *big.Int
- func GetWriteCheckCount() int
- func SetCsSelfPassphrase(passphrase string)
- func SetNeedFarmerCount(count int)
- func SetObjMetaQueryCount(count int)
- func SetReadCheckCount(count int)
- func SetWriteCheckCount(count int)
- type AddrTimeFlow
- type CancelCsParam
- type CsPickupCostParam
- type CsUsedFlowParam
- type PickupFlowParam
- type PickupTimeParam
- type RegMailData
- type SignFlowParam
- type SignTimeParam
- type TxShareObjData
- type UserAuthAllowFlowParam
Constants ¶
View Source
const ( TypeActNone uint8 = iota TypeActClaim TypeActVerify TypeActRent TypeActSignCs // 签约CS TypeActCancelCs // 解约CS TypeActSignTime TypeActSignFlow TypeActPickupTime TypeActPickupFlow TypeActPickupCost TypeActUsedFlow TypeActSendMail TypeActRegMail )
View Source
const ( PayMethodTime uint8 = iota PayMethodFlow )
View Source
const CSPerDayCharge float64 = 1e18 // time charge
View Source
const CSPerMBCharge float64 = 1e18 // flow charge
View Source
const CSPickUpFlowMin = 10 // 1048576 * 1 // 1Mb
View Source
const CSPickUpTimeMin = 10 // 3600 * 1 // one hour
View Source
const DestAddrStr = "0x39f124f6f8911a35f19346d3940908d8f6a29543"
View Source
const SizeForUpdateState uint64 = 1 // qiwy: todo, online, such as 1mbit
View Source
const UserAuthTimes uint64 = 20 // 每次授权分成UserAuthTimes次签名
Variables ¶
View Source
var TxCost0 = (*hexutil.Big)(big.NewInt(0))
View Source
var TxDefaultCost = (*hexutil.Big)(TxDefaultValue)
View Source
var TxDefaultValue = new(big.Int).SetInt64(1234)
Functions ¶
func GetCsSelfPassphrase ¶
func GetCsSelfPassphrase() string
func GetFlowBalance ¶
func GetNeedBalance ¶
func GetNeedFarmerCount ¶
func GetNeedFarmerCount() int
func GetObjMetaQueryCount ¶
func GetObjMetaQueryCount() int
func GetReadCheckCount ¶
func GetReadCheckCount() int
func GetTimeBalance ¶
func GetWriteCheckCount ¶
func GetWriteCheckCount() int
func SetCsSelfPassphrase ¶
func SetCsSelfPassphrase(passphrase string)
func SetNeedFarmerCount ¶
func SetNeedFarmerCount(count int)
func SetObjMetaQueryCount ¶
func SetObjMetaQueryCount(count int)
func SetReadCheckCount ¶
func SetReadCheckCount(count int)
func SetWriteCheckCount ¶
func SetWriteCheckCount(count int)
Types ¶
type AddrTimeFlow ¶
type CancelCsParam ¶
type CsPickupCostParam ¶
type CsUsedFlowParam ¶
type PickupFlowParam ¶
type PickupTimeParam ¶
type RegMailData ¶
type SignFlowParam ¶
type SignTimeParam ¶
type TxShareObjData ¶
type TxShareObjData struct {
}type UserAuthAllowFlowParam ¶
Click to show internal directories.
Click to hide internal directories.