sync

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncMng

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

func NewSyncMng

func NewSyncMng(
	db model.SyncAPIDatabase,
	slot uint32,
	chanSize int,
	cfg *config.Dendrite,
	rpcClient *common.RpcClient,
) *SyncMng

func (*SyncMng) FillSortEventOffset

func (sm *SyncMng) FillSortEventOffset(res *syncapitypes.Response, req *request)

func (*SyncMng) GetOnlineRepo

func (sm *SyncMng) GetOnlineRepo() *repos.OnlineUserRepo

func (*SyncMng) GetPushkeyByUserDeviceID

func (sm *SyncMng) GetPushkeyByUserDeviceID(userID, deviceID string) []types.PushKeyContent

func (*SyncMng) OnStateChange

func (sm *SyncMng) OnStateChange(state *types.NotifyDeviceState)

func (*SyncMng) OnSyncRequest

func (sm *SyncMng) OnSyncRequest(
	ctx context.Context,
	req *types.HttpReq,
	device *authtypes.Device,
) (int, *syncapitypes.Response)

func (*SyncMng) OnUserStateChange

func (sm *SyncMng) OnUserStateChange(state *types.NotifyUserState)

func (*SyncMng) SetCache

func (sm *SyncMng) SetCache(cache service.Cache) *SyncMng

func (*SyncMng) SetClientDataStreamRepo

func (sm *SyncMng) SetClientDataStreamRepo(clientDataStreamRepo *repos.ClientDataStreamRepo) *SyncMng

func (*SyncMng) SetComplexCache

func (sm *SyncMng) SetComplexCache(complexCache *common.ComplexCache) *SyncMng

func (*SyncMng) SetKeyChangeRepo

func (sm *SyncMng) SetKeyChangeRepo(kChangeRepo *repos.KeyChangeStreamRepo) *SyncMng

func (*SyncMng) SetOnlineRepo

func (sm *SyncMng) SetOnlineRepo(onlineRepo *repos.OnlineUserRepo) *SyncMng

func (*SyncMng) SetPresenceStreamRepo

func (sm *SyncMng) SetPresenceStreamRepo(presenceStreamRepo *repos.PresenceDataStreamRepo) *SyncMng

func (*SyncMng) SetStdEventStreamRepo

func (sm *SyncMng) SetStdEventStreamRepo(stdEventRepo *repos.STDEventStreamRepo) *SyncMng

func (*SyncMng) SetTypingConsumer

func (sm *SyncMng) SetTypingConsumer(typingConsumer *consumers.TypingConsumer) *SyncMng

func (*SyncMng) SetUserDeviceActiveTsRepo

func (sm *SyncMng) SetUserDeviceActiveTsRepo(userDeviceActiveTsRepo *repos.UserDeviceActiveRepo) *SyncMng

func (*SyncMng) SetUserTimeLine

func (sm *SyncMng) SetUserTimeLine(userTimeLine *repos.UserTimeLineRepo) *SyncMng

func (*SyncMng) Start

func (sm *SyncMng) Start()

Jump to

Keyboard shortcuts

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