package
Version:
v1.2.82
Opens a new window with list of versions in this module.
Published: Aug 16, 2021
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
Balance represents an amount of tokens.
ToBalance converts ZCN tokens to Balance.
String implements fmt.Stringer interface.
ToToken converts the Balance to ZCN tokens.
A Key represents an identifier. It can be a pool ID, client ID, smart
contract address, etc.
A Size represents a size in bytes.
String implements fmt.Stringer interface
Timestamp represents Unix time (e.g. in seconds)
ToTime converts the Timestamp to standard time.Time
Within ensures a given timestamp is within certain number of seconds
WhoPays for file downloading.
Parse given string and set the WhoPays by it. Or return parsing error.
The given string should be as result of the String method (case insensitive).
String implements fmt.Stringer interface.
Validate the WhoPays value.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.