Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶ added in v0.4.0
type API interface {
Call(endpoint string) (body []byte, err error)
CallWithContext(ctx context.Context, endpoint string) (body []byte, err error)
}
API interface for a RapiAPI client
type Client ¶
Client represents a RapidAPI client
APIKey should contain the RapidAPI API Key If Hostname is set, it will be used to construct the URL and fill in the x-rapidapi-host header field. For unit tests, set the URL field and ignore the Hostname field.
Click to show internal directories.
Click to hide internal directories.