Documentation ¶
Index ¶
- Constants
- type Batch
- type Batch_List
- type Batch_Promise
- type Discover
- type Discover_List
- type Discover_Promise
- type Fee
- type Fee_List
- type Fee_Promise
- type Inventory
- type Inventory_List
- type Inventory_Promise
- type Mempool
- type Mempool_List
- type Mempool_Promise
- type Peers
- type Peers_List
- type Peers_Promise
- type Ping
- type Ping_List
- type Ping_Promise
- type Pong
- type Pong_List
- type Pong_Promise
- type Proto
- type Request
- type Request_List
- type Request_Promise
- type Transaction
- func (s Transaction) Data() ([]byte, error)
- func (s Transaction) Fees() (Fee_List, error)
- func (s Transaction) HasData() bool
- func (s Transaction) HasFees() bool
- func (s Transaction) HasSignatures() bool
- func (s Transaction) HasTransfers() bool
- func (s Transaction) NewFees(n int32) (Fee_List, error)
- func (s Transaction) NewSignatures(n int32) (capnp.DataList, error)
- func (s Transaction) NewTransfers(n int32) (Transfer_List, error)
- func (s Transaction) Nonce() uint64
- func (s Transaction) SetData(v []byte) error
- func (s Transaction) SetFees(v Fee_List) error
- func (s Transaction) SetNonce(v uint64)
- func (s Transaction) SetSignatures(v capnp.DataList) error
- func (s Transaction) SetTransfers(v Transfer_List) error
- func (s Transaction) Signatures() (capnp.DataList, error)
- func (s Transaction) String() string
- func (s Transaction) Transfers() (Transfer_List, error)
- type Transaction_List
- type Transaction_Promise
- type Transfer
- func (s Transfer) Amount() uint64
- func (s Transfer) From() ([]byte, error)
- func (s Transfer) HasFrom() bool
- func (s Transfer) HasTo() bool
- func (s Transfer) SetAmount(v uint64)
- func (s Transfer) SetFrom(v []byte) error
- func (s Transfer) SetTo(v []byte) error
- func (s Transfer) String() string
- func (s Transfer) To() ([]byte, error)
- type Transfer_List
- type Transfer_Promise
- type Z
- func (s Z) Batch() (Batch, error)
- func (s Z) Discover() (Discover, error)
- func (s Z) HasBatch() bool
- func (s Z) HasDiscover() bool
- func (s Z) HasInventory() bool
- func (s Z) HasMempool() bool
- func (s Z) HasPeers() bool
- func (s Z) HasPing() bool
- func (s Z) HasPong() bool
- func (s Z) HasRequest() bool
- func (s Z) HasTransaction() bool
- func (s Z) Inventory() (Inventory, error)
- func (s Z) Mempool() (Mempool, error)
- func (s Z) NewBatch() (Batch, error)
- func (s Z) NewDiscover() (Discover, error)
- func (s Z) NewInventory() (Inventory, error)
- func (s Z) NewMempool() (Mempool, error)
- func (s Z) NewPeers() (Peers, error)
- func (s Z) NewPing() (Ping, error)
- func (s Z) NewPong() (Pong, error)
- func (s Z) NewRequest() (Request, error)
- func (s Z) NewTransaction() (Transaction, error)
- func (s Z) Peers() (Peers, error)
- func (s Z) Ping() (Ping, error)
- func (s Z) Pong() (Pong, error)
- func (s Z) Request() (Request, error)
- func (s Z) SetBatch(v Batch) error
- func (s Z) SetDiscover(v Discover) error
- func (s Z) SetInventory(v Inventory) error
- func (s Z) SetMempool(v Mempool) error
- func (s Z) SetPeers(v Peers) error
- func (s Z) SetPing(v Ping) error
- func (s Z) SetPong(v Pong) error
- func (s Z) SetRequest(v Request) error
- func (s Z) SetTransaction(v Transaction) error
- func (s Z) String() string
- func (s Z) Transaction() (Transaction, error)
- func (s Z) Which() Z_Which
- type Z_List
- type Z_Promise
- func (p Z_Promise) Batch() Batch_Promise
- func (p Z_Promise) Discover() Discover_Promise
- func (p Z_Promise) Inventory() Inventory_Promise
- func (p Z_Promise) Mempool() Mempool_Promise
- func (p Z_Promise) Peers() Peers_Promise
- func (p Z_Promise) Ping() Ping_Promise
- func (p Z_Promise) Pong() Pong_Promise
- func (p Z_Promise) Request() Request_Promise
- func (p Z_Promise) Struct() (Z, error)
- func (p Z_Promise) Transaction() Transaction_Promise
- type Z_Which
Constants ¶
const Batch_TypeID = 0x864e51a95b5bacee
Batch_TypeID is the unique identifier for the type Batch.
const Discover_TypeID = 0x8aec40e836a6b678
Discover_TypeID is the unique identifier for the type Discover.
const Fee_TypeID = 0xcda91da91de91079
Fee_TypeID is the unique identifier for the type Fee.
const Inventory_TypeID = 0x894854b19b0bdf88
Inventory_TypeID is the unique identifier for the type Inventory.
const Mempool_TypeID = 0xf0380ead552fac15
Mempool_TypeID is the unique identifier for the type Mempool.
const Peers_TypeID = 0xbd8afa1dc55b521a
Peers_TypeID is the unique identifier for the type Peers.
const Ping_TypeID = 0xa4c448def3da1fe5
Ping_TypeID is the unique identifier for the type Ping.
const Pong_TypeID = 0xe5b532ff4fa02dff
Pong_TypeID is the unique identifier for the type Pong.
const Request_TypeID = 0xe8d311873fc93b93
Request_TypeID is the unique identifier for the type Request.
const Transaction_TypeID = 0xec9fd906d129035f
Transaction_TypeID is the unique identifier for the type Transaction.
const Transfer_TypeID = 0xfebd493a48891da9
Transfer_TypeID is the unique identifier for the type Transfer.
const Z_TypeID = 0xb46d352733d41eba
Z_TypeID is the unique identifier for the type Z.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
func (Batch) HasTransactions ¶
func (Batch) NewTransactions ¶
func (s Batch) NewTransactions(n int32) (Transaction_List, error)
NewTransactions sets the transactions field to a newly allocated Transaction_List, preferring placement in s's segment.
func (Batch) SetTransactions ¶
func (s Batch) SetTransactions(v Transaction_List) error
func (Batch) Transactions ¶
func (s Batch) Transactions() (Transaction_List, error)
type Batch_List ¶
Batch_List is a list of Batch.
func NewBatch_List ¶
func NewBatch_List(s *capnp.Segment, sz int32) (Batch_List, error)
NewBatch creates a new list of Batch.
func (Batch_List) At ¶
func (s Batch_List) At(i int) Batch
func (Batch_List) String ¶
func (s Batch_List) String() string
type Batch_Promise ¶
Batch_Promise is a wrapper for a Batch promised by a client call.
func (Batch_Promise) Struct ¶
func (p Batch_Promise) Struct() (Batch, error)
type Discover_List ¶
Discover_List is a list of Discover.
func NewDiscover_List ¶
func NewDiscover_List(s *capnp.Segment, sz int32) (Discover_List, error)
NewDiscover creates a new list of Discover.
func (Discover_List) At ¶
func (s Discover_List) At(i int) Discover
func (Discover_List) String ¶
func (s Discover_List) String() string
type Discover_Promise ¶
Discover_Promise is a wrapper for a Discover promised by a client call.
func (Discover_Promise) Struct ¶
func (p Discover_Promise) Struct() (Discover, error)
type Fee_Promise ¶
Fee_Promise is a wrapper for a Fee promised by a client call.
func (Fee_Promise) Struct ¶
func (p Fee_Promise) Struct() (Fee, error)
type Inventory ¶
type Inventory_List ¶
Inventory_List is a list of Inventory.
func NewInventory_List ¶
func NewInventory_List(s *capnp.Segment, sz int32) (Inventory_List, error)
NewInventory creates a new list of Inventory.
func (Inventory_List) At ¶
func (s Inventory_List) At(i int) Inventory
func (Inventory_List) String ¶
func (s Inventory_List) String() string
type Inventory_Promise ¶
Inventory_Promise is a wrapper for a Inventory promised by a client call.
func (Inventory_Promise) Struct ¶
func (p Inventory_Promise) Struct() (Inventory, error)
type Mempool_List ¶
Mempool_List is a list of Mempool.
func NewMempool_List ¶
func NewMempool_List(s *capnp.Segment, sz int32) (Mempool_List, error)
NewMempool creates a new list of Mempool.
func (Mempool_List) At ¶
func (s Mempool_List) At(i int) Mempool
func (Mempool_List) String ¶
func (s Mempool_List) String() string
type Mempool_Promise ¶
Mempool_Promise is a wrapper for a Mempool promised by a client call.
func (Mempool_Promise) Struct ¶
func (p Mempool_Promise) Struct() (Mempool, error)
type Peers ¶
func (Peers) HasAddresses ¶
func (Peers) NewAddresses ¶
NewAddresses sets the addresses field to a newly allocated capnp.TextList, preferring placement in s's segment.
type Peers_List ¶
Peers_List is a list of Peers.
func NewPeers_List ¶
func NewPeers_List(s *capnp.Segment, sz int32) (Peers_List, error)
NewPeers creates a new list of Peers.
func (Peers_List) At ¶
func (s Peers_List) At(i int) Peers
func (Peers_List) String ¶
func (s Peers_List) String() string
type Peers_Promise ¶
Peers_Promise is a wrapper for a Peers promised by a client call.
func (Peers_Promise) Struct ¶
func (p Peers_Promise) Struct() (Peers, error)
type Ping_List ¶
Ping_List is a list of Ping.
func NewPing_List ¶
NewPing creates a new list of Ping.
type Ping_Promise ¶
Ping_Promise is a wrapper for a Ping promised by a client call.
func (Ping_Promise) Struct ¶
func (p Ping_Promise) Struct() (Ping, error)
type Pong_List ¶
Pong_List is a list of Pong.
func NewPong_List ¶
NewPong creates a new list of Pong.
type Pong_Promise ¶
Pong_Promise is a wrapper for a Pong promised by a client call.
func (Pong_Promise) Struct ¶
func (p Pong_Promise) Struct() (Pong, error)
type Proto ¶
type Proto struct{}
Proto represents the capnproto serialization module.
type Request ¶
type Request_List ¶
Request_List is a list of Request.
func NewRequest_List ¶
func NewRequest_List(s *capnp.Segment, sz int32) (Request_List, error)
NewRequest creates a new list of Request.
func (Request_List) At ¶
func (s Request_List) At(i int) Request
func (Request_List) String ¶
func (s Request_List) String() string
type Request_Promise ¶
Request_Promise is a wrapper for a Request promised by a client call.
func (Request_Promise) Struct ¶
func (p Request_Promise) Struct() (Request, error)
type Transaction ¶
func NewRootTransaction ¶
func NewRootTransaction(s *capnp.Segment) (Transaction, error)
func NewTransaction ¶
func NewTransaction(s *capnp.Segment) (Transaction, error)
func ReadRootTransaction ¶
func ReadRootTransaction(msg *capnp.Message) (Transaction, error)
func (Transaction) Data ¶
func (s Transaction) Data() ([]byte, error)
func (Transaction) Fees ¶
func (s Transaction) Fees() (Fee_List, error)
func (Transaction) HasData ¶
func (s Transaction) HasData() bool
func (Transaction) HasFees ¶
func (s Transaction) HasFees() bool
func (Transaction) HasSignatures ¶
func (s Transaction) HasSignatures() bool
func (Transaction) HasTransfers ¶
func (s Transaction) HasTransfers() bool
func (Transaction) NewFees ¶
func (s Transaction) NewFees(n int32) (Fee_List, error)
NewFees sets the fees field to a newly allocated Fee_List, preferring placement in s's segment.
func (Transaction) NewSignatures ¶
func (s Transaction) NewSignatures(n int32) (capnp.DataList, error)
NewSignatures sets the signatures field to a newly allocated capnp.DataList, preferring placement in s's segment.
func (Transaction) NewTransfers ¶
func (s Transaction) NewTransfers(n int32) (Transfer_List, error)
NewTransfers sets the transfers field to a newly allocated Transfer_List, preferring placement in s's segment.
func (Transaction) Nonce ¶
func (s Transaction) Nonce() uint64
func (Transaction) SetData ¶
func (s Transaction) SetData(v []byte) error
func (Transaction) SetFees ¶
func (s Transaction) SetFees(v Fee_List) error
func (Transaction) SetNonce ¶
func (s Transaction) SetNonce(v uint64)
func (Transaction) SetSignatures ¶
func (s Transaction) SetSignatures(v capnp.DataList) error
func (Transaction) SetTransfers ¶
func (s Transaction) SetTransfers(v Transfer_List) error
func (Transaction) Signatures ¶
func (s Transaction) Signatures() (capnp.DataList, error)
func (Transaction) String ¶
func (s Transaction) String() string
func (Transaction) Transfers ¶
func (s Transaction) Transfers() (Transfer_List, error)
type Transaction_List ¶
Transaction_List is a list of Transaction.
func NewTransaction_List ¶
func NewTransaction_List(s *capnp.Segment, sz int32) (Transaction_List, error)
NewTransaction creates a new list of Transaction.
func (Transaction_List) At ¶
func (s Transaction_List) At(i int) Transaction
func (Transaction_List) Set ¶
func (s Transaction_List) Set(i int, v Transaction) error
func (Transaction_List) String ¶
func (s Transaction_List) String() string
type Transaction_Promise ¶
Transaction_Promise is a wrapper for a Transaction promised by a client call.
func (Transaction_Promise) Struct ¶
func (p Transaction_Promise) Struct() (Transaction, error)
type Transfer_List ¶
Transfer_List is a list of Transfer.
func NewTransfer_List ¶
func NewTransfer_List(s *capnp.Segment, sz int32) (Transfer_List, error)
NewTransfer creates a new list of Transfer.
func (Transfer_List) At ¶
func (s Transfer_List) At(i int) Transfer
func (Transfer_List) String ¶
func (s Transfer_List) String() string
type Transfer_Promise ¶
Transfer_Promise is a wrapper for a Transfer promised by a client call.
func (Transfer_Promise) Struct ¶
func (p Transfer_Promise) Struct() (Transfer, error)
type Z ¶
func (Z) HasDiscover ¶
func (Z) HasInventory ¶
func (Z) HasMempool ¶
func (Z) HasRequest ¶
func (Z) HasTransaction ¶
func (Z) NewBatch ¶
NewBatch sets the batch field to a newly allocated Batch struct, preferring placement in s's segment.
func (Z) NewDiscover ¶
NewDiscover sets the discover field to a newly allocated Discover struct, preferring placement in s's segment.
func (Z) NewInventory ¶
NewInventory sets the inventory field to a newly allocated Inventory struct, preferring placement in s's segment.
func (Z) NewMempool ¶
NewMempool sets the mempool field to a newly allocated Mempool struct, preferring placement in s's segment.
func (Z) NewPeers ¶
NewPeers sets the peers field to a newly allocated Peers struct, preferring placement in s's segment.
func (Z) NewPing ¶
NewPing sets the ping field to a newly allocated Ping struct, preferring placement in s's segment.
func (Z) NewPong ¶
NewPong sets the pong field to a newly allocated Pong struct, preferring placement in s's segment.
func (Z) NewRequest ¶
NewRequest sets the request field to a newly allocated Request struct, preferring placement in s's segment.
func (Z) NewTransaction ¶
func (s Z) NewTransaction() (Transaction, error)
NewTransaction sets the transaction field to a newly allocated Transaction struct, preferring placement in s's segment.
func (Z) SetDiscover ¶
func (Z) SetInventory ¶
func (Z) SetMempool ¶
func (Z) SetRequest ¶
func (Z) SetTransaction ¶
func (s Z) SetTransaction(v Transaction) error
func (Z) Transaction ¶
func (s Z) Transaction() (Transaction, error)
type Z_Promise ¶
Z_Promise is a wrapper for a Z promised by a client call.
func (Z_Promise) Batch ¶
func (p Z_Promise) Batch() Batch_Promise
func (Z_Promise) Discover ¶
func (p Z_Promise) Discover() Discover_Promise
func (Z_Promise) Inventory ¶
func (p Z_Promise) Inventory() Inventory_Promise
func (Z_Promise) Mempool ¶
func (p Z_Promise) Mempool() Mempool_Promise
func (Z_Promise) Peers ¶
func (p Z_Promise) Peers() Peers_Promise
func (Z_Promise) Ping ¶
func (p Z_Promise) Ping() Ping_Promise
func (Z_Promise) Pong ¶
func (p Z_Promise) Pong() Pong_Promise
func (Z_Promise) Request ¶
func (p Z_Promise) Request() Request_Promise
func (Z_Promise) Transaction ¶
func (p Z_Promise) Transaction() Transaction_Promise
Source Files ¶
- batch.capnp.go
- batch.go
- discover.capnp.go
- discover.go
- fee.capnp.go
- fee.go
- inventory.capnp.go
- inventory.go
- mempool.capnp.go
- mempool.go
- peers.capnp.go
- peers.go
- ping.capnp.go
- ping.go
- pong.capnp.go
- pong.go
- proto.go
- request.capnp.go
- request.go
- transaction.capnp.go
- transaction.go
- transfer.capnp.go
- transfer.go
- z.capnp.go