Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( wire.Struct(new(Ops), "*"), wire.Struct(new(dal.EventLog), "*"), wire.Struct(new(biz.EventBiz), "*"), wire.Struct(new(biz.Consumer), "Subscriber", "EventDAL"), wire.Struct(new(biz.CleanupTask), "*"), wire.Struct(new(api.EventAPI), "EventBIZ", "Hub"), api.NewWSHub, ProvideEventSubscriber, wire.Struct(new(dal.AuditLog), "*"), wire.Struct(new(biz.AuditLog), "*"), wire.Struct(new(api.AuditLog), "*"), wire.Struct(new(biz.PortalUser), "*"), wire.Struct(new(api.PortalUserAPI), "*"), )
Functions ¶
func ProvideEventSubscriber ¶
func ProvideEventSubscriber(redisClient *redis.Client) biz.EventSubscriber
ProvideEventSubscriber creates the appropriate EventSubscriber based on config.
Types ¶
type Ops ¶
type Ops struct {
DB *gorm.DB
EventAPI *api.EventAPI
AuditLogAPI *api.AuditLog
PortalUserAPI *api.PortalUserAPI
Consumer *biz.Consumer
CleanupTask *biz.CleanupTask
Hub *api.WSHub
}
Ops is the operations module for event monitoring, dashboard, and audit logging.
func (*Ops) AutoMigrate ¶
AutoMigrate creates or updates the event_log and audit_log tables.
func (*Ops) RegisterV1Routers ¶
RegisterV1Routers registers the ops API routes.
Click to show internal directories.
Click to hide internal directories.