voicemail

package
v1.6.15 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailbox

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

Mailbox handles voicmails.

func NewMailboxSyncer

func NewMailboxSyncer(
	ctx context.Context,
	storagePath string,
	mng *mailsync.Manager,
	providers *config.Providers,
	mb *pbx3cxv1.Mailbox,
) (*Mailbox, error)

func (*Mailbox) Dispose

func (box *Mailbox) Dispose() error

func (*Mailbox) HandleMail

func (box *Mailbox) HandleMail(ctx context.Context, mail *mailbox.EMail)

HandleMail implements mailsync.MessageHandler.

func (*Mailbox) Stop

func (box *Mailbox) Stop() error

Stop stops the mailbox syncer.

type Manager

type Manager struct {
	*mailsync.Manager
	// contains filtered or unexported fields
}

func NewManager

func NewManager(ctx context.Context, providers *config.Providers) (*Manager, error)

func (*Manager) CreateMailbox

func (mng *Manager) CreateMailbox(ctx context.Context, mb *pbx3cxv1.Mailbox) error

func (*Manager) DeleteMailbox

func (mng *Manager) DeleteMailbox(ctx context.Context, id string) error

func (*Manager) TriggerSync added in v1.6.1

func (mng *Manager) TriggerSync(ctx context.Context, id string) error

func (*Manager) UpdateMailbox added in v1.5.1

func (mng *Manager) UpdateMailbox(ctx context.Context, mb *pbx3cxv1.Mailbox) error

Jump to

Keyboard shortcuts

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