auth

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package auth contains a non-exhaustive list of custom authentication round trippers to be used as authentication middleware with a gidari HTTP Service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoundTrip

type RoundTrip func(*http.Request) (*http.Response, error)

RoundTrip is an HTTP round tripper that acts as a middleware to add auth requirements to HTTP requests.

func NewBasicAuthRoundTrip

func NewBasicAuthRoundTrip(username, password string) RoundTrip

NewBasicAuthRoundTrip will return a "RoundTrip" function that can be used as a "RoundTrip" function in an "http.RoundTripper" interface to authenticate requests that require basic authentication.

func NewCoinbaseRoundTrip

func NewCoinbaseRoundTrip(key, secret, passphrase string) RoundTrip

NewCoinbaseRoundTrip will return a "RoundTrip" function that can be used as a "RoundTrip" function in an "http.RoundTripper" interface to authenticate requests to the Coinbase Cloud API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL