代码拉取完成,页面将自动刷新
package ichubredis
import (
"gitee.com/leijmdas/gobase/goconfig/common/base/baseiface"
"gitee.com/leijmdas/gobase/goconfig/common/basedi"
"github.com/sirupsen/logrus"
)
/*
* ********************************************************
* godi工具生成代码,不建议直接修改!
* ********************************************************
*/
/* ********************************************************
@Title 文件名称: ichub_redis_client_init.go
@Desp 描述: 自动注册注入
@Author 作者: leijmdas@163.com 时间(2024-09-21 13:16:29)
@Update 作者: leijmdas@163.com 时间(2024-09-21 13:16:29)
* *********************************************************/
const singleNameIchubRedisClient = "*ichubredis.IchubRedisClient-1c74c52c3cd049e29e23bbacb3b77b51"
// init register load
func init() {
registerBeanIchubRedisClient()
}
// register IchubRedisClient
func registerBeanIchubRedisClient() {
basedi.RegisterLoadBean(singleNameIchubRedisClient, LoadIchubRedisClient)
}
func FindBeanIchubRedisClient() *IchubRedisClient {
bean, ok := basedi.FindBean(singleNameIchubRedisClient).(*IchubRedisClient)
if !ok {
logrus.Errorf("FindBeanIchubRedisClient: failed to cast bean to *IchubRedisClient")
return nil
}
return bean
}
func LoadIchubRedisClient() baseiface.ISingleton {
var s = NewIchubRedisClient()
InjectIchubRedisClient(s)
return s
}
func InjectIchubRedisClient(s *IchubRedisClient) {
//// goutils.Debug("inject")
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。