Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrimaryPort ¶
type PrimaryPort interface { // Serve starts primary port adapter with cancellable context and WaitGroup for graceful shutdown Serve(ctx context.Context, shutdownWg *sync.WaitGroup, readinessWg *sync.WaitGroup) error // Register registers primary port handler to primary adapter instance Register(*domain.PrimaryAdapterHandler) error }
PrimaryPort provides common interface for all the primary adapters. Example resources include: - REST API server - gRPC server - Kafka consumer
It is intended to represent the individual interfaces on each exteranl service,
type PrimaryPortError ¶
type PrimaryPortError struct { PrimaryPort PrimaryPort Error error }
Click to show internal directories.
Click to hide internal directories.