Versions in this module Expand all Collapse all v0 v0.1.0 Jun 25, 2023 Changes in this version + var ProviderSet = wire.NewSet(NewData, NewDiscovery, NewRegistrar, NewRedisCmd, NewMysqlCmd, NewRedisClient, ...) + func NewDiscovery(conf *conf.Registry) registry.Discovery + func NewExampleRepo(data *Data, logger log.Logger) biz.ExampleRepo + func NewMysqlCmd(conf *conf.Bootstrap, logger log.Logger) *gorm.DB + func NewRedisClient(conf *conf.Data) *redis.Client + func NewRedisCmd(conf *conf.Data, logger log.Logger) redis.Cmdable + func NewRegistrar(conf *conf.Registry) registry.Registrar + func Paginate(page, pageSize int64) func(db *gorm.DB) *gorm.DB + type BaseFields struct + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Id int64 + UpdatedAt time.Time + type Data struct + func NewData(cfg *conf.Bootstrap, db *gorm.DB, redisCli *redis.Client, logger log.Logger) (*Data, func(), error) + type ExampleEntity struct + Domain string + Name string + Status bool + func (ExampleEntity) TableName() string + type ExampleRepo struct + func (r ExampleRepo) CreateExample(ctx context.Context, example *domain.Example) (*domain.Example, error) + func (r ExampleRepo) DeleteExample(ctx context.Context, domain *domain.Example) error + func (r ExampleRepo) GetExample(ctx context.Context, params map[string]interface{}) (*domain.Example, error) + func (r ExampleRepo) GetExampleByParams(ctx context.Context, params map[string]interface{}) (record *ExampleEntity, err error) + func (r ExampleRepo) GetExampleCount(ctx context.Context, params map[string]interface{}) (count int64, err error) + func (r ExampleRepo) ListExample(ctx context.Context, page, pageSize int64, params map[string]interface{}) ([]*domain.Example, error) + func (r ExampleRepo) RecoverExample(ctx context.Context, domain *domain.Example) error + func (r ExampleRepo) UpdateExample(ctx context.Context, domain *domain.Example) error