Documentation
¶
Overview ¶
Copyright 2017-2018 OneLedger
Cover over the Tendermint client handling.
TODO: Make this generic to handle HTTP and local clients
Copyright 2017-2018 OneLedger ¶
TODO: We want configurable, switchable conversions for the different pathways
- transactions sent from Tendermint (is this a mix between wire and JSON?)
- data stored in LevelDB
- queries coming in from http
Index ¶
- func Broadcast(packet []byte) *ctypes.ResultBroadcastTx
- func BroadcastCommit(packet []byte) *ctypes.ResultBroadcastTxCommit
- func Deserialize(input []byte, output interface{}) (msg interface{}, err error)
- func GetClient() (client *rpcclient.HTTP)
- func NewAppClient() client.Client
- func Query(path string, packet []byte) (res *ctypes.ResultABCIQuery)
- func Search(query string, prove bool, page, perPage int) (res *ctypes.ResultTxSearch)
- func Serialize(input interface{}) (msg []byte, err error)
- func SetOption(key string, value string)
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Broadcast ¶
func Broadcast(packet []byte) *ctypes.ResultBroadcastTx
An async Broadcast to the chain
func BroadcastCommit ¶
func BroadcastCommit(packet []byte) *ctypes.ResultBroadcastTxCommit
A sync'ed broadcast to the chain that waits for the commit to happen
func Deserialize ¶
Given something in wire format, stick it back into the original golang types If output is a struct, make sure it is a pointer to a struct
func GetClient ¶
HTTP interface, allows Broadcast? TODO: Want to switch client type, based on config or cli args.
func Query ¶
func Query(path string, packet []byte) (res *ctypes.ResultABCIQuery)
Send a very specific query
func Search ¶ added in v0.5.3
func Search(query string, prove bool, page, perPage int) (res *ctypes.ResultTxSearch)
Types ¶
Click to show internal directories.
Click to hide internal directories.