datastore

package
v0.0.0-...-756a3e5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient

func NewRedisClient(redisURL string) *redis.Client

NewRedisClient will create new redis instance

func NewSqlXInstance

func NewSqlXInstance(databaseURL string) *sqlx.DB

NewDatabase will create new database instance

Types

type MasterDbInstance

type MasterDbInstance struct {
	// contains filtered or unexported fields
}

func NewMasterDbInstance

func NewMasterDbInstance(databaseURL string) *MasterDbInstance

func (*MasterDbInstance) DBX

func (m *MasterDbInstance) DBX() *sqlx.DB

type SlaveDbInstance

type SlaveDbInstance struct {
	// contains filtered or unexported fields
}

func NewSlaveDbInstance

func NewSlaveDbInstance(databaseURL string) *SlaveDbInstance

func (*SlaveDbInstance) DBX

func (m *SlaveDbInstance) DBX() *sqlx.DB

Jump to

Keyboard shortcuts

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