func New(pop3Config config.POP3, shutdownChan chan bool, store storage.Store) *Server {
	return &Server{
		config:         pop3Config,
		store:          store,
		globalShutdown: shutdownChan,
		wg:             new(sync.WaitGroup),
	}
}
New creates a new Server struct.
package pop3
import (
	"context"
	"net"
	"sync"
	"time"
	"github.com/inbucket/inbucket/pkg/config"
	"github.com/inbucket/inbucket/pkg/storage"
	"github.com/rs/zerolog/log"
)
type Server struct {
	config         config.POP3      
	store          storage.Store    
	listener       net.Listener     
	globalShutdown chan bool        
	wg             *sync.WaitGroup  
}