Documentation ¶
Index ¶
- Variables
- func Connect() *sql.DB
- func CreateIndex(index string, mapping string) error
- func DelRedis(ctx context.Context, key string) error
- func GetRedis(ctx context.Context, key string) (string, error)
- func GetRedisClient() *redis.Client
- func IndexDocument(index string, id string, doc interface{}) error
- func InitElasticsearch()
- func InitRedis()
- func SetRedis(ctx context.Context, key string, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ESClient *elastic.Client
View Source
var RedisClient *redis.Client
Functions ¶
func CreateIndex ¶
func GetRedisClient ¶
func GetRedisClient() *redis.Client
func IndexDocument ¶
func InitElasticsearch ¶
func InitElasticsearch()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.