Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ABCIKeyQuery ¶
Types ¶
type ABCIIterator ¶
func ABCIFullRangeQuery ¶
func ABCIFullRangeQuery(ctx context.Context, bns BnsClient, path, data string) ABCIIterator
func ABCIRangeQuery ¶
type AbciQueryResponse ¶
type AbciQueryResponse struct {
Response AbciQueryResponseResponse
}
type BnsClient ¶
type BnsClient interface {
Get(ctx context.Context, path string, dest interface{}) error
Post(ctx context.Context, path string, 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.