package
3.7.0
Repository: https://github.com/contiamo/go-base.git
Documentation: pkg.go.dev

# Functions

NewBaseAPIClient creates a new instance of the base API client implementation.
TokenProviderFromCreator creates a token provider out of token creator.

# Variables

NoopTokenProvider is a token provider that returns an empty string which is ignored by `DoRequest`.

# Structs

APIError describes an error during unsuccessful HTTP request to an API.

# Interfaces

BaseAPIClient describes all basic HTTP client operations required to work with a JSON API.

# Type aliases

TokenProvider is a function that gets the token string for each request.