Documentation
¶
Overview ¶
Package memory provides a process-local implementation of core.Store.
Index ¶
- type Store
- func (s *Store[T]) ActivateDestination(ctx context.Context, plan core.PlanID, destination core.DestinationID) error
- func (s *Store[T]) Admit(ctx context.Context, plan core.Plan, items []core.Item[T]) error
- func (s *Store[T]) Claim(ctx context.Context, request core.ClaimRequest) ([]core.Work[T], error)
- func (s *Store[T]) PendingPlans(ctx context.Context) ([]core.PlanID, error)
- func (s *Store[T]) QuarantineDestination(ctx context.Context, plan core.PlanID, destination core.DestinationID, ...) error
- func (s *Store[T]) Resolve(ctx context.Context, resolution core.Resolution) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store[T any] struct { // contains filtered or unexported fields }
Store keeps delivery state in memory (doesn't survive process restarts).
func (*Store[T]) ActivateDestination ¶
func (s *Store[T]) ActivateDestination(ctx context.Context, plan core.PlanID, destination core.DestinationID) error
ActivateDestination lets the destination receive newly enqueued work again.
func (*Store[T]) Admit ¶
Admit registers the plan and creates one delivery obligation per plan destination for each item.
func (*Store[T]) PendingPlans ¶
PendingPlans returns every plan that still holds unfinished deliveries.
Click to show internal directories.
Click to hide internal directories.