Documentation
¶
Index ¶
- Constants
- func ResetConfig()
- type App
- type Auth
- type Config
- type Configuration
- type DB
- type DBPostgres
- type Google
- type Jwt
- type Kong
- type Log
- type Minio
- type MockConfiguration
- type Notification
- type OTP
- type Oauth
- type Password
- type Profile
- type RabbitMQ
- type Redis
- type SendGrid
- type Swagger
- type SwaggerInfo
- type TOTP
- type UserManagement
Constants ¶
View Source
const ( AppDeviceHeaderKey string = "x-AppDevice" AppVersionHeaderKey string = "x-AppVersion" AuthorizationHeaderKey string = "Authorization" )
View Source
const ( AuthTokenUserUUID string = "sub" AuthTokenJTI string = "jti" AuthTokenIssuedAt string = "iat" AuthTokenExpirationTime string = "exp" )
please never change this keys
Variables ¶
This section is empty.
Functions ¶
func ResetConfig ¶
func ResetConfig()
ResetConfig is a helper function to reset the config and once for testing purposes.
Types ¶
type Config ¶
type Config struct { Kong Kong App App Auth Auth UserManagement UserManagement Notification Notification Profile Profile Log Log Swagger Swagger DB DB Redis Redis Jwt Jwt OTP OTP TOTP TOTP RabbitMQ RabbitMQ SendGrid SendGrid Oauth Oauth Minio Minio Password Password }
Config represents the application configuration.
type Configuration ¶
type DBPostgres ¶
type MockConfiguration ¶
func (*MockConfiguration) GetConfig ¶
func (r *MockConfiguration) GetConfig(envPath ...string) Config
func (*MockConfiguration) LoadConfig ¶
func (r *MockConfiguration) LoadConfig(envPath ...string) (Config, error)
type Notification ¶
type SwaggerInfo ¶
Click to show internal directories.
Click to hide internal directories.