db

package
v1.0.56 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewDataBase

func NewDataBase(logger *zap.Logger) *gorm.DB

func NewMinio

func NewMinio(logger *zap.Logger) *minio.Client

func RegisterTables

func RegisterTables(db *gorm.DB, logger *zap.Logger)

Types

type DataRepo

type DataRepo interface {
	GetDB() *gorm.DB
	GetMinio() *minio.Client
}

func NewDataRepo

func NewDataRepo(db *gorm.DB, logger *zap.Logger) DataRepo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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