Documentation ¶
Index ¶
- Constants
- Variables
- func LoadIchubClientFactroy() baseiface.ISingleton
- func LoadIchubCommonContext() baseiface.ISingleton
- type ConfigAggFactroy
- type IchubClientFactroy
- func (this *IchubClientFactroy) DbClient() *database.IchubDbClient
- func (this *IchubClientFactroy) Esclient() *ichubelastic.ElasticClient
- func (this *IchubClientFactroy) GetDB() *gorm.DB
- func (this *IchubClientFactroy) GetDbClientDto(dbtype string) *baseconfig.DbClientDto
- func (this *IchubClientFactroy) GetIchubDbClient(dbtype string) *database.IchubDbClient
- func (this *IchubClientFactroy) GetNatsDto() *baseconfig.NatsClientDto
- func (this *IchubClientFactroy) Gredis() *gredis.Redis
- func (this *IchubClientFactroy) IchubConfig() *ichubconfig.IchubConfig
- func (this *IchubClientFactroy) Ini() *IchubClientFactroy
- func (this *IchubClientFactroy) IniDbClient() *IchubClientFactroy
- func (this *IchubClientFactroy) IniDsClient() *IchubClientFactroy
- func (this *IchubClientFactroy) IniEsClient() *IchubClientFactroy
- func (this *IchubClientFactroy) IniGredisClient() *IchubClientFactroy
- func (this *IchubClientFactroy) IniMysqlClient() *IchubClientFactroy
- func (this *IchubClientFactroy) IniRedisClient() *IchubClientFactroy
- func (this *IchubClientFactroy) IniSessionManager() *IchubClientFactroy
- func (this *IchubClientFactroy) MakeConfigAgg() *configdomain.ConfigAgg
- func (this *IchubClientFactroy) RedisClient() *ichubredis.IchubRedisClient
- func (this *IchubClientFactroy) RegisterEncDec(encdec encrypt.IEncDec) *IchubClientFactroy
- func (this *IchubClientFactroy) SetDbClient(dbClient *database.IchubDbClient)
- func (this *IchubClientFactroy) SetEsclient(esclient *ichubelastic.ElasticClient)
- func (this *IchubClientFactroy) SetGredis(gredis *gredis.Redis)
- func (this *IchubClientFactroy) SetIchubConfig(ichubConfig *ichubconfig.IchubConfig)
- func (this *IchubClientFactroy) SetRedisClient(redisClient *ichubredis.IchubRedisClient)
- type IchubCommonContext
- func (this *IchubCommonContext) CheckConfigFileExist() bool
- func (this *IchubCommonContext) InRulePath() string
- func (this *IchubCommonContext) LoadRuleDefine() error
- func (this *IchubCommonContext) NewContainer() *dig.Container
- func (this *IchubCommonContext) OutRulePath() string
- func (this *IchubCommonContext) SetInRulePath(inRulePath string)
- func (this *IchubCommonContext) SetOutRulePath(outRulePath string)
- func (this *IchubCommonContext) WriteDaoFile(daofile string, content string) error
Constants ¶
View Source
const ( DEFINE_RULE_PATH = "/config/rule_define/" DEFILE_RULE_FILE = "rule_define.ini" DAO_RULE_PATH = "/data/output/dao/" //used by data-file INPUT_RULE_PATH = "/data/input/rule/" OUTPUT_RULE_PATH = "/data/output/rule/" )
Variables ¶
View Source
var IchubClient = NewIchubClientFactroy()
Functions ¶
func LoadIchubClientFactroy ¶ added in v1.2.90
func LoadIchubClientFactroy() baseiface.ISingleton
func LoadIchubCommonContext ¶ added in v1.0.61
func LoadIchubCommonContext() baseiface.ISingleton
Types ¶
type ConfigAggFactroy ¶ added in v1.0.606
type ConfigAggFactroy struct { }
type IchubClientFactroy ¶
type IchubClientFactroy struct { basedto.BaseEntitySingle SessionManager *gsession.Manager // contains filtered or unexported fields }
func FindBeanIchubClientFactroy ¶ added in v1.2.90
func FindBeanIchubClientFactroy() *IchubClientFactroy
func NewIchubClientFactroy ¶ added in v1.0.7
func NewIchubClientFactroy() *IchubClientFactroy
func (*IchubClientFactroy) DbClient ¶
func (this *IchubClientFactroy) DbClient() *database.IchubDbClient
func (*IchubClientFactroy) Esclient ¶
func (this *IchubClientFactroy) Esclient() *ichubelastic.ElasticClient
func (*IchubClientFactroy) GetDB ¶
func (this *IchubClientFactroy) GetDB() *gorm.DB
v suite.dbinst = ichubcontext.IchubClient.IniDbClient().DbClient().Db
func (*IchubClientFactroy) GetDbClientDto ¶
func (this *IchubClientFactroy) GetDbClientDto(dbtype string) *baseconfig.DbClientDto
func (*IchubClientFactroy) GetIchubDbClient ¶
func (this *IchubClientFactroy) GetIchubDbClient(dbtype string) *database.IchubDbClient
func (*IchubClientFactroy) GetNatsDto ¶ added in v1.0.112
func (this *IchubClientFactroy) GetNatsDto() *baseconfig.NatsClientDto
func (*IchubClientFactroy) Gredis ¶ added in v1.3.10
func (this *IchubClientFactroy) Gredis() *gredis.Redis
func (*IchubClientFactroy) IchubConfig ¶ added in v1.0.7
func (this *IchubClientFactroy) IchubConfig() *ichubconfig.IchubConfig
func (*IchubClientFactroy) Ini ¶
func (this *IchubClientFactroy) Ini() *IchubClientFactroy
func (*IchubClientFactroy) IniDbClient ¶
func (this *IchubClientFactroy) IniDbClient() *IchubClientFactroy
func (*IchubClientFactroy) IniDsClient ¶
func (this *IchubClientFactroy) IniDsClient() *IchubClientFactroy
func (*IchubClientFactroy) IniEsClient ¶
func (this *IchubClientFactroy) IniEsClient() *IchubClientFactroy
func (*IchubClientFactroy) IniGredisClient ¶ added in v1.3.10
func (this *IchubClientFactroy) IniGredisClient() *IchubClientFactroy
func (*IchubClientFactroy) IniMysqlClient ¶
func (this *IchubClientFactroy) IniMysqlClient() *IchubClientFactroy
func (*IchubClientFactroy) IniRedisClient ¶
func (this *IchubClientFactroy) IniRedisClient() *IchubClientFactroy
func (*IchubClientFactroy) IniSessionManager ¶ added in v1.3.11
func (this *IchubClientFactroy) IniSessionManager() *IchubClientFactroy
func (*IchubClientFactroy) MakeConfigAgg ¶ added in v1.0.606
func (this *IchubClientFactroy) MakeConfigAgg() *configdomain.ConfigAgg
func (*IchubClientFactroy) RedisClient ¶
func (this *IchubClientFactroy) RedisClient() *ichubredis.IchubRedisClient
func (*IchubClientFactroy) RegisterEncDec ¶ added in v1.0.7
func (this *IchubClientFactroy) RegisterEncDec(encdec encrypt.IEncDec) *IchubClientFactroy
func (*IchubClientFactroy) SetDbClient ¶
func (this *IchubClientFactroy) SetDbClient(dbClient *database.IchubDbClient)
func (*IchubClientFactroy) SetEsclient ¶
func (this *IchubClientFactroy) SetEsclient(esclient *ichubelastic.ElasticClient)
func (*IchubClientFactroy) SetGredis ¶ added in v1.3.10
func (this *IchubClientFactroy) SetGredis(gredis *gredis.Redis)
func (*IchubClientFactroy) SetIchubConfig ¶ added in v1.0.7
func (this *IchubClientFactroy) SetIchubConfig(ichubConfig *ichubconfig.IchubConfig)
func (*IchubClientFactroy) SetRedisClient ¶
func (this *IchubClientFactroy) SetRedisClient(redisClient *ichubredis.IchubRedisClient)
type IchubCommonContext ¶
type IchubCommonContext struct { basedto.BaseEntity Container *dig.Container `json:"-"` BasePath string `json:"base_path"` DefineRulePath string `json:"define_rule_path"` DefineRuleFile string `json:"define_rule_file"` DaoFilePath string `json:"dao_file_path"` IchubConfigIni *ichubconfig.IchubConfigIni `json:"="` FuncDefineMap map[string]string `json:"func_define_map"` ApiAll map[string]any `json:"-"` // contains filtered or unexported fields }
var CommonContext *IchubCommonContext = newIchubCommonContext()
func FindBeanIchubCommonContext ¶ added in v1.0.61
func FindBeanIchubCommonContext() *IchubCommonContext
func (*IchubCommonContext) CheckConfigFileExist ¶
func (this *IchubCommonContext) CheckConfigFileExist() bool
func (*IchubCommonContext) InRulePath ¶
func (this *IchubCommonContext) InRulePath() string
func (*IchubCommonContext) LoadRuleDefine ¶
func (this *IchubCommonContext) LoadRuleDefine() error
func (*IchubCommonContext) NewContainer ¶
func (this *IchubCommonContext) NewContainer() *dig.Container
func (*IchubCommonContext) OutRulePath ¶
func (this *IchubCommonContext) OutRulePath() string
func (*IchubCommonContext) SetInRulePath ¶
func (this *IchubCommonContext) SetInRulePath(inRulePath string)
func (*IchubCommonContext) SetOutRulePath ¶
func (this *IchubCommonContext) SetOutRulePath(outRulePath string)
func (*IchubCommonContext) WriteDaoFile ¶
func (this *IchubCommonContext) WriteDaoFile(daofile string, content string) error
Click to show internal directories.
Click to hide internal directories.