Documentation ¶
Index ¶
- func ABCIKeyQuery(ctx context.Context, c BnsClient, path string, data []byte, ...) error
- type ABCIIterator
- func ABCIFullRangeQuery(ctx context.Context, bns BnsClient, path, data string) ABCIIterator
- func ABCIKeyQueryIter(ctx context.Context, c BnsClient, path string, data []byte) ABCIIterator
- func ABCIPrefixQuery(ctx context.Context, c BnsClient, path string, prefix []byte) ABCIIterator
- func ABCIRangeQuery(ctx context.Context, c BnsClient, path string, data string) ABCIIterator
- type BnsClient
- type HTTPBnsClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ABCIIterator ¶
func ABCIFullRangeQuery ¶
func ABCIFullRangeQuery(ctx context.Context, bns BnsClient, path, data string) ABCIIterator
func ABCIKeyQueryIter ¶ added in v0.21.4
func ABCIPrefixQuery ¶ added in v0.21.4
func ABCIRangeQuery ¶
type BnsClient ¶
type BnsClient interface { Get(ctx context.Context, path string, dest interface{}) error Post(ctx context.Context, data []byte, dest interface{}) error }
BnsClient is implemented by any service that provides access to BNS API.
type HTTPBnsClient ¶
type HTTPBnsClient struct {
// contains filtered or unexported fields
}
HTTPBnsClient implements BnsClient interface and it is using HTTP transport to communicate with BNS instance.
func NewHTTPBnsClient ¶
func NewHTTPBnsClient(apiURL string) *HTTPBnsClient
NewHTTPBnsClient returns an instance of a BnsClient that is using HTTP transport.
Click to show internal directories.
Click to hide internal directories.