pop3

package
v0.0.0-...-8277694 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

pop3 server implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// obtains a mail store given a user
	Local mailstore.MailRouter
	// login authenticator
	Auth UserAuthenticator

	// tls config
	TLS *tls.Config
	// contains filtered or unexported fields
}

pop3 server

func New

func New() *Server

func (*Server) Serve

func (s *Server) Serve(l net.Listener) (err error)

serve sessions with connections accepted from a net.Listener

type UserAuthenticator

type UserAuthenticator func(string, string) (bool, error)

function that authenticates a user

Jump to

Keyboard shortcuts

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