Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assets ¶
type Assets struct {
Log *logger.L
Limiter *rate.Limiter
Pool storage.Handle
IsNormalMode func(mode.Mode) bool
IsTestingChain func() bool
ReadOnly bool
}
Assets - type for the RPC
type GetArguments ¶
type GetArguments struct {
Fingerprints []string `json:"fingerprints"`
}
GetArguments - arguments for RPC request
type GetReply ¶
type GetReply struct {
Assets []Record `json:"assets"`
}
GetReply - results from get RPC request
type Record ¶
type Record struct {
Record string `json:"record"`
Confirmed bool `json:"confirmed"`
AssetId interface{} `json:"id,omitempty"`
Data interface{} `json:"data"`
}
Record - structure of asset records in the response
type RegisterReply ¶
type RegisterReply struct {
Assets []Status `json:"assets"`
}
RegisterReply - results from RPC request
type Status ¶
type Status struct {
AssetId *transactionrecord.AssetIdentifier `json:"id"`
Duplicate bool `json:"duplicate"`
}
Status - arguments for RPC request
Click to show internal directories.
Click to hide internal directories.