Documentation ¶
Overview ¶
this is to setup and handle all of the incoming JSON RPC requests from clients requiring bitmarkd services
standard golang RPC services can be used on the client side to access these services
Index ¶
- Constants
- func Callback(conn io.ReadWriteCloser, argument interface{})
- type AssetGetArguments
- type AssetGetReply
- type AssetRecord
- type AssetStatus
- type Assets
- type AssetsRegisterReply
- type Bitmark
- type BitmarkTransferReply
- type Bitmarks
- type BitmarksIssueReply
- type BitmarksRecord
- type ConnectorArguments
- type ConnectorReply
- type Counters
- type CreateArguments
- type CreateReply
- type InfoArguments
- type InfoReply
- type IssueStatus
- type Node
- func (node *Node) Connectors(arguments *ConnectorArguments, reply *ConnectorReply) error
- func (node *Node) Info(arguments *InfoArguments, reply *InfoReply) error
- func (node *Node) List(arguments *NodeArguments, reply *NodeReply) error
- func (node *Node) Subscribers(arguments *SubscriberArguments, reply *SubscriberReply) error
- type NodeArguments
- type NodeReply
- type Owner
- type OwnerBitmarksArguments
- type OwnerBitmarksReply
- type ProofArguments
- type ProofReply
- type ProvenanceArguments
- type ProvenanceRecord
- type ProvenanceReply
- type ServerArgument
- type SubscriberArguments
- type SubscriberReply
- type Transaction
- type TransactionArguments
- type TransactionStatusReply
Constants ¶
View Source
const MaximumGetSize = 100
limit the number of gets
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AssetGetArguments ¶
type AssetGetArguments struct {
Fingerprints []string `json:"fingerprints"`
}
type AssetGetReply ¶
type AssetGetReply struct {
Assets []AssetRecord `json:"assets"`
}
type AssetRecord ¶ added in v0.2.3
type AssetStatus ¶ added in v0.2.0
type AssetStatus struct { AssetIndex *transactionrecord.AssetIndex `json:"index"` Duplicate bool `json:"duplicate"` }
Assets registration -------------------
type Assets ¶
type Assets struct {
// contains filtered or unexported fields
}
func (*Assets) Get ¶
func (assets *Assets) Get(arguments *AssetGetArguments, reply *AssetGetReply) error
type AssetsRegisterReply ¶ added in v0.2.0
type AssetsRegisterReply struct {
Assets []AssetStatus `json:"assets"`
}
type Bitmark ¶
type Bitmark struct {
// contains filtered or unexported fields
}
func (*Bitmark) Provenance ¶
func (bitmark *Bitmark) Provenance(arguments *ProvenanceArguments, reply *ProvenanceReply) error
func (*Bitmark) Transfer ¶
func (bitmark *Bitmark) Transfer(arguments *transactionrecord.BitmarkTransfer, reply *BitmarkTransferReply) error
type BitmarkTransferReply ¶
type BitmarkTransferReply struct { TxId merkle.Digest `json:"txId"` PayId pay.PayId `json:"payId"` Payments map[string]transactionrecord.PaymentAlternative `json:"payments"` }
type Bitmarks ¶
type Bitmarks struct {
// contains filtered or unexported fields
}
func (*Bitmarks) Create ¶ added in v0.2.6
func (bitmarks *Bitmarks) Create(arguments *CreateArguments, reply *CreateReply) error
func (*Bitmarks) Proof ¶ added in v0.2.0
func (bitmarks *Bitmarks) Proof(arguments *ProofArguments, reply *ProofReply) error
type BitmarksIssueReply ¶ added in v0.2.0
type BitmarksRecord ¶ added in v0.1.2
type BitmarksRecord struct { Record string `json:"record"` TxId interface{} `json:"txId,omitempty"` AssetIndex interface{} `json:"index,omitempty"` Data interface{} `json:"data"` }
can be any of the transaction records
type ConnectorArguments ¶ added in v0.3.30
type ConnectorArguments struct{}
type ConnectorReply ¶ added in v0.3.30
type ConnectorReply struct {
Clients []string
}
type CreateArguments ¶ added in v0.2.6
type CreateArguments struct { Assets []*transactionrecord.AssetData `json:"assets"` Issues []*transactionrecord.BitmarkIssue `json:"issues"` }
type CreateReply ¶ added in v0.2.6
type CreateReply struct { Assets []AssetStatus `json:"assets"` Issues []IssueStatus `json:"issues"` PayId pay.PayId `json:"payId"` PayNonce reservoir.PayNonce `json:"payNonce"` Difficulty string `json:"difficulty"` }
type InfoArguments ¶
type InfoArguments struct{}
type IssueStatus ¶ added in v0.2.5
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) Connectors ¶ added in v0.3.30
func (node *Node) Connectors(arguments *ConnectorArguments, reply *ConnectorReply) error
func (*Node) Subscribers ¶ added in v0.3.30
func (node *Node) Subscribers(arguments *SubscriberArguments, reply *SubscriberReply) error
type NodeArguments ¶
type Owner ¶ added in v0.1.2
type Owner struct {
// contains filtered or unexported fields
}
func (*Owner) Bitmarks ¶ added in v0.1.2
func (owner *Owner) Bitmarks(arguments *OwnerBitmarksArguments, reply *OwnerBitmarksReply) error
type OwnerBitmarksArguments ¶ added in v0.1.2
type OwnerBitmarksReply ¶ added in v0.1.2
type OwnerBitmarksReply struct { Next uint64 `json:"next,string"` // start value for the next call Data []block.Ownership `json:"data"` // list of bitmarks either issue or transfer Tx map[string]BitmarksRecord `json:"tx"` // table of tx records }
type ProofArguments ¶ added in v0.2.0
type ProofReply ¶ added in v0.2.0
type ProofReply struct {
Status reservoir.TrackingStatus `json:"status"`
}
type ProvenanceArguments ¶
type ProvenanceRecord ¶
type ProvenanceRecord struct { Record string `json:"record"` IsOwner bool `json:"isOwner"` TxId interface{} `json:"txId,omitempty"` AssetIndex interface{} `json:"index,omitempty"` 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 SubscriberArguments ¶ added in v0.3.30
type SubscriberArguments struct{}
type SubscriberReply ¶ added in v0.3.30
type SubscriberReply struct {
Clients []string
}
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
Transaction is a rpc entry for transaction related functions
func (*Transaction) Status ¶ added in v0.3.30
func (t *Transaction) Status(arguments *TransactionArguments, reply *TransactionStatusReply) error
Status is an rpc api for query transaction status
type TransactionArguments ¶ added in v0.3.30
TransactionArguments is the arguments for statuc rpc request
type TransactionStatusReply ¶ added in v0.3.33
type TransactionStatusReply struct {
Status string `json:"status"`
}
TransactionStatus is a struct for an rpc reply
Click to show internal directories.
Click to hide internal directories.