Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Database DatabaseConfig Logger LoggerConfig Server ServerConfig Security SecurityConfig }
Configuration - server and db configuration variables
type DatabaseConfig ¶
type DatabaseConfig struct { // relational database RDBMS RDBMS // redis database REDIS REDIS // mongo database MongoDB MongoDB }
DatabaseConfig - all database variables
func DatabaseMongo ¶ added in v1.4.3
func DatabaseMongo() DatabaseConfig
DatabaseMongo - all MongoDB variables
func DatabaseRDBMS ¶ added in v1.4.3
func DatabaseRDBMS() DatabaseConfig
DatabaseRDBMS - all RDBMS variables
func DatabaseRedis ¶ added in v1.4.3
func DatabaseRedis() DatabaseConfig
DatabaseRedis - all REDIS DB variables
type MongoDB ¶ added in v1.4.3
type MongoDB struct { Activate string Env struct { AppName string URI string PoolSize uint64 PoolMon string ConnTTL int } }
MongoDB - mongo database variables
type RDBMS ¶ added in v1.4.3
type RDBMS struct { Activate string Env struct { Driver string Host string Port string TimeZone string } Access struct { DbName string User string Pass string } Ssl struct { Sslmode string } Conn struct { MaxIdleConns int MaxOpenConns int ConnMaxLifetime time.Duration } Log struct { LogLevel int } }
RDBMS - relational database variables
type REDIS ¶ added in v1.4.3
type REDIS struct { Activate string Env struct { Host string Port string } Conn struct { PoolSize int ConnTTL int } }
REDIS - redis database variables
type SecurityConfig ¶ added in v1.3.0
type SecurityConfig struct { BasicAuth struct { Username string Password string } JWT struct { AccessKey string RefreshKey string AccessKeyTTL int RefreshKeyTTL int } HashPass struct { Memory uint32 Iterations uint32 Parallelism uint8 SaltLength uint32 KeyLength uint32 } Firewall struct { ListType string IP string } TrustedIP string }
SecurityConfig ...
func Security ¶ added in v1.3.0
func Security() SecurityConfig
Security - configs for generating tokens and hashes
type ServerConfig ¶
ServerConfig ...
Click to show internal directories.
Click to hide internal directories.