storage

package
v0.0.0-...-6dc5add Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGormDB

func NewGormDB(c *DataBase) *gorm.DB

NewGormDB new gorm.DB

func RecordNotFound

func RecordNotFound(err error) bool

RecordNotFound ...

Types

type DataBase

type DataBase struct {
	DriverName string
	Host       string
	Port       int
	User       string
	PassWord   string
	DBName     string
}

DataBase ...

type RedisConf

type RedisConf struct {
	NetWork     string
	HostAddr    string
	PassWord    string
	MaxIdle     int
	MaxActive   int
	IdleTimeout int64
}

RedisConf ...

Jump to

Keyboard shortcuts

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