badass

package module
v0.0.0-...-b911aa2 Latest Latest
Warning

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

Go to latest
Published: Dec 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 OptionFunc

type OptionFunc func(s *Server) error

func WithDKIMVerification

func WithDKIMVerification(enabled bool) OptionFunc

func WithHostname

func WithHostname(hostname string) OptionFunc

func WithLogger

func WithLogger(logger *slog.Logger) OptionFunc

func WithResolver

func WithResolver(r spf.DNSResolver) OptionFunc

func WithSPFVerification

func WithSPFVerification(enabled bool) OptionFunc

func WithTLSConfig

func WithTLSConfig(tlsConfig *tls.Config) OptionFunc

type Server

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

func NewServer

func NewServer(bind, bindImplicitTLS string, redirector types.Redirector, outlet types.Outlet, options ...OptionFunc) (*Server, error)

func (*Server) Ready

func (s *Server) Ready() <-chan struct{}

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Directories

Path Synopsis
cmd
internal
rfc5322/address
Package mail implements parsing of mail messages.
Package mail implements parsing of mail messages.

Jump to

Keyboard shortcuts

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