server

package
v3.1.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Services

type Services struct {
	MsgHub           *msghub.Hub
	POP3Server       *pop3.Server
	RetentionScanner *storage.RetentionScanner
	SMTPServer       *smtp.Server
	WebServer        *web.Server
	ExtHost          *extension.Host
	LuaHost          *luahost.Host
	// contains filtered or unexported fields
}

Services holds the configured services.

func FullAssembly

func FullAssembly(conf *config.Root) (*Services, error)

FullAssembly wires up a complete Inbucket environment.

func (*Services) Notify

func (s *Services) Notify() <-chan error

Notify returns a merged channel of the error notification channels of all fallible services, allowing the process to be shutdown if needed.

func (*Services) Start

func (s *Services) Start(ctx context.Context, readyFunc func())

Start all services, returns immediately. Callers may use Notify to detect failed services.

Directories

Path Synopsis
Package web provides the plumbing for Inbucket's web GUI and RESTful API
Package web provides the plumbing for Inbucket's web GUI and RESTful API

Jump to

Keyboard shortcuts

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