database

package
v2.1.59 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultClusterName name for the cluster.
	DefaultClusterName = "cluster-1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	DB  *gorm.DB
	RDB redis.UniversalClient
}

func New

func New(cfg *config.Config) (*Database, error)

Jump to

Keyboard shortcuts

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