Files
galaxy-game/authsession/internal/ports/projection_publisher.go
T
2026-04-08 16:23:07 +02:00

16 lines
443 B
Go

package ports
import (
"context"
"galaxy/authsession/internal/domain/gatewayprojection"
)
// GatewaySessionProjectionPublisher publishes gateway-facing session snapshots
// after source-of-truth session changes.
type GatewaySessionProjectionPublisher interface {
// PublishSession writes or propagates snapshot in the gateway-facing
// projection model.
PublishSession(ctx context.Context, snapshot gatewayprojection.Snapshot) error
}