package
2.1.0+incompatible
Repository: https://github.com/thethingsnetwork/go-account-lib.git
Documentation: pkg.go.dev

# Functions

DELETE does a delete request to the account server.
GET does a get request to the account server, decoding the result into the object pointed to byres.
GETBody does a get request to the account server and returns the body as a ReadCloser.
NewRoundTripper creates a new RoundTripper that will add the provided headers to each request.
PATCH creates an HTTP Patch request to the specified server, with the body encoded as JSON, decoding the result into the object pointed to byres.
POST
POST creates an HTTP Post request to the specified server, with the body encoded as JSON, decoding the result into the object pointed to byres.
PUT creates an HTTP Put request to the specified server, with the body encoded as JSON, decoding the result into the object pointed to byres.
Validate recursivly validates most structures using govalidator struct tags.

# Variables

MaxRedirects specifies the maximum number of redirects an HTTP request should be able to make.

# Structs

HTTPError represents an error coming over HTTP, it is not an error with executing the request itself, it is an error the server is flaggin to the client.
RoundTripper is a http.RoundTripper that check the Warning header and can add extra headers to the request.