config

package
v0.0.0-...-1e0f0e2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const Version = 3

Variables

View Source
var Default = newDefaultConfig()

Functions

This section is empty.

Types

type CaTransport

type CaTransport struct {
	http.RoundTripper
}

func NewCaTransport

func NewCaTransport(roundTripper http.RoundTripper) *CaTransport

func (*CaTransport) RoundTrip

func (this *CaTransport) RoundTrip(req *http.Request) (*http.Response, error)

type Config

type Config struct {
	Secret     string
	BaseURL    *url.URL
	HttpClient *http.Client
	Token      string
	ApiKey     string
}

func NewConfig

func NewConfig(secret string, url *url.URL, transport *http.Transport) *Config

func NewConfigToken

func NewConfigToken(token string, apikey string, url *url.URL, transport *http.Transport) *Config

func (Config) AddAuth

func (c Config) AddAuth(query url.Values)

Jump to

Keyboard shortcuts

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