service

package
v0.0.0-...-6189a72 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware func(NotificatorService) NotificatorService

Middleware describes a service middleware.

func LoggingMiddleware

func LoggingMiddleware(logger log.Logger) Middleware

LoggingMiddleware takes a logger as a dependency and returns a NotificatorService Middleware.

type NotificatorService

type NotificatorService interface {
	// Add your methods here
	SendEmail(ctx context.Context, email string, content string) error
}

NotificatorService describes the service.

func New

func New(middleware []Middleware) NotificatorService

New returns a NotificatorService with all of the expected middleware wired in.

func NewBasicNotificatorService

func NewBasicNotificatorService() NotificatorService

NewBasicNotificatorService returns a naive, stateless implementation of NotificatorService.

Jump to

Keyboard shortcuts

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