Documentation ¶
Overview ¶
Package importexport provides core functionality of Import-Export app.
Index ¶
- Constants
- type Cacher
- type ImportExport
- func (ie *ImportExport) GetEMLExporter(address, path string) (*transfer.Transfer, error)
- func (ie *ImportExport) GetLocalImporter(address, path string) (*transfer.Transfer, error)
- func (ie *ImportExport) GetMBOXExporter(address, path string) (*transfer.Transfer, error)
- func (ie *ImportExport) GetRemoteImporter(address, username, password, 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 ¶
View Source
const Credits = "" /* 1801-byte string literal not displayed */
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 users.ClientManager, credStorer users.CredentialsStorer, ) *ImportExport
func (*ImportExport) GetEMLExporter ¶
func (ie *ImportExport) GetEMLExporter(address, path string) (*transfer.Transfer, error)
GetEMLExporter returns transferrer from ProtonMail account to local EML structure.
func (*ImportExport) GetLocalImporter ¶
func (ie *ImportExport) GetLocalImporter(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(address, path string) (*transfer.Transfer, error)
GetMBOXExporter returns transferrer from ProtonMail account to local MBOX structure.
func (*ImportExport) GetRemoteImporter ¶
func (ie *ImportExport) GetRemoteImporter(address, username, password, 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.