16 lines
443 B
Go
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
|
|
}
|