notification

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package notification is the composition root for the notification feature. It wires the in-process service implementation and exposes it through typed service keys and optional HTTP routes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct{}

Module wires the notification service and HTTP handlers.

func NewModule

func NewModule() *Module

NewModule creates a notification module.

func (*Module) DependsOn

func (m *Module) DependsOn() []string

DependsOn implements modulex.Module.

func (*Module) Init

func (m *Module) Init(ctx context.Context, reg modulex.Registry) error

Init implements modulex.Module. It registers the notification service and, if a Chi router is available, mounts the HTTP endpoint.

func (*Module) Name

func (m *Module) Name() string

Name implements modulex.Module.

type RemoteModule

type RemoteModule struct {
	// contains filtered or unexported fields
}

RemoteModule registers a remote HTTP client adapter as the notification service. It is used in standalone deployments where the real notification service runs in a separate process.

func NewRemoteModule

func NewRemoteModule(baseURL string, client *http.Client) (*RemoteModule, error)

NewRemoteModule creates a notification module that proxies to a remote service over HTTP.

func (*RemoteModule) DependsOn

func (m *RemoteModule) DependsOn() []string

DependsOn implements modulex.Module.

func (*RemoteModule) Init

Init implements modulex.Module. It registers the remote client adapter under the same typed key the local module uses.

func (*RemoteModule) Name

func (m *RemoteModule) Name() string

Name implements modulex.Module.

Directories

Path Synopsis
Package adapters provides infrastructure adapters for the notification feature.
Package adapters provides infrastructure adapters for the notification feature.
Package ports defines the inbound and outbound contracts for the notification feature.
Package ports defines the inbound and outbound contracts for the notification feature.
Package service contains the core business logic for the notification feature.
Package service contains the core business logic for the notification feature.

Jump to

Keyboard shortcuts

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