Documentation ¶
Index ¶
- type Container
- func (c *Container) GetAccessLogger() *logrus.Logger
- func (c *Container) GetGoMicroClient() client.Client
- func (c *Container) GetGoMicroService() micro.Service
- func (c *Container) GetHTTPHandler() http.Handler
- func (c *Container) GetHttpClient() zhttpclient.HttpClient
- func (c *Container) GetLogger() *logrus.Logger
- func (c *Container) GetMongo() zmongo.Mongo
- func (c *Container) GetMysql() zmysql.Mysql
- func (c *Container) GetMysqlCli() zmysql.Mysql
- func (c *Container) GetPrometheus() zprometheus.Prometheus
- func (c *Container) GetRedisCli() zredis.Redis
- func (c *Container) GetServiceID() string
- func (c *Container) GetTracer() *tracing.TracerWrap
- func (c *Container) Init(appcfg *config.AppConf)
- func (c *Container) Reload(appcfg *config.AppConf)
- func (c *Container) SetGoMicroClient(cli client.Client)
- func (c *Container) SetGoMicroService(s micro.Service)
- func (c *Container) SetHTTPHandler(h http.Handler)
- func (c *Container) SetServiceID(id string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
Container contain comm obj, impl zcontainer
func NewContainer ¶
func NewContainer() *Container
func (*Container) GetAccessLogger ¶
func (*Container) GetGoMicroClient ¶
func (*Container) GetGoMicroService ¶
func (c *Container) GetGoMicroService() micro.Service
func (*Container) GetHTTPHandler ¶
func (*Container) GetHttpClient ¶
func (c *Container) GetHttpClient() zhttpclient.HttpClient
func (*Container) GetMysqlCli ¶
func (*Container) GetPrometheus ¶
func (c *Container) GetPrometheus() zprometheus.Prometheus
func (*Container) GetRedisCli ¶
func (*Container) GetServiceID ¶
func (*Container) GetTracer ¶
func (c *Container) GetTracer() *tracing.TracerWrap
func (*Container) SetGoMicroClient ¶
GoMicroClient
func (*Container) SetGoMicroService ¶
func (c *Container) SetGoMicroService(s micro.Service)
func (*Container) SetHTTPHandler ¶
func (*Container) SetServiceID ¶
Click to show internal directories.
Click to hide internal directories.