config

package
v0.0.0-...-df0e726 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FilesDirectory           string `yaml:"files_directory"`
	DatabaseConnectionString string `yaml:"database_connection_string"`
	Port                     string `yaml:"port"`
	MaxFileSizeBytes         int    `yaml:"max_file_size_bytes"`
	FrontendEnabled          bool   `yaml:"frontend_enabled"`
	RegistrationEnabled      bool   `yaml:"registration_enabled"`
	JWTSecretKey             string `yaml:"secret_key"`
	ApiUrl                   string `yaml:"api_url"`
	Debug                    bool   `yaml:"debug"`
}

func GetConfig

func GetConfig() *Config

func NewConfig

func NewConfig(path string) *Config

Jump to

Keyboard shortcuts

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