config

package
v0.0.0-...-6574dfe Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 14 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 {
	MQ             messageimpl.Config        `json:"mq"                   required:"true"`
	CLA            clavalidatorimpl.Config   `json:"cla"                  required:"true"`
	Encryption     localutils.Config         `json:"encryption"           required:"true"`
	PkgManager     pkgmanagerimpl.Config     `json:"pkg_manager"          required:"true"`
	Middleware     middleware.Config         `json:"middleware"           required:"true"`
	Postgresql     postgresqlConfig          `json:"postgresql"           required:"true"`
	Maintainer     maintainerimpl.Config     `json:"maintainer"           required:"true"`
	SoftwarePkg    domainConfig              `json:"software_pkg"         required:"true"`
	Translation    translationimpl.Config    `json:"translation"          required:"true"`
	SigValidator   sigvalidatorimpl.Config   `json:"sig"                  required:"true"`
	SensitiveWords sensitivewordsimpl.Config `json:"sensitive_words"      required:"true"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

func (*Config) SetDefault

func (cfg *Config) SetDefault()

func (*Config) Validate

func (cfg *Config) Validate() error

Jump to

Keyboard shortcuts

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