Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DebugMode indicates service mode is debug. DebugMode = "debug" // TestMode indicates service mode is test. TestMode = "test" // ReleaseMode indicates service mode is release. ReleaseMode = "release" )
View Source
const ( DatabaseQueryTimeLayout = `'YYYY-MM-DD"T"HH24:MI:SS"."MS"Z"TZ'` // DatabaseTimeLayout DatabaseTimeLayout string = time.RFC3339 // AccessTokenExpiresInTime ... AccessTokenExpiresInTime time.Duration = 1 * 24 * 60 * time.Minute // RefreshTokenExpiresInTime ... RefreshTokenExpiresInTime time.Duration = 30 * 24 * 60 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ServiceName string
Environment string // debug, test, release
Version string
ServiceHost string
HTTPPort string
HTTPScheme string
PostgresHost string
PostgresPort int
PostgresUser string
PostgresPassword string
PostgresDatabase string
PostgresMaxConnections int32
DefaultOffset string
DefaultLimit string
SecretKey string
PasscodePool string
PasscodeLength int
// Email Configuration
SMTPHost string
SMTPPort int
SMTPUsername string
SMTPPassword string
SMTPFrom string
// MongoDB Configuration
MongoURI string
MongoDatabase string
}
Click to show internal directories.
Click to hide internal directories.