service

package
v0.0.0-...-a6a29b8 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailService

type MailService struct {
	// contains filtered or unexported fields
}

func NewMailService

func NewMailService() *MailService

func (*MailService) DownloadAttachment

func (ms *MailService) DownloadAttachment(uid int, index int, cxt echo.Context) (*mail.MailAttachmentDto, error)

func (*MailService) GetLast

func (ms *MailService) GetLast(count int, ctx echo.Context) ([]models.MailModel, error)

func (*MailService) GetList

func (ms *MailService) GetList(page int, ctx echo.Context) ([]models.MailModel, error)

func (*MailService) GetView

func (ms *MailService) GetView(uid int, ctx echo.Context) (*models.MailModel, error)

func (*MailService) MailBoxes

func (ms *MailService) MailBoxes() ([]string, error)

List of folders(mailboxes)

func (*MailService) Move

func (ms *MailService) Move(uid int, mailbox string) error

func (*MailService) SetFolder

func (ms *MailService) SetFolder(folder string) error

Устанавливаем папку по-умолчанию

type Manager

type Manager struct {
	MailService *MailService
}

func NewManager

func NewManager() (*Manager, error)

Jump to

Keyboard shortcuts

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