Documentation ¶
Index ¶
- Variables
- func NewAccountRepo(data *Data, logger log.Logger) biz.AccountRepo
- func NewHiveConn(conf *conf.Data, logger log.Logger) *gohive.Connection
- func NewKafkaClient(conf *conf.Data, logger log.Logger) sarama.Client
- func NewRealWorldGrpcConn(ctx context.Context, confServer *conf.Server, logger log.Logger) (*grpc.ClientConn, error)
- func NewRedisConn(conf *conf.Data, logger log.Logger) *redis.Client
- type Data
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewData, NewRedisConn, NewHiveConn, NewKafkaClient, NewRealWorldGrpcConn, NewAccountRepo, )
ProviderSet is data providers.
Functions ¶
func NewAccountRepo ¶
func NewAccountRepo(data *Data, logger log.Logger) biz.AccountRepo
func NewHiveConn ¶
NewHiveConn .
func NewKafkaClient ¶
NewKafkaClient . link: https://www.jianshu.com/p/666d2604e8f8
func NewRealWorldGrpcConn ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.