cmd

package
v0.0.0-...-0efd02e Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 5 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 {
	Server struct {
		Address       string `yaml:"address"`
		Timeout       int    `yaml:"timeout"`
		OtlpAddress   string `yaml:"otlp_address"`
		URLExpiration int    `yaml:"url_expiration_years"`
	} `yaml:"server"`
	Auth struct {
		KeyID          string `yaml:"key_id"`
		PrivateKeyFile string `yaml:"private_key_file"`
		Algorithm      string `yaml:"algorithm"`
	} `yaml:"auth"`
	store.MongoConfig `yaml:"mongo"`
}

Config stores app configuration

func AppConfig

func AppConfig(cfgPath string, logger *zap.Logger) (*Config, error)

AppConfig reads config from file and creates config struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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