helpers

package
v0.0.0-...-e65fa06 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabase

func GetDatabase() (db *gorm.DB, err error)

func GetEntityIDFromEnvironmentVariable

func GetEntityIDFromEnvironmentVariable(prefix string) (ksuid.KSUID, error)

func GetEntityIDFromString

func GetEntityIDFromString(entityID string) (ksuid.KSUID, error)

func GetEnvironmentVariable

func GetEnvironmentVariable(key string, required bool, defaultValue string) (string, error)

func GetErrorChannel

func GetErrorChannel() chan error

func GetNatsConn

func GetNatsConn() (natsConn *nats.Conn, err error)

func GetNow

func GetNow() time.Time

func GetRedisClient

func GetRedisClient() (redisClient *redis.Client, err error)

func SetLogFormat

func SetLogFormat()

func WaitForError

func WaitForError(errors chan error, timeout time.Duration) error

func WaitForSigInt

func WaitForSigInt()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL