ports

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package ports defines the inbound and outbound contracts for the notification feature. Keeping interfaces in a dedicated package lets both local and remote compositions depend on the same contract without importing implementation details.

Index

Constants

This section is empty.

Variables

View Source
var ServiceKey = modulex.NewKey[Service]("notification.Service")

ServiceKey is the typed registry key for Service. Keeping the key with the port lets consumers depend only on the contract package rather than the full notification module.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Send delivers a notification message. The implementation may be a local
	// in-process service or a remote client adapter.
	Send(ctx context.Context, message string) error
}

Service is the primary inbound port for sending notifications.

Jump to

Keyboard shortcuts

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