config

package
v0.0.0-...-367d749 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Username          *string
	Password          *string
	LogDebug          *bool
	MaskAuthorization *bool
	Endpoint          *string
	Token             *string

	// The HTTP client to use when sending requests. Defaults to
	// `http.DefaultClient`.
	HTTPClient *http.Client
}

func NewConfig

func NewConfig() *Config

func (*Config) WithDebug

func (c *Config) WithDebug(debug bool) *Config

func (*Config) WithEndpoint

func (c *Config) WithEndpoint(endpoint string) *Config

func (*Config) WithMaskAuthorization

func (c *Config) WithMaskAuthorization(debug bool) *Config

func (*Config) WithPassword

func (c *Config) WithPassword(password string) *Config

func (*Config) WithToken

func (c *Config) WithToken(token string) *Config

func (*Config) WithUsername

func (c *Config) WithUsername(username string) *Config

Jump to

Keyboard shortcuts

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