config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServerConfig

type APIServerConfig struct {
	CommonConfig
	ListenURL string `env:"CIQ_API_LISTEN_URL,required"`
	DBURL     string `env:"CIQ_DB_URL,required"`
}

func LoadAPIServerConfig

func LoadAPIServerConfig() (*APIServerConfig, error)

type CommonConfig

type CommonConfig struct {
	CredentialsFile string `env:"CIQ_CREDS_FILE,required"`
}

type ScannerConfig

type ScannerConfig struct {
	CommonConfig
	APIURL string `env:"CIQ_API_URL,required"`
}

func LoadScannerConfig

func LoadScannerConfig() (*ScannerConfig, error)

Jump to

Keyboard shortcuts

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