config

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DriverOptions = []string{"postgres"}
)

Functions

func GenerateKeyPair

func GenerateKeyPair(bitsize int) (*rsa.PrivateKey, *rsa.PublicKey, error)

Types

type Config

type Config struct {
	AppPort            string
	DBDriver           string
	DBConnectionString string
	DBDebug            bool
	JWTSecret          string
	JWTPrivateKey      *rsa.PrivateKey
	JWTPublicKey       *rsa.PublicKey
	APIAllowedOrigins  []string
	MetricsEnabled     bool
	MetricsPort        string
}

func NewConfig

func NewConfig(logger *zap.SugaredLogger) *Config

Jump to

Keyboard shortcuts

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