database

package
v2.0.9-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Default name for scheduler cluster.
	DefaultSchedulerClusterName = "scheduler-cluster-1"

	// Default name for seed peer cluster.
	DefaultSeedPeerClusterName = "seed-peer-cluster-1"
)

Variables

This section is empty.

Functions

func NewRedis

func NewRedis(cfg *config.RedisConfig) (redis.UniversalClient, error)

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