README ¶ Data Expand ▾ Collapse ▴ Documentation ¶ Index ¶ Constants Variables func NewDB(dsn string) (db *gorm.DB, cf func(), err error) func NewRedis(c *conf.Data) *redis.Client func NewSkuRepo(data *Data, logger log.Logger) biz.SkuRepo type Data func NewData(c *conf.Data, logger log.Logger) (*Data, func(), error) Constants ¶ View Source const ( MaxLifeTime = 7200 ) Variables ¶ View Source var ProviderSet = wire.NewSet(NewData, NewSkuRepo) ProviderSet is data providers. Functions ¶ func NewDB ¶ func NewDB(dsn string) (db *gorm.DB, cf func(), err error) func NewRedis ¶ func NewRedis(c *conf.Data) *redis.Client func NewSkuRepo ¶ func NewSkuRepo(data *Data, logger log.Logger) biz.SkuRepo Types ¶ type Data ¶ type Data struct { // contains filtered or unexported fields } Data . func NewData ¶ func NewData(c *conf.Data, logger log.Logger) (*Data, func(), error) NewData . Source Files ¶ View all Source files data.go sku.go Click to show internal directories. Click to hide internal directories.