Documentation ¶
Index ¶
Constants ¶
View Source
const ( PayTypETH int = iota PayTypBTLC PayTypTRX PayTypTrxUsd )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreshLicensResult ¶
func (*FreshLicensResult) Marshal ¶
func (flr *FreshLicensResult) Marshal(key []byte) ([]byte, error)
func (*FreshLicensResult) UnMarshal ¶
func (flr *FreshLicensResult) UnMarshal(key, data []byte) error
type FreshLicenseReq ¶
type FreshLicenseReq struct {
Receiver account.BeatleAddress
}
func (*FreshLicenseReq) UnMarshal ¶
func (fl *FreshLicenseReq) UnMarshal(key, data []byte) error
type License ¶
type License struct { Signature string `json:"signature"` Content LicenseContent `json:"content"` }
type LicenseContent ¶
type LicenseContent struct { Provider account.BeatleAddress `json:"provider"` Receiver account.BeatleAddress `json:"receiver"` Name string `json:"name"` Email string `json:"email"` Cell string `json:"cell"` ExpireTime int64 `json:"expire_time"` }
type LicenseRenew ¶
type LicenseRenew struct { TXSig NoncePriceSig `json:"tx_sig"` TxStr string `json:"tx_str"` Name string `json:"name"` Email string `json:"email"` Cell string `json:"cell"` }
func (*LicenseRenew) String ¶
func (lr *LicenseRenew) String() string
type NoncePrice ¶
type NoncePriceContent ¶
type NoncePriceContent struct { Nonce uint64 `json:"nonce"` Receiver account.BeatleAddress `json:"receiver"` Payer common.Address `json:"payer"` PricePerMonth float64 `json:"price_per_month"` Month int64 `json:"month"` Total float64 `json:"total"` TotalPrice float64 `json:"total_price"` MarketPrice float64 `json:"market_price"` PayTyp int `json:"pay_typ"` }
Total = PricePerMonth * Month TotalEth = Total/EthPrice
type NoncePriceSig ¶
type NoncePriceSig struct { Sig string `json:"sig"` Content NoncePriceContent `json:"content"` }
func (*NoncePriceSig) String ¶
func (nps *NoncePriceSig) String() string
Click to show internal directories.
Click to hide internal directories.