Documentation ¶
Index ¶
- Variables
- func AddOne(object Object) (ObjectId string)
- func AddUser(u User) string
- func Delete(ObjectId string)
- func DeleteUser(uid string)
- func GetAll() map[string]*Object
- func GetAllUsers() map[string]*User
- func Login(username, password string) bool
- func Update(ObjectId string, Score int64) (err error)
- type Account
- type AccountId
- type AccountNetMessage
- type AccountResource
- type Acuthrity
- type Address
- type AssetIssueContract
- type AssetIssueList
- type Block
- type BlockHeader
- type BlockHeaderRaw
- type BlockList
- type Contract
- type Frozen
- type FrozenSupply
- type Node
- type NodeList
- type NumberMessage
- type Object
- type Profile
- type Result
- type Transaction
- type TransactionRaw
- type User
- type Vote
- type Witness
- type WitnessList
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Objects map[string]*Object
)
View Source
var (
UserList map[string]*User
)
Functions ¶
func DeleteUser ¶
func DeleteUser(uid string)
func GetAllUsers ¶
Types ¶
type Account ¶
type Account struct { AccountName string AccountType string Address string Balance int64 Votes []*Vote Asset map[string]int64 AssetV2 map[string]int64 Frozen []*Frozen NetUsage int64 AcquiredDelegatedFrozenBalanceForBandwidth int64 DelegatedFrozenBalanceForBandwidth int64 CreateTime int64 LatestOprationTime int64 Allowance int64 LatestWithdrawTime int64 Code string IsWitness bool IsCommittee bool FrozenSupply []*Frozen AssetIssuedName string AssetIssuedID string LatestAssetOperationTime map[string]int64 LatestAssetOperationTimeV2 map[string]int64 FreeNetUsage int64 FreeAssetNetUsage map[string]int64 FreeAssetNetUsageV2 map[string]int64 LatestConsumeTime int64 LatestConsumeFreeTime int64 AccountID string AccountResource *AccountResource }
func GetAccountByAddress ¶
type AccountNetMessage ¶
type AccountNetMessage struct { FreeNetUsed int64 FreeNetLimit int64 NetUsed int64 NetLimit int64 AssetNetUsed map[string]int64 AssetNetLimit map[string]int64 TotalNetLimit int64 TotalNetWeight int64 }
func GetAccountNet ¶
func GetAccountNet(address string) AccountNetMessage
type AccountResource ¶
type AssetIssueContract ¶
type AssetIssueContract struct { OwnerAddress string Name string Abbr string TotalSupply int64 FrozenSupply []FrozenSupply TrxNum int32 Num int32 StartTime int64 EndTime int64 VoteScore int32 Description string Url string FreeAssetNetLimit int64 PublicFreeAssetNetLimit int64 PublicFreeAssetNetUsage int64 PublicLatestFreeNetTime int64 }
func GetAssetIssueByName ¶
func GetAssetIssueByName(name string) AssetIssueContract
type AssetIssueList ¶
type AssetIssueList struct {
AssetIssue []AssetIssueContract
}
func GetAssetIssueAccount ¶
func GetAssetIssueAccount(address string) AssetIssueList
func GetAssetIssueList ¶
func GetAssetIssueList() AssetIssueList
type Block ¶
type Block struct { Transactions []*Transaction BlockHeader *BlockHeader }
func GetBlockById ¶
func GetBlockByNum ¶
func GetNowBlock ¶
func GetNowBlock() Block
type BlockHeader ¶
type BlockHeader struct { RawData *BlockHeaderRaw WitnessSignature string }
type BlockHeaderRaw ¶
type BlockList ¶
type BlockList struct {
Block []*Block
}
func GetBlockByLatestNum ¶
func GetBlockByLimitNext ¶
type FrozenSupply ¶
type NodeList ¶
type NodeList struct {
Nodes []Node
}
func GetNodeList ¶
func GetNodeList() NodeList
type NumberMessage ¶
type NumberMessage struct {
Num int64
}
func GetNextMaintenanceTime ¶
func GetNextMaintenanceTime() NumberMessage
func GetTotalTransaction ¶
func GetTotalTransaction() NumberMessage
type Transaction ¶
type Transaction struct { RawData *TransactionRaw Signature []string Ret []*Result }
func GetTransactionById ¶
func GetTransactionById(id string) Transaction
type TransactionRaw ¶
type WitnessList ¶
type WitnessList struct {
Witnesses []Witness
}
func GetWitnessList ¶
func GetWitnessList() WitnessList
Source Files ¶
Click to show internal directories.
Click to hide internal directories.