dahuasmtp

package
v0.0.0-...-72e33f6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

The Backend implements SMTP server methods.

func NewBackend

func NewBackend(ctx context.Context) *Backend

func (*Backend) NewSession

func (b *Backend) NewSession(state *smtp.Conn) (smtp.Session, error)

type Option

type Option func(s *smtp.Server)

func MaxMessageBytes

func MaxMessageBytes(maxMessageBytes int64) Option

type Server

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

func NewServer

func NewServer(backend smtp.Backend, address string, options ...Option) Server

func (Server) Serve

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

func (Server) String

func (Server) String() string

Jump to

Keyboard shortcuts

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