Documentation
¶
Index ¶
- func GenerateHostPort(isHTTPS bool, host string, port string) string
- func InitBaseApp() (context.Context, *config.Config, func())
- func InitPostgres(numRetry int, initDelay time.Duration, dsn string) (*gorm.DB, error)
- func InitRedis(numRetry int, initDelay time.Duration, address string, port string, ...) (*redis.Client, error)
- func StringToUint64(s string) (uint64, error)
- func ToSHA256Hash(s string) (string, error)
- func UsePostgresCache(masterDB *gorm.DB, cacher caches.Cacher) error
- func UsePostgresReplicas(numRetry int, initDelay time.Duration, masterDB *gorm.DB, slavesDSN []string) error
- func WaitShutdownSigterm(ctx context.Context, shutdownFunc func(), attachedStatusChan chan struct{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPostgres ¶
func StringToUint64 ¶
func ToSHA256Hash ¶
func UsePostgresCache ¶
func UsePostgresReplicas ¶
func WaitShutdownSigterm ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.