db

package
v0.0.0-...-1ca43b3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const IdxEngineMatch = "engine_match"

Variables

View Source
var Client *elastic.Client

Functions

func InitDB

func InitDB()

func InitES

func InitES()

Types

type DB

type DB interface {
	Test() (string, error)
}
var GlobalDB DB

type RedisClientDB

type RedisClientDB struct{}

func NewRedisDB

func NewRedisDB() *RedisClientDB

func (*RedisClientDB) Test

func (rc *RedisClientDB) Test() (string, error)

type RedisClusterClientDB

type RedisClusterClientDB struct{}

func NewRedisClusterDB

func NewRedisClusterDB() *RedisClusterClientDB

func (*RedisClusterClientDB) Test

func (rc *RedisClusterClientDB) Test() (string, error)

Jump to

Keyboard shortcuts

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