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 Counters
- type CreateArguments
- type CreateReply
- type InfoArguments
- type InfoReply
- type IssueStatus
- type Node
- type NodeArguments
- type NodeReply
- type Owner
- type OwnerBitmarksArguments
- type OwnerBitmarksReply
- type PayArguments
- type PayReply
- type ProofArguments
- type ProofReply
- type ProvenanceArguments
- type ProvenanceRecord
- type ProvenanceReply
- type ServerArgument
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 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) Pay ¶ added in v0.2.0
func (bitmarks *Bitmarks) Pay(arguments *PayArguments, reply *PayReply) 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 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 reservoir.PayId `json:"payId"` PayNonce payment.PayNonce `json:"payNonce"` Difficulty string `json:"difficulty"` }
type InfoArguments ¶
type InfoArguments struct{}
type IssueStatus ¶ added in v0.2.5
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 PayArguments ¶
type PayReply ¶
type PayReply struct {
Status payment.TrackingStatus `json:"status"`
}
type ProofArguments ¶ added in v0.2.0
type ProofReply ¶ added in v0.2.0
type ProofReply struct {
Status payment.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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.