sync

package
v0.0.0-...-7632013 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

Types

type MessageLister

type MessageLister interface {
	ListAll(ctx context.Context, handler func(message.ID) error) error
	ListFrom(ctx context.Context, historyId uint64, handler func(message.ID) error) error
}

MessageLister lists all message identifiers from a message storage system.

type MessageMetaGetter

type MessageMetaGetter interface {
	GetMessageHeader(ctx context.Context, id string) (*message.Header, error)
	GetMessageFull(ctx context.Context, id string) (*message.Body, error)
}

MessageMetaGetter gets per message metadata from message storage system.

type MessageProfiler

type MessageProfiler interface {
	GetProfile(ctx context.Context) (*message.Profile, error)
}

MessageProfiler gets per account metadata from a message storage system.

type MessageStorage

type MessageStorage interface {
	MessageLister
	MessageMetaGetter
	MessageProfiler
}

MessageStorage provides all possible actions available to deal with message storage.

Jump to

Keyboard shortcuts

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