client

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuth

func NewAuth(config *config.ArrConfig) (client.Authenticator, error)

func NewClient

func NewClient(config *config.ArrConfig) (*base_client.Client, error)

Types

type ApiKeyAuth

type ApiKeyAuth struct {
	ApiKey string
}

func (*ApiKeyAuth) Auth

func (a *ApiKeyAuth) Auth(req *http.Request) error

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
	ApiKey   string
}

func (*BasicAuth) Auth

func (a *BasicAuth) Auth(req *http.Request) error

type FormAuth

type FormAuth struct {
	Username    string
	Password    string
	ApiKey      string
	AuthBaseURL *url.URL
	Transport   http.RoundTripper
	// contains filtered or unexported fields
}

func (*FormAuth) Auth

func (a *FormAuth) Auth(req *http.Request) error

Jump to

Keyboard shortcuts

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