Documentation
¶
Overview ¶
Package http implements ockam.Node interface to enable interaction with a remote node that can be commiunicated with over http.
Index ¶
- func Discoverer(name string, port int) ockam.NodeDiscoverer
- type BroadcastTxSyncResponse
- type CommitResponse
- type Node
- func (n *Node) BroadcastTxSync(tx string) ([]byte, error)
- func (n *Node) Call(q string, r interface{}) error
- func (n *Node) Chain() ockam.Chain
- func (n *Node) Commit(height string) (*node.Commit, error)
- func (n *Node) ID() string
- func (n *Node) LatestBlock() ockam.Block
- func (n *Node) LatestCommit() *node.Commit
- func (n *Node) Peers() []ockam.Node
- func (n *Node) Register(e ockam.Entity) (ockam.Claim, error)
- func (n *Node) Submit(cl ockam.Claim) error
- func (n *Node) Sync() error
- func (n *Node) Tx(hash []byte) (*node.Tx, error)
- type Option
- type TxResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BroadcastTxSyncResponse ¶
type BroadcastTxSyncResponse struct {
Result struct {
Code int `json:"code"`
Data string `json:"data"`
Log string `json:"log"`
Hash string `json:"hash"`
} `json:"result"`
Error interface{} `json:"error"`
}
BroadcastTxSyncResponse is
type CommitResponse ¶
CommitResponse is
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node represent a remote node
func (*Node) BroadcastTxSync ¶
BroadcastTxSync broadcasts a transaction
type TxResponse ¶
TxResponse is
Click to show internal directories.
Click to hide internal directories.