Documentation ¶
Overview ¶
Package importexport provides core functionality of Import-Export app.
Index ¶
- type Cacher
- type ImportExport
- func (ie *ImportExport) GetEMLExporter(username, address, path string) (*transfer.Transfer, error)
- func (ie *ImportExport) GetLocalImporter(username, address, path string) (*transfer.Transfer, error)
- func (ie *ImportExport) GetMBOXExporter(username, address, path string) (*transfer.Transfer, error)
- func (ie *ImportExport) GetRemoteImporter(username, address, remoteUsername, remotePassword, host, port string) (*transfer.Transfer, error)
- func (ie *ImportExport) ReportBug(osType, osVersion, description, accountName, address, emailClient string) error
- func (ie *ImportExport) ReportFile(osType, osVersion, accountName, address string, logdata []byte) error
- type Locator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportExport ¶
func New ¶
func New( locations Locator, cache Cacher, panicHandler users.PanicHandler, eventListener listener.Listener, clientManager pmapi.Manager, credStorer users.CredentialsStorer, ) *ImportExport
func (*ImportExport) GetEMLExporter ¶
func (ie *ImportExport) GetEMLExporter(username, address, path string) (*transfer.Transfer, error)
GetEMLExporter returns transferrer from ProtonMail account to local EML structure.
func (*ImportExport) GetLocalImporter ¶
func (ie *ImportExport) GetLocalImporter(username, address, path string) (*transfer.Transfer, error)
GetLocalImporter returns transferrer from local EML or MBOX structure to ProtonMail account.
func (*ImportExport) GetMBOXExporter ¶
func (ie *ImportExport) GetMBOXExporter(username, address, path string) (*transfer.Transfer, error)
GetMBOXExporter returns transferrer from ProtonMail account to local MBOX structure.
func (*ImportExport) GetRemoteImporter ¶
func (ie *ImportExport) GetRemoteImporter(username, address, remoteUsername, remotePassword, host, port string) (*transfer.Transfer, error)
GetRemoteImporter returns transferrer from remote IMAP to ProtonMail account.
func (*ImportExport) ReportBug ¶
func (ie *ImportExport) ReportBug(osType, osVersion, description, accountName, address, emailClient string) error
ReportBug reports a new bug from the user.
func (*ImportExport) ReportFile ¶
func (ie *ImportExport) ReportFile(osType, osVersion, accountName, address string, logdata []byte) error
ReportFile submits import report file.
Click to show internal directories.
Click to hide internal directories.