config

package
v0.0.0-...-2db41fb Latest Latest
Warning

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

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

Documentation

Overview

Package config implements the necessary structures and parsing for server configuration

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildVersion = "N/A"
	BuildDate    = "N/A"
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Address      string `env:"RUN_ADDRESS"`
	GRPCAddress  string `env:"GRPC_ADDRESS"`
	DatabaseConn string `env:"DATABASE_URI"`
	SigningKey   string `env:"SUPER_KEY"`
	CryptoCrt    string `env:"CRYPTO_CERT"`
	CryptoKey    string `env:"CRYPTO_KEY"`
}

Config structure for working with server configuration

func ParseConfig

func ParseConfig() (*Config, error)

ParseConfig parsing ENV + command line for reading configuration

Jump to

Keyboard shortcuts

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