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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
badass command
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
⌂ 换网址