config

package
v0.0.0-...-d51db54 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 0 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 {
	Database DatabaseEndpointConfig `yaml:"database"`
	// SMTPConfig model.SMTPConfig             `yaml:"smtp"`
	HTTPServer HTTPServerConfig `yaml:"http"`
	JWT        JWTConfig        `yaml:"jwt"`

	TemplatesLocation string `yaml:"templates_location"`
	StaticLocation    string `yaml:"static_location"`
	DataLocation      string `yaml:"data_location"`
}

type DatabaseEndpointConfig

type DatabaseEndpointConfig struct {
	Name     string `yaml:"name"`
	Driver   string `yaml:"driver"`
	Path     string `yaml:"path"`
	Host     string `yaml:"host"`
	User     string `yaml:"user"`
	Database string `yaml:"database"`
	Password string `yaml:"password"`
	Port     uint16 `yaml:"port"`
	Timeout  int    `yaml:"timeout"`
}

type HTTPServerConfig

type HTTPServerConfig struct {
	Endpoints     []string `yaml:"endpoints"`
	CookieSecure  bool     `yaml:"cookie_secure"`
	TokenDuration int      `yaml:"token_duration"`
	Domain        string   `yaml:"domain"`
}

type JWTConfig

type JWTConfig struct {
	SigningKey        string `yaml:"signing_key"`
	Issuer            string `yaml:"issuer"`
	EncryptPassphrase string `yaml:"passphrase"`
	Method            string `yaml:"method"`
}

Jump to

Keyboard shortcuts

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