Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRespID ¶
CheckRespID verifies if the ID sent is the same as received.
Types ¶
type Conn ¶
type Conn struct { AddrRPC string // contains filtered or unexported fields }
Conn stores the connections needed to index events and transactions.
func NewConn ¶
NewConn returns a new pointer to the connection structure. examples of rpc endpoints are: tcp://0.0.0.0:26657 examples of grpc endpoints are: 127.0.0.1:9090
type RPCRespChainID ¶
type RPCRespChainID struct { ID int `json:"id"` Result struct { Block struct { Header struct { ChainID string `json:"chain_id"` Height string `json:"height"` } `json:"header"` } `json:"block"` } `json:"result"` }
RPCRespChainID represents the response struct for a chain ID call.
func (RPCRespChainID) CheckRespID ¶
func (r RPCRespChainID) CheckRespID(idSent int) error
CheckRespID checks if the ID sent matches.
Click to show internal directories.
Click to hide internal directories.