db

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQL

type MySQL struct {
	GormConfig   *gorm.Config
	Username     string
	Password     string
	Host         string
	Port         int
	Database     string
	PingTimeout  int
	MaxIdleConns int
	MaxOpenConns int
	GormDB       *gorm.DB
}

func (*MySQL) Init

func (m *MySQL) Init() error

type Redis

type Redis struct {
	Options *redis.Options
	Client  *redis.Client
}

func (*Redis) Init

func (r *Redis) Init()

Jump to

Keyboard shortcuts

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