Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { MinPasswordStr int `yaml:"min_password_strength,omitempty"` SwaggerUIPath string `yaml:"swagger_ui_path,omitempty"` }
Application holds application configuration details
type Configuration ¶
type Configuration struct { Server *Server `yaml:"server,omitempty"` DB *Database `yaml:"database,omitempty"` JWT *JWT `yaml:"jwt,omitempty"` App *Application `yaml:"application,omitempty"` }
Configuration holds data necessery for configuring application
type Database ¶
type Database struct { PSN string `yaml:"psn,omitempty"` LogQueries bool `yaml:"log_queries,omitempty"` Timeout int `yaml:"timeout_seconds,omitempty"` }
Database holds data necessery for database configuration
type JWT ¶
type JWT struct { Secret string `yaml:"secret,omitempty"` Duration int `yaml:"duration_minutes,omitempty"` RefreshDuration int `yaml:"refresh_duration_minutes,omitempty"` MaxRefresh int `yaml:"max_refresh_minutes,omitempty"` SigningAlgorithm string `yaml:"signing_algorithm,omitempty"` }
JWT holds data necessery for JWT configuration
Click to show internal directories.
Click to hide internal directories.