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 of the 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:"ADDRESS"`
	GRPCAddress string `env:"GRPC_ADDRESS"`
	CryptoCrt   string `env:"CRYPTO_CERT"`
	CryptoKey   string `env:"CRYPTO_KEY"`
	CACertFile  string `env:"CA_CERT_KEY"`
}

Config structure for working with client configuration

func ParseConfig

func ParseConfig() (*Config, error)

ParseConfig parsing ENV and command line arguments to get the configuration

Jump to

Keyboard shortcuts

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