Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIVersionV1 = "/v1" APIPrefix = "/api" URLAccounts = APIPrefix + APIVersionV1 + "/accounts/{id}" URLAccountTransactions = APIPrefix + APIVersionV1 + "/accounts/{id}/transactions" URLAccountOperations = APIPrefix + APIVersionV1 + "/accounts/{id}/operations" URLAccountFrozenAccounts = APIPrefix + APIVersionV1 + "/accounts/{id}/frozen-accounts" URLFrozenAccounts = APIPrefix + APIVersionV1 + "/frozen-accounts" URLTransactions = APIPrefix + APIVersionV1 + "/transactions" URLTransactionByHash = APIPrefix + APIVersionV1 + "/transactions/{id}" URLTransactionOperations = APIPrefix + APIVersionV1 + "/transactions/{id}/operations" URLTransactionOperation = APIPrefix + APIVersionV1 + "/transactions/{id}/operations/{opindex}" URLTransactionStatus = APIPrefix + APIVersionV1 + "/transactions/{id}/status" URLOperations = APIPrefix + APIVersionV1 + "/operations/{id}" URLBlocks = APIPrefix + APIVersionV1 + "/blocks/{id}" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func NewAccount ¶
func NewAccount(ba *block.BlockAccount) *Account
type FrozenAccount ¶
type FrozenAccount struct {
// contains filtered or unexported fields
}
func NewFrozenAccount ¶
func NewFrozenAccount(ba *block.BlockAccount, info FrozenAccountInfo) *FrozenAccount
func (FrozenAccount) GetMap ¶
func (fa FrozenAccount) GetMap() hal.Entry
func (FrozenAccount) LinkSelf ¶
func (fa FrozenAccount) LinkSelf() string
func (FrozenAccount) Resource ¶
func (fa FrozenAccount) Resource() *hal.Resource
type FrozenAccountInfo ¶
type FrozenAccountState ¶
type FrozenAccountState string
const ( FrozenState FrozenAccountState = "frozen" MeltingState FrozenAccountState = "melting" UnfrozenState FrozenAccountState = "unfrozen" ReturnedState FrozenAccountState = "returned" )
type Operation ¶
func NewOperation ¶
func NewOperation(bo *block.BlockOperation, opIndex int) *Operation
func (Operation) BlockOperation ¶
func (o Operation) BlockOperation() *block.BlockOperation
type ResourceList ¶
func NewResourceList ¶
func NewResourceList(list []Resource, selfLink, nextLink, prevLink string) *ResourceList
func (ResourceList) GetMap ¶
func (l ResourceList) GetMap() hal.Entry
func (ResourceList) LinkNext ¶
func (l ResourceList) LinkNext() string
func (ResourceList) LinkPrev ¶
func (l ResourceList) LinkPrev() string
func (ResourceList) LinkSelf ¶
func (l ResourceList) LinkSelf() string
func (ResourceList) Resource ¶
func (l ResourceList) Resource() *hal.Resource
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func NewTransaction ¶
func NewTransaction(bt *block.BlockTransaction, tx transaction.Transaction) *Transaction
func (Transaction) GetMap ¶
func (t Transaction) GetMap() hal.Entry
func (Transaction) LinkSelf ¶
func (t Transaction) LinkSelf() string
func (Transaction) Resource ¶
func (t Transaction) Resource() *hal.Resource
type TransactionStatus ¶
func NewTransactionStatus ¶
func NewTransactionStatus(hash, status string) *TransactionStatus
func (TransactionStatus) GetMap ¶
func (t TransactionStatus) GetMap() hal.Entry
func (TransactionStatus) LinkSelf ¶
func (t TransactionStatus) LinkSelf() string
func (TransactionStatus) Resource ¶
func (t TransactionStatus) Resource() *hal.Resource
Click to show internal directories.
Click to hide internal directories.