service

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package service contains the core business logic for the notification feature.

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyMessage = errors.New("message must not be empty")

ErrEmptyMessage is returned when a notification request contains no message.

Functions

This section is empty.

Types

type NotificationService

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

NotificationService implements ports.Service with in-process delivery.

func New

func New(logger *slog.Logger) *NotificationService

New creates a NotificationService.

func (*NotificationService) Send

func (s *NotificationService) Send(ctx context.Context, message string) error

Send implements ports.Service.

Jump to

Keyboard shortcuts

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