smtpingress

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package smtpingress implements the smtp.ingress.core microservice.

The SMTP ingress microservice listens for incoming emails and fires corresponding events.

Index

Constants

View Source
const Hostname = "smtp.ingress.core"

Hostname is the default hostname of the microservice: smtp.ingress.core.

View Source
const SourceCodeSHA256 = "871ee4ef620e4dc6233e0956cf14ed2b0c1cd4c28340c97f7445a212117c17cb"
View Source
const Timestamp = "2024-08-01T15:49:25.682035Z"
View Source
const Version = 124

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

type Mock = intermediate.Mock

Mock is a mockable version of the smtp.ingress.core microservice, allowing functions, event sinks and web handlers to be mocked.

func NewMock

func NewMock() *Mock

New creates a new mockable version of the microservice.

type Service

type Service struct {
	*intermediate.Intermediate // DO NOT REMOVE
	// contains filtered or unexported fields
}

Service implements the smtp.ingress.core microservice.

The SMTP ingress microservice listens for incoming emails and fires corresponding events.

func NewService

func NewService() *Service

NewService creates a new smtp.ingress.core microservice.

func (*Service) Init

func (svc *Service) Init(initializer func(svc *Service)) *Service

Init enables a single-statement pattern for initializing the microservice.

svc.Init(func(svc Service) {
	svc.SetGreeting("Hello")
})

func (*Service) OnChangedEnabled

func (svc *Service) OnChangedEnabled(ctx context.Context) (err error)

OnChangedEnabled is triggered when the value of the Enabled config property changes.

func (*Service) OnChangedLogLevel

func (svc *Service) OnChangedLogLevel(ctx context.Context) (err error)

OnChangedLogLevel is triggered when the value of the LogLevel config property changes.

func (*Service) OnChangedMaxClients

func (svc *Service) OnChangedMaxClients(ctx context.Context) (err error)

OnChangedMaxClients is triggered when the value of the MaxClients config property changes.

func (*Service) OnChangedMaxSize

func (svc *Service) OnChangedMaxSize(ctx context.Context) (err error)

OnChangedMaxSize is triggered when the value of the MaxSize config property changes.

func (*Service) OnChangedPort

func (svc *Service) OnChangedPort(ctx context.Context) (err error)

OnChangedPort is triggered when the value of the Port config property changes.

func (*Service) OnChangedWorkers

func (svc *Service) OnChangedWorkers(ctx context.Context) (err error)

OnChangedWorkers is triggered when the value of the Workers config property changes.

func (*Service) OnShutdown

func (svc *Service) OnShutdown(ctx context.Context) (err error)

OnShutdown is called when the microservice is shut down.

func (*Service) OnStartup

func (svc *Service) OnStartup(ctx context.Context) (err error)

OnStartup is called when the microservice is started up.

Directories

Path Synopsis
app
Package intermediate serves as the foundation of the smtp.ingress.core microservice.
Package intermediate serves as the foundation of the smtp.ingress.core microservice.
Package smtpingressapi implements the public API of the smtp.ingress.core microservice, including clients and data structures.
Package smtpingressapi implements the public API of the smtp.ingress.core microservice, including clients and data structures.

Jump to

Keyboard shortcuts

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