config

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	DeleteDataAfter               *time.Duration `mapstructure:"DELETE_DATA_AFTER"`
	ExpirationTime                int            `mapstructure:"EXPIRATION_TIME"`
	TemporaryAccessExpirationTime int            `mapstructure:"TEMPORARY_ACCESS_EXPIRATION_TIME"`
	SkipRestrictions              bool           `mapstructure:"SKIP_RESTRICTIONS"`
	Debug                         bool           `mapstructure:"DEBUG"`
	CollectStatisticsAfter        time.Time      `mapstructure:"COLLECT_STATISTICS_AFTER"`
	SyncInterval                  time.Duration  `mapstructure:"SYNC_INTERVAL"`

	// DB
	PostgresHost     string `mapstructure:"POSTGRES_HOST"`
	PostgresPort     int    `mapstructure:"POSTGRES_PORT"`
	PostgresUser     string `mapstructure:"POSTGRES_USER"`
	PostgresPassword string `mapstructure:"POSTGRES_PASSWORD"`
	PostgresDatabase string `mapstructure:"POSTGRES_DATABASE"`
}

func Config

func Config() *Configuration

Jump to

Keyboard shortcuts

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