legacyparams

package
v1.8.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API added in v1.18.1

type API struct {
	DisableSSLVerify bool
	Key              string
	Plugin           string
	ProxyURL         string
	SSLCertFilepath  string
	Timeout          time.Duration
	URL              string
}

API contains api related parameters.

func (API) String added in v1.18.1

func (p API) String() string

String implements fmt.Stringer interface.

type Params added in v1.18.1

type Params struct {
	OfflineDisabled bool
	OfflineSyncMax  int
	API             API
}

Params contains legacy params.

func Load added in v1.18.1

func Load(v *viper.Viper) (Params, error)

Load loads legacy params from viper.Viper instance. Returns ErrAuth if failed to retrieve api key.

Jump to

Keyboard shortcuts

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