data

package
v0.0.0-...-db98cbe Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func NewAccountRepo

func NewAccountRepo(data *Data, logger log.Logger) biz.AccountRepo

func NewHiveConn

func NewHiveConn(conf *conf.Data, logger log.Logger) *gohive.Connection

NewHiveConn .

func NewKafkaClient

func NewKafkaClient(conf *conf.Data, logger log.Logger) sarama.Client

NewKafkaClient . link: https://www.jianshu.com/p/666d2604e8f8

func NewRealWorldGrpcConn

func NewRealWorldGrpcConn(ctx context.Context, confServer *conf.Server, logger log.Logger) (*grpc.ClientConn, error)

func NewRedisConn

func NewRedisConn(conf *conf.Data, logger log.Logger) *redis.Client

NewRedisConn .

Types

type Data

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

Data .

func NewData

func NewData(
	c *conf.Data,
	logger log.Logger,
	redisCli *redis.Client,
	hiveConn *gohive.Connection,
	kafkaCli sarama.Client,
	realWorldGrpcConn *grpc.ClientConn,
) (*Data, func(), error)

NewData .

Jump to

Keyboard shortcuts

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