Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
CacheReloadInterval time.Duration
CacheReloadTimeout time.Duration
CachePrefillCount int
CacheSize int
Ent *db.Client
Logger *slog.Logger
PaginationSize int
}
Config is the configuration for the subject manager
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a subject manager
func NewManager ¶
NewManager creates a new subject manager
func (*Manager) Ensure ¶
func (m *Manager) Ensure(ctx context.Context, params ...*SubjectRef) error
Ensure creates subjects when they do not exist in the cache
func (*Manager) EventBatchedIngestHandlerFactory ¶
func (m *Manager) EventBatchedIngestHandlerFactory() cqrs.GroupEventHandler
EventBatchedIngestHandlerFactory returns a handler for batched ingest events The handler ensures that the subjects in the ingested events exist in the database. This handler is used in the watermill event router.
type SubjectRef ¶
SubjectRef references a subject
Click to show internal directories.
Click to hide internal directories.