github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/bft/rpc/client/doc.go (about)

     1  // Package client provides a general purpose interface (Client) for connecting
     2  // to a tendermint node, as well as higher-level functionality.
     3  //
     4  // The main implementation for production code is client.HTTP, which
     5  // connects via http to the jsonrpc interface of the tendermint node.
     6  //
     7  // For connecting to a node running in the same process (eg. when
     8  // compiling the abci app in the same process), you can use the client.Local
     9  // implementation.
    10  //
    11  // For mocking out server responses during testing to see behavior for
    12  // arbitrary return values, use the mock package.
    13  //
    14  // In addition to the Client interface, which should be used externally
    15  // for maximum flexibility and testability, and two implementations,
    16  // this package also provides helper functions that work on any Client
    17  // implementation.
    18  package client