config

package
v0.0.0-...-fa32389 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostgresEntDriver = "pgx"
	SqliteEntDriver   = "sqlite"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Environment string `env:"ENVIRONMENT" default:"dev" flag:"-"`
	PostgresDSN string `` /* 160-byte string literal not displayed */

	EntDriver string `env:"ENT_DRIVER" default:"postgres" yaml:"ent-driver" flag:"-"`

	Server Server
}

type Server

type Server struct {
	Port           string `env:"SERVE_PORT" default:"8080" flag:"-"`
	TLS            bool   `env:"TLS" default:"false" flag:"-"`
	TLSPort        string `env:"TLS_PORT" default:"443" flag:"-"`
	CertPath       string `env:"CERT_PATH" default:"invoiceexchange.local.pem" flag:"-"`
	CertPrivateKey string `env:"CERT_PRIVATE_KEY" default:"invoiceexchange.local-key.pem" flag:"-"`
}

Jump to

Keyboard shortcuts

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