internal

package
v0.0.0-...-691ab37 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: GPL-3.0 Imports: 10 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 {
	Server struct {
		Port            int    `yaml:"port" envconfig:"ENV_SERVER_PORT"`
		GinMode         string `yaml:"ginMode" envconfig:"ENV_SERVER_GIN_MODE"`
		SessionSecret   string `yaml:"sessionSecret" envconfig:"ENV_SERVER_SESSION_SECRET"`
		Title           string `yaml:"title" envconfig:"ENV_SERVER_TITLE"`
		MaxWordsAllowed int    `yaml:"maxWordsAllowed" envconfig:"ENV_SERVER_MAX_WORDS_ALLOWED"`
	} `yaml:"server"`

	Database struct {
		Location string `yaml:"location" envconfig:"ENV_DB_LOCATION"`
		ConnStr  string
	} `yaml:"database"`

	User struct {
		Name     string `yaml:"name" envconfig:"ENV_USER_NAME"`
		Password string `yaml:"password" envconfig:"ENV_USER_PASSWORD"`
	} `yaml:"user"`

	Az struct {
		ConnStr                 string `yaml:"connStr" envconfig:"ENV_AZ_CONNSTR"`
		BlobContainer           string `yaml:"blobContainer" envconfig:"ENV_AZ_BLOB_CONTAINER"`
		Blob                    string `yaml:"blob" envconfig:"ENV_AZ_BLOB"`
		BackupIntervalInMinutes int    `yaml:"backupInterval" envconfig:"ENV_AZ_BACKUP_INTERVAL"`
	} `yaml:"az"`

	Runtime struct {
		LastBackupAt   time.Time
		LastModifiedAt time.Time
		F              *embed.FS
		AppVer         string
		GitHash        string
		BuildTime      string
		GoVer          string
	}
}

func (*Config) Load

func (c *Config) Load()

Jump to

Keyboard shortcuts

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