Documentation ¶
Index ¶
- Variables
- func NewAccountRepo(data *Data, logger log.Logger) biz.AccountRepo
- func NewAccountServiceClient(r registry.Discovery, tp *tracesdk.TracerProvider) accountv1.AccountClient
- func NewApiRepo(data *Data, logger log.Logger) biz.ApiRepo
- func NewCasbinAdapter(data *Data, logger log.Logger) persist.Adapter
- func NewCasbinEnforcer(c *conf.Casbin, adapter persist.Adapter) (*casbin.SyncedEnforcer, func(), error)
- func NewDB() *sql.DB
- func NewDictDataRepo(data *Data, logger log.Logger) biz.DictDataRepo
- func NewDictTypeRepo(data *Data, logger log.Logger) biz.DictTypeRepo
- func NewDiscovery(conf *conf.Registry) registry.Discovery
- func NewEnforcer(c *conf.Data) *casbin.Enforcer
- func NewEntAdapter(db *sql.DB) *entadapter.Adapter
- func NewEntClient(conf *conf.Data, logger log.Logger) *ent.Client
- func NewKafkaConsumer(conf *conf.Data) sarama.Consumer
- func NewKafkaProducer(conf *conf.Data) sarama.AsyncProducer
- func NewRedisClient(c *conf.Data, logger log.Logger) *redis.Client
- func NewRegistrar(conf *conf.Registry) registry.Registrar
- func NewRoleRepo(data *Data, logger log.Logger) biz.RoleRepo
- func NewUserRepo(data *Data, logger log.Logger) biz.UserRepo
- type Data
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewData, NewEntClient, NewRedisClient, NewKafkaProducer, NewKafkaConsumer, NewDiscovery, NewRegistrar, NewEnforcer, NewUserRepo, NewRoleRepo, NewDictDataRepo, NewAccountServiceClient, NewAccountRepo, )
ProviderSet is data providers.
Functions ¶
func NewAccountRepo ¶
func NewAccountRepo(data *Data, logger log.Logger) biz.AccountRepo
func NewAccountServiceClient ¶
func NewAccountServiceClient(r registry.Discovery, tp *tracesdk.TracerProvider) accountv1.AccountClient
func NewCasbinEnforcer ¶
func NewDictDataRepo ¶
func NewDictDataRepo(data *Data, logger log.Logger) biz.DictDataRepo
func NewDictTypeRepo ¶
func NewDictTypeRepo(data *Data, logger log.Logger) biz.DictTypeRepo
func NewEnforcer ¶
func NewEntAdapter ¶
func NewEntAdapter(db *sql.DB) *entadapter.Adapter
func NewKafkaProducer ¶
func NewKafkaProducer(conf *conf.Data) sarama.AsyncProducer
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.