consumer

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package consumer is a dependent feature module that consumes the notification service. It is intentionally small so the monolith and remote examples can share the same business code while wiring different implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module depends on the notification service.

func NewModule

func NewModule() *Module

NewModule creates a consumer module.

func (*Module) DependsOn

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

func (*Module) Init

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

Init resolves the notification service port.

func (*Module) Name

func (m *Module) Name() string

func (*Module) Start

func (m *Module) Start(ctx context.Context) error

Start implements modulex.Starter. It sends a notification to demonstrate that the dependency is wired correctly.

Jump to

Keyboard shortcuts

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