smtp

package
v0.0.0-...-98523ca Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accept

func Accept(remoteAddress string, conn io.ReadWriteCloser, storage storage.Storage, messageChan chan *data.Message, hostname string, monkey monkey.ChaosMonkey)

Accept starts a new SMTP session using io.ReadWriteCloser

func Listen

func Listen(cfg *config.Config, exitCh chan int) *net.TCPListener

Types

type Session

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

Session represents a SMTP session using net.TCPConn

func (*Session) Read

func (c *Session) Read() bool

Read reads from the underlying net.TCPConn

func (*Session) Write

func (c *Session) Write(reply *smtp.Reply)

Write writes a reply to the underlying net.TCPConn

Jump to

Keyboard shortcuts

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