package
0.0.0-20200129003244-9aa193b98a7a
Repository: https://github.com/xanderflood/fruit-pi-server.git
Documentation: pkg.go.dev

# Functions

DefaultAuthorizer returns a roundtripper to attach a bearer token to each request.
DefaultRetryer returns a roundtripper to retry certain response codes.
NewClient creates a client that directly uses the provided transport.
NewDefaultClient creates a client with default middlewares.

# Structs

Client implements API over HTTPs.
ConfigureDeviceRequest encodes a single request for user registration.
Device represents the response to a device-related endpoint.
GetDeviceConfigRequest encodes a single request for user registration.
GetDeviceTokenRequest encodes a single request for user registration.
InsertReadingRequest encodes a single request for user registration.
Reading represents the response to a reading-related endpoint.
RegistrationRequest encodes a single request for user registration.

# Interfaces

API is the client interfacego:generate counterfeiter .
Doer impelments the http Do methodgo:generate counterfeiter .
RoundTripper impelments the http RoundTrip methodgo:generate counterfeiter .

# Type aliases

RoundTripHandler is a helper type for building RoundTrippers.