config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertificateDir

func CertificateDir() string

func ClientConfigFile

func ClientConfigFile() string

func ConfigDir

func ConfigDir() string

func ConfigFile

func ConfigFile() string

func Save

func Save(cfg *Config, cfgFile string) error

func Validate

func Validate(cfg *Config) error

Types

type Config

type Config struct {
	Database *dbConfig    `json:"database,omitempty"`
	Service  *svcConfig   `json:"service,omitempty"`
	Queue    *queueConfig `json:"queue,omitempty"`
	Auth     *authConfig  `json:"auth,omitempty"`
}

func Load

func Load(cfgFile string) (*Config, error)

func LoadOrGenerate

func LoadOrGenerate(cfgFile string) (*Config, error)

func NewDefault

func NewDefault() *Config

func NewFromFile

func NewFromFile(cfgFile string) (*Config, error)

func (*Config) String

func (cfg *Config) String() string

Jump to

Keyboard shortcuts

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