data

package
v0.0.0-...-4703263 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2025 License: MIT Imports: 19 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewDB

func NewDB(cfg *conf.Data) (*gorm.DB, error)

func NewESClient

func NewESClient(cfg *conf.Elasticsearch) (*elasticsearch.TypedClient, error)

func NewRedisClient

func NewRedisClient(cfg *conf.Data) (*redis.Client, error)

func NewReviewRepo

func NewReviewRepo(data *Data, logger log.Logger) biz.ReviewRepo

NewReviewRepo .

Types

type Data

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

Data .

func NewData

func NewData(db *gorm.DB, logger log.Logger, esClient *elasticsearch.TypedClient, rdb *redis.Client) (*Data, func(), error)

NewData .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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