Documentation ¶
Index ¶
- Variables
- func GenBizDatabaseName(teamID uint32) string
- func NewGreeterRepo(data *Data) biz.GreeterRepo
- type Data
- func (d *Data) Exit() <-chan struct{}
- func (d *Data) GetAlarmGormDB(teamID uint32) (*gorm.DB, error)
- func (d *Data) GetAlertQueue() watch.Queue
- func (d *Data) GetBizDB(_ context.Context) *sql.DB
- func (d *Data) GetBizGormDB(teamID uint32) (*gorm.DB, error)
- func (d *Data) GetCacher() conn.Cache
- func (d *Data) GetCasbin(teamID uint32) *casbin.SyncedEnforcer
- func (d *Data) GetEmailer() email.Interface
- func (d *Data) GetMainDB(ctx context.Context) *gorm.DB
- func (d *Data) GetStrategyQueue() watch.Queue
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetData = wire.NewSet(NewData, NewGreeterRepo)
ProviderSetData is data providers.
Functions ¶
Types ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data .
func (*Data) GetAlarmGormDB ¶
GetAlarmGormDB 获取告警库连接
func (*Data) GetBizGormDB ¶
GetBizGormDB 获取业务库连接
func (*Data) GetStrategyQueue ¶
GetStrategyQueue 获取策略队列
Click to show internal directories.
Click to hide internal directories.