listener

package
v0.0.0-...-c756553 Latest Latest
Warning

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

Go to latest
Published: May 24, 2016 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTPListener

type SMTPListener struct {

	// whitelist of sender domains to accept, nil means no restrictions
	DomainWhitelist []string
	// contains filtered or unexported fields
}

Listener for requests sent via SMTP. The output generated when the request is handled will be sent back via SMTP as well.

func (SMTPListener) Listen

func (l SMTPListener) Listen(incoming chan dumbdumb.Request)

TODO: try changing to pointer receiver and see what happens

type SMTPRequest

type SMTPRequest struct {
	Payload string
	Sender  string
}

func (SMTPRequest) GetPayload

func (r SMTPRequest) GetPayload() string

func (SMTPRequest) SendOutput

func (r SMTPRequest) SendOutput(output string) error

type SMTPResponse

type SMTPResponse struct {
	Payload string
	Sender  string
}

func (SMTPResponse) Send

func (r SMTPResponse) Send() error

Jump to

Keyboard shortcuts

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