primary

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 3 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL