zcontainer

package
v0.0.0-...-e38cb6b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	Init(appcfg *config.AppConf)
	Reload(appcfg *config.AppConf)
	GetRedisCli() zredis.Redis
	SetGoMicroClient(cli client.Client)
	GetGoMicroClient() client.Client
	GetLogger() *logrus.Logger
	GetAccessLogger() *logrus.Logger
	GetTracer() *tracing.TracerWrap
	SetServiceID(id string)
	GetServiceID() string
	SetHTTPHandler(h http.Handler)
	GetHTTPHandler() http.Handler
	SetGoMicroService(s micro.Service)
	GetGoMicroService() micro.Service
	GetMongo() zmongo.Mongo
	GetHttpClient() zhttpclient.HttpClient
	GetMysqlCli() zmysql.Mysql
	GetPrometheus() zprometheus.Prometheus
}

Container 组件的容器访问接口

Jump to

Keyboard shortcuts

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