Documentation ¶
Overview ¶
Package smtpingress implements the smtp.ingress.core microservice.
The SMTP ingress microservice listens for incoming emails and fires corresponding events.
Index ¶
- Constants
- type Mock
- type Service
- func (svc *Service) Init(initializer func(svc *Service)) *Service
- func (svc *Service) OnChangedEnabled(ctx context.Context) (err error)
- func (svc *Service) OnChangedLogLevel(ctx context.Context) (err error)
- func (svc *Service) OnChangedMaxClients(ctx context.Context) (err error)
- func (svc *Service) OnChangedMaxSize(ctx context.Context) (err error)
- func (svc *Service) OnChangedPort(ctx context.Context) (err error)
- func (svc *Service) OnChangedWorkers(ctx context.Context) (err error)
- func (svc *Service) OnShutdown(ctx context.Context) (err error)
- func (svc *Service) OnStartup(ctx context.Context) (err error)
Constants ¶
const Hostname = "smtp.ingress.core"
Hostname is the default hostname of the microservice: smtp.ingress.core.
const SourceCodeSHA256 = "871ee4ef620e4dc6233e0956cf14ed2b0c1cd4c28340c97f7445a212117c17cb"
const Timestamp = "2024-08-01T15:49:25.682035Z"
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.
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 ¶
Init enables a single-statement pattern for initializing the microservice.
svc.Init(func(svc Service) { svc.SetGreeting("Hello") })
func (*Service) OnChangedEnabled ¶
OnChangedEnabled is triggered when the value of the Enabled config property changes.
func (*Service) OnChangedLogLevel ¶
OnChangedLogLevel is triggered when the value of the LogLevel config property changes.
func (*Service) OnChangedMaxClients ¶
OnChangedMaxClients is triggered when the value of the MaxClients config property changes.
func (*Service) OnChangedMaxSize ¶
OnChangedMaxSize is triggered when the value of the MaxSize config property changes.
func (*Service) OnChangedPort ¶
OnChangedPort is triggered when the value of the Port config property changes.
func (*Service) OnChangedWorkers ¶
OnChangedWorkers is triggered when the value of the Workers config property changes.
func (*Service) OnShutdown ¶
OnShutdown is called when the microservice is shut down.
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. |