datastore

package
v0.0.0-...-946fd12 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMigrations

func ApplyMigrations(ctx context.Context, conn *bun.DB, cleanup bool, logger *zap.SugaredLogger) error

func NewMinioConn

func NewMinioConn(ctx context.Context, endpoint, accessKeyID, secretAccessKey string, useSSL bool, logger *zap.SugaredLogger) (
	*minio.Client,
	error,
)

func NewPostgresConn

func NewPostgresConn(ctx context.Context, dsn string, enableQueryDebug bool, logger *zap.SugaredLogger) (*bun.DB, error)

func NewRedisConn

func NewRedisConn(ctx context.Context, addr, pwd string, logger *zap.SugaredLogger) (*redis.Client, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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