config

package
v0.2.105 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccountID            string        `mapstructure:"accountID"`
	BackendOpenAPI       string        `mapstructure:"backendOpenAPI"`
	ClusterName          string        `mapstructure:"clusterName"`
	EventReceiverRestURL string        `mapstructure:"eventReceiverRestURL"`
	KeepLocal            bool          `mapstructure:"keepLocal"`
	ListingURL           string        `mapstructure:"listingURL"`
	MaxImageSize         int64         `mapstructure:"maxImageSize"`
	ScanConcurrency      int           `mapstructure:"scanConcurrency"`
	ScanTimeout          time.Duration `mapstructure:"scanTimeout"`
	Storage              bool          `mapstructure:"storage"`
}

func LoadConfig

func LoadConfig(path string) (Config, error)

LoadConfig reads configuration from file or environment variables.

Jump to

Keyboard shortcuts

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