config

package
v0.0.0-...-bf693f6 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ESClient *elastic.Client
View Source
var RedisClient *redis.Client

Functions

func Connect

func Connect() *sql.DB

func CreateIndex

func CreateIndex(index string, mapping string) error

func DelRedis

func DelRedis(ctx context.Context, key string) error

func GetRedis

func GetRedis(ctx context.Context, key string) (string, error)

func GetRedisClient

func GetRedisClient() *redis.Client

func IndexDocument

func IndexDocument(index string, id string, doc interface{}) error

func InitElasticsearch

func InitElasticsearch()

func InitRedis

func InitRedis()

func SetRedis

func SetRedis(ctx context.Context, key string, value interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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