Documentation
¶
Index ¶
- Constants
- func Callback(conn io.ReadWriteCloser, argument interface{})
- type Asset
- type AssetGetArguments
- type AssetGetReply
- type AssetIndexesArguments
- type AssetIndexesReply
- type AssetRegisterReply
- type Assets
- type Bitmark
- func (bitmark *Bitmark) Issue(arguments *transaction.BitmarkIssue, reply *BitmarkIssueReply) error
- func (bitmark *Bitmark) Provenance(arguments *ProvenanceArguments, reply *ProvenanceReply) error
- func (bitmark *Bitmark) Transfer(arguments *transaction.BitmarkTransfer, reply *BitmarkTransferReply) error
- type BitmarkIssueReply
- type BitmarkTransferReply
- type Bitmarks
- type Block
- type BlockGetArguments
- type BlockGetReply
- type InfoArguments
- type InfoReply
- type Node
- type NodeArguments
- type NodeReply
- type NumberArguments
- type NumberReply
- type PayArguments
- type PayReply
- type Pool
- type PoolArguments
- type PoolReply
- type ProvenanceArguments
- type ProvenanceRecord
- type ProvenanceReply
- type ServerArgument
- type Transaction
- type TransactionGetArguments
- type TransactionGetReply
- type TransactionPendingArguments
- type TransactionPendingReply
Constants ¶
View Source
const MaximumGetSize = 100
limit the number of gets
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Asset ¶
type Asset struct {
// contains filtered or unexported fields
}
func (*Asset) Register ¶
func (asset *Asset) Register(arguments *transaction.AssetData, reply *AssetRegisterReply) error
type AssetGetArguments ¶
type AssetGetArguments struct {
Fingerprints []string `json:"fingerprints"`
}
type AssetGetReply ¶
type AssetGetReply struct {
Assets []transaction.Decoded `json:"assets"`
}
type AssetIndexesArguments ¶
type AssetIndexesArguments struct {
Indexes []transaction.AssetIndex `json:"indexes"`
}
type AssetIndexesReply ¶
type AssetIndexesReply struct {
Assets []transaction.Decoded `json:"assets"`
}
type AssetRegisterReply ¶
type AssetRegisterReply struct {
TxId transaction.Link `json:"txid"`
AssetIndex transaction.AssetIndex `json:"asset"`
PaymentAddress []block.MinerAddress `json:"paymentAddress"`
Duplicate bool `json:"duplicate"`
Err string `json:"error,omitempty"`
}
type Assets ¶
type Assets struct {
// contains filtered or unexported fields
}
func (*Assets) Get ¶
func (assets *Assets) Get(arguments *AssetGetArguments, reply *AssetGetReply) error
func (*Assets) Index ¶
func (assets *Assets) Index(arguments *AssetIndexesArguments, reply *AssetIndexesReply) error
func (*Assets) Register ¶
func (assets *Assets) Register(arguments *[]transaction.AssetData, reply *[]AssetRegisterReply) error
type Bitmark ¶
type Bitmark struct {
// contains filtered or unexported fields
}
func (*Bitmark) Issue ¶
func (bitmark *Bitmark) Issue(arguments *transaction.BitmarkIssue, reply *BitmarkIssueReply) error
func (*Bitmark) Provenance ¶
func (bitmark *Bitmark) Provenance(arguments *ProvenanceArguments, reply *ProvenanceReply) error
func (*Bitmark) Transfer ¶
func (bitmark *Bitmark) Transfer(arguments *transaction.BitmarkTransfer, reply *BitmarkTransferReply) error
type BitmarkIssueReply ¶
type BitmarkIssueReply struct {
TxId transaction.Link `json:"txid"`
PaymentAddress []block.MinerAddress `json:"paymentAddress"`
Duplicate bool `json:"duplicate"`
Err string `json:"error,omitempty"`
}
type BitmarkTransferReply ¶
type BitmarkTransferReply struct {
TxId transaction.Link `json:"txid"`
PaymentAddress []block.MinerAddress `json:"paymentAddress"`
Duplicate bool `json:"duplicate"`
Err string `json:"error,omitempty"`
}
type Bitmarks ¶
type Bitmarks struct {
// contains filtered or unexported fields
}
func (*Bitmarks) Issue ¶
func (bitmarks *Bitmarks) Issue(arguments *[]transaction.BitmarkIssue, reply *[]BitmarkIssueReply) error
func (*Bitmarks) Transfer ¶
func (bitmarks *Bitmarks) Transfer(arguments *[]transaction.BitmarkTransfer, reply *[]BitmarkTransferReply) error
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func (*Block) Get ¶
func (blk *Block) Get(arguments *BlockGetArguments, reply *BlockGetReply) error
func (*Block) Number ¶
func (blk *Block) Number(arguments *NumberArguments, reply *NumberReply) error
Block.Number function
type BlockGetArguments ¶
type BlockGetArguments struct {
Number uint64 `json:"number"`
}
type BlockGetReply ¶
type InfoArguments ¶
type InfoArguments struct{}
type NodeArguments ¶
type PayArguments ¶
type PoolArguments ¶
type PoolArguments struct {
Index *transaction.IndexCursor `json:"index"`
Count int `json:"count"`
}
type PoolReply ¶
type PoolReply struct {
Transactions []transaction.Decoded `json:"transactions"`
NextIndex transaction.IndexCursor `json:"nextIndex"`
}
type ProvenanceArguments ¶
type ProvenanceArguments struct {
TxId transaction.Link `json:"txid"`
Count int `json:"count"`
}
type ProvenanceRecord ¶
type ProvenanceRecord struct {
Record string `json:"record"`
TxId transaction.Link `json:"txid"`
State transaction.State `json:"state"`
Data interface{} `json:"data"`
}
can be any of the transaction records
type ProvenanceReply ¶
type ProvenanceReply struct {
Data []ProvenanceRecord `json:"data"`
}
type ServerArgument ¶
the argument passed to the callback
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) Get ¶
func (t *Transaction) Get(arguments *TransactionGetArguments, reply *TransactionGetReply) error
func (*Transaction) Pay ¶
func (t *Transaction) Pay(arguments *PayArguments, reply *PayReply) error
func (*Transaction) Pending ¶
func (t *Transaction) Pending(arguments *TransactionPendingArguments, reply *TransactionPendingReply) error
type TransactionGetArguments ¶
type TransactionGetArguments struct {
TxIds []transaction.Link `json:"txids"`
}
type TransactionGetReply ¶
type TransactionGetReply struct {
Transactions []transaction.Decoded `json:"transactions"`
}
type TransactionPendingArguments ¶
type TransactionPendingArguments struct {
}
type TransactionPendingReply ¶
type TransactionPendingReply struct {
Transactions []transaction.Decoded `json:"transactions"`
}
Click to show internal directories.
Click to hide internal directories.