Documentation ¶
Index ¶
- Variables
- func NewAlarmGroupRepository(data *data.Data, rabbitConn *data.RabbitConn) repository.AlarmGroup
- func NewAlarmHistoryRepository(data *data.Data) repository.HistoryRepository
- func NewAlarmHookRepository(data *data.Data, rabbitConn *data.RabbitConn) repository.AlarmHook
- func NewAlarmPageRepository(data *data.Data) repository.AlarmPage
- func NewAlarmRawRepository(data *data.Data) repository.AlarmRaw
- func NewAlarmSendRepository(data *data.Data) repository.AlarmSendRepository
- func NewCacheRepository(data *data.Data) repository.Cache
- func NewCaptchaRepository(data *data.Data) repository.Captcha
- func NewDashboardRepository(data *data.Data) repository.Dashboard
- func NewDatasourceMetricRepository(data *data.Data) repository.DatasourceMetric
- func NewDatasourceRepository(data *data.Data) repository.Datasource
- func NewDictRepository(data *data.Data) repository.Dict
- func NewFileRepository(data *data.Data) repository.FileRepository
- func NewGithubUserRepository(bc *palaceconf.Bootstrap, data *data.Data) repository.OAuth
- func NewInviteRepository(data *data.Data, cacheRepo repository.Cache) repository.TeamInvite
- func NewLockRepository(data *data.Data) repository.Lock
- func NewMenuRepository(data *data.Data) repository.Menu
- func NewMetricRepository(data *data.Data) repository.Metric
- func NewMqDatasourceRepository(data *data.Data) repository.MQDataSource
- func NewRealtimeAlarmRepository(data *data.Data) repository.Alarm
- func NewResourceRepository(data *data.Data) repository.Resource
- func NewStrategyCountRepository(data *data.Data) repository.StrategyCountRepo
- func NewStrategyGroupRepository(data *data.Data) repository.StrategyGroup
- func NewStrategyRepository(data *data.Data) repository.Strategy
- func NewSubscriberStrategyRepository(data *data.Data) repository.SubscriberStrategy
- func NewSystemRepository(data *data.Data) repository.System
- func NewTeamDictRepository(data *data.Data) repository.TeamDict
- func NewTeamMenuRepository(data *data.Data) repository.TeamMenu
- func NewTeamRepository(data *data.Data, cacheRepo repository.Cache) repository.Team
- func NewTeamResourceRepository(data *data.Data) repository.TeamResource
- func NewTeamRoleRepository(data *data.Data) repository.TeamRole
- func NewTemplateRepository(data *data.Data) repository.Template
- func NewUserMessageRepository(data *data.Data) repository.UserMessage
- func NewUserRepository(data *data.Data, cacheRepo repository.Cache) repository.User
- type AlertLevelCount
- type InviteRepositoryImpl
- func (i *InviteRepositoryImpl) DeleteInvite(ctx context.Context, inviteID uint32) error
- func (i *InviteRepositoryImpl) GetInviteDetail(ctx context.Context, inviteID uint32) (*model.SysTeamInvite, error)
- func (i *InviteRepositoryImpl) GetInviteUserByUserIDAndType(ctx context.Context, params *bo.InviteUserParams) (*model.SysTeamInvite, error)
- func (i *InviteRepositoryImpl) InviteUser(ctx context.Context, params *bo.InviteUserParams) (teamInvite *model.SysTeamInvite, err error)
- func (i *InviteRepositoryImpl) UpdateInviteStatus(ctx context.Context, params *bo.UpdateInviteStatusParams) error
- func (i *InviteRepositoryImpl) UserInviteList(ctx context.Context, params *bo.QueryInviteListParams) ([]*model.SysTeamInvite, error)
Constants ¶
This section is empty.
Variables ¶
var ProviderSetRepoImpl = wire.NewSet( NewUserRepository, NewCaptchaRepository, NewTeamRepository, NewCacheRepository, NewResourceRepository, NewTeamResourceRepository, NewTeamRoleRepository, NewTeamMenuRepository, NewMenuRepository, NewDatasourceRepository, NewDatasourceMetricRepository, NewLockRepository, NewMetricRepository, NewDictRepository, NewTeamDictRepository, NewTemplateRepository, NewStrategyRepository, NewStrategyGroupRepository, NewStrategyCountRepository, NewRealtimeAlarmRepository, NewDashboardRepository, NewAlarmGroupRepository, NewAlarmPageRepository, NewSubscriberStrategyRepository, NewAlarmHookRepository, NewGithubUserRepository, NewAlarmHistoryRepository, NewAlarmRawRepository, NewInviteRepository, NewUserMessageRepository, NewFileRepository, NewSystemRepository, NewAlarmSendRepository, NewMqDatasourceRepository, )
ProviderSetRepoImpl wire Set
Functions ¶
func NewAlarmGroupRepository ¶
func NewAlarmGroupRepository(data *data.Data, rabbitConn *data.RabbitConn) repository.AlarmGroup
NewAlarmGroupRepository 创建策略分组仓库
func NewAlarmHistoryRepository ¶ added in v1.1.0
func NewAlarmHistoryRepository(data *data.Data) repository.HistoryRepository
NewAlarmHistoryRepository 创建告警记录仓库
func NewAlarmHookRepository ¶
func NewAlarmHookRepository(data *data.Data, rabbitConn *data.RabbitConn) repository.AlarmHook
NewAlarmHookRepository new alarm repository
func NewAlarmPageRepository ¶
func NewAlarmPageRepository(data *data.Data) repository.AlarmPage
NewAlarmPageRepository 创建告警页面管理操作
func NewAlarmRawRepository ¶ added in v1.1.0
func NewAlarmRawRepository(data *data.Data) repository.AlarmRaw
NewAlarmRawRepository 创建 AlarmRawRepository
func NewAlarmSendRepository ¶ added in v1.1.31
func NewAlarmSendRepository(data *data.Data) repository.AlarmSendRepository
NewAlarmSendRepository 创建告警发送记录
func NewCacheRepository ¶
func NewCacheRepository(data *data.Data) repository.Cache
NewCacheRepository 创建缓存操作
func NewCaptchaRepository ¶
func NewCaptchaRepository(data *data.Data) repository.Captcha
NewCaptchaRepository 创建验证码操作
func NewDashboardRepository ¶
func NewDashboardRepository(data *data.Data) repository.Dashboard
NewDashboardRepository 创建仪表盘操作实现
func NewDatasourceMetricRepository ¶
func NewDatasourceMetricRepository(data *data.Data) repository.DatasourceMetric
NewDatasourceMetricRepository 创建数据源指标仓库
func NewDatasourceRepository ¶
func NewDatasourceRepository(data *data.Data) repository.Datasource
NewDatasourceRepository 创建数据源
func NewDictRepository ¶
func NewDictRepository(data *data.Data) repository.Dict
NewDictRepository 创建数据库字典操作
func NewFileRepository ¶ added in v1.1.0
func NewFileRepository(data *data.Data) repository.FileRepository
NewFileRepository file repository with the given data source.
func NewGithubUserRepository ¶
func NewGithubUserRepository(bc *palaceconf.Bootstrap, data *data.Data) repository.OAuth
NewGithubUserRepository 创建Github用户实现
func NewInviteRepository ¶ added in v1.0.2
func NewInviteRepository(data *data.Data, cacheRepo repository.Cache) repository.TeamInvite
NewInviteRepository 创建团队邀请实现
func NewLockRepository ¶
func NewLockRepository(data *data.Data) repository.Lock
NewLockRepository 创建全局锁
func NewMenuRepository ¶
func NewMenuRepository(data *data.Data) repository.Menu
NewMenuRepository 创建菜单仓库
func NewMetricRepository ¶
func NewMetricRepository(data *data.Data) repository.Metric
NewMetricRepository 创建指标仓库
func NewMqDatasourceRepository ¶ added in v1.1.37
func NewMqDatasourceRepository(data *data.Data) repository.MQDataSource
NewMqDatasourceRepository 创建mq数据源
func NewRealtimeAlarmRepository ¶
func NewRealtimeAlarmRepository(data *data.Data) repository.Alarm
NewRealtimeAlarmRepository 实例化告警业务数据库
func NewResourceRepository ¶
func NewResourceRepository(data *data.Data) repository.Resource
NewResourceRepository 创建资源实现
func NewStrategyCountRepository ¶
func NewStrategyCountRepository(data *data.Data) repository.StrategyCountRepo
NewStrategyCountRepository 创建策略计数仓库
func NewStrategyGroupRepository ¶
func NewStrategyGroupRepository(data *data.Data) repository.StrategyGroup
NewStrategyGroupRepository 创建策略分组仓库
func NewStrategyRepository ¶
func NewStrategyRepository(data *data.Data) repository.Strategy
NewStrategyRepository 创建策略仓库
func NewSubscriberStrategyRepository ¶
func NewSubscriberStrategyRepository(data *data.Data) repository.SubscriberStrategy
NewSubscriberStrategyRepository 创建策略仓库
func NewSystemRepository ¶ added in v1.1.0
func NewSystemRepository(data *data.Data) repository.System
NewSystemRepository 创建系统相关功能实现
func NewTeamDictRepository ¶ added in v1.1.0
func NewTeamDictRepository(data *data.Data) repository.TeamDict
NewTeamDictRepository 创建数据库字典操作
func NewTeamMenuRepository ¶
func NewTeamMenuRepository(data *data.Data) repository.TeamMenu
NewTeamMenuRepository 创建团队菜单仓库
func NewTeamRepository ¶
func NewTeamRepository(data *data.Data, cacheRepo repository.Cache) repository.Team
NewTeamRepository 创建团队仓库
func NewTeamResourceRepository ¶ added in v1.1.0
func NewTeamResourceRepository(data *data.Data) repository.TeamResource
NewTeamResourceRepository 创建资源实现
func NewTeamRoleRepository ¶
func NewTeamRoleRepository(data *data.Data) repository.TeamRole
NewTeamRoleRepository 创建团队角色仓库
func NewTemplateRepository ¶
func NewTemplateRepository(data *data.Data) repository.Template
NewTemplateRepository 创建模板策略仓库
func NewUserMessageRepository ¶ added in v1.0.2
func NewUserMessageRepository(data *data.Data) repository.UserMessage
NewUserMessageRepository 创建用户消息实现
func NewUserRepository ¶
func NewUserRepository(data *data.Data, cacheRepo repository.Cache) repository.User
NewUserRepository 创建用户仓库
Types ¶
type AlertLevelCount ¶ added in v1.1.0
type AlertLevelCount struct { LevelID uint32 `gorm:"column:level_id"` Count int64 `gorm:"column:count"` }
AlertLevelCount 告警等级统计
type InviteRepositoryImpl ¶ added in v1.0.2
type InviteRepositoryImpl struct {
// contains filtered or unexported fields
}
InviteRepositoryImpl 团队邀请实现
func (*InviteRepositoryImpl) DeleteInvite ¶ added in v1.0.2
func (i *InviteRepositoryImpl) DeleteInvite(ctx context.Context, inviteID uint32) error
DeleteInvite 删除邀请
func (*InviteRepositoryImpl) GetInviteDetail ¶ added in v1.0.2
func (i *InviteRepositoryImpl) GetInviteDetail(ctx context.Context, inviteID uint32) (*model.SysTeamInvite, error)
GetInviteDetail 获取邀请详情
func (*InviteRepositoryImpl) GetInviteUserByUserIDAndType ¶ added in v1.1.37
func (i *InviteRepositoryImpl) GetInviteUserByUserIDAndType(ctx context.Context, params *bo.InviteUserParams) (*model.SysTeamInvite, error)
GetInviteUserByUserIDAndType 获取邀请用户
func (*InviteRepositoryImpl) InviteUser ¶ added in v1.0.2
func (i *InviteRepositoryImpl) InviteUser(ctx context.Context, params *bo.InviteUserParams) (teamInvite *model.SysTeamInvite, err error)
InviteUser 邀请用户
func (*InviteRepositoryImpl) UpdateInviteStatus ¶ added in v1.0.2
func (i *InviteRepositoryImpl) UpdateInviteStatus(ctx context.Context, params *bo.UpdateInviteStatusParams) error
UpdateInviteStatus 更新邀请状态
func (*InviteRepositoryImpl) UserInviteList ¶ added in v1.0.2
func (i *InviteRepositoryImpl) UserInviteList(ctx context.Context, params *bo.QueryInviteListParams) ([]*model.SysTeamInvite, error)
UserInviteList 用户邀请列表
Source Files ¶
- alarm_group.go
- alarm_page.go
- alarm_raw.go
- alarm_send.go
- cache.go
- captcha.go
- dashboard.go
- datasource.go
- datasource_metric.go
- dict.go
- file.go
- history.go
- hook.go
- invite.go
- lock.go
- menu.go
- metric.go
- mqdatasource.go
- oauth_user.go
- realtime_alarm.go
- register.go
- resource.go
- strategroup.go
- strategy.go
- subscriber.go
- system.go
- team.go
- team_dict.go
- team_menu.go
- team_resource.go
- team_role.go
- template.go
- user.go
- user_message.go