storage

package
v1.1.39 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: AGPL-3.0 Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExecutionStoreInvalid = errors.New("execution store: invalid")

ErrExecutionStoreInvalid is retained as the generic invalid-payload marker used by the service-binding output sanitizer. Execution persistence itself no longer lives in message-server.

Functions

func SafeServiceBindingInvokeOutput added in v1.1.3

func SafeServiceBindingInvokeOutput(value any) (map[string]any, error)

SafeServiceBindingInvokeOutput canonicalizes an adapter result at the service-binding invocation boundary. Invocation results can be forwarded to ProductCore clients and Native Agent tools, so they are never a secret transport. The returned map contains JSON-only values suitable for direct response serialization.

Types

type DatabaseStore

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

func NewDatabaseStore

func NewDatabaseStore(ctx context.Context, cm *sqlutil.Connections, dbProperties *config.DatabaseOptions) (*DatabaseStore, error)

func NewUnmigratedDatabaseStore

func NewUnmigratedDatabaseStore(db *sql.DB, writer sqlutil.Writer) *DatabaseStore

func (*DatabaseStore) ApplyChannelPostSettings added in v1.1.6

func (s *DatabaseStore) ApplyChannelPostSettings(ctx context.Context, settings channelPostSettingsRecord) error

func (*DatabaseStore) BackfillProductConversations

func (s *DatabaseStore) BackfillProductConversations(ctx context.Context) error

func (*DatabaseStore) ClaimOperation added in v1.0.3

func (s *DatabaseStore) ClaimOperation(
	ctx context.Context,
	record operations.Record,
	owner string,
	leaseDurationMillis int64,
) (operations.Record, bool, error)

func (*DatabaseStore) Close

func (s *DatabaseStore) Close() error

func (*DatabaseStore) CompareAndSwapContact added in v1.0.3

func (s *DatabaseStore) CompareAndSwapContact(
	ctx context.Context,
	contact contactRecord,
	expected contactRecord,
) (bool, error)

func (*DatabaseStore) CompareAndSwapContactProjection added in v1.0.3

func (s *DatabaseStore) CompareAndSwapContactProjection(
	ctx context.Context,
	contact contactRecord,
	expected contactRecord,
) (bool, error)

CompareAndSwapContactProjection commits a contact generation and its direct-conversation projection atomically. It also preserves the historic contact-over-group ownership rule for a Matrix room inside that transaction.

func (*DatabaseStore) CompareAndSwapMemberGeneration added in v1.0.3

func (s *DatabaseStore) CompareAndSwapMemberGeneration(
	ctx context.Context,
	member memberRecord,
	expectedRequestID,
	expectedMembership string,
) (bool, error)

func (*DatabaseStore) CompareAndSwapOperation added in v1.0.3

func (s *DatabaseStore) CompareAndSwapOperation(
	ctx context.Context,
	record operations.Record,
	expectedRevision int64,
	owner string,
	leaseDurationMillis int64,
) (operations.Record, bool, error)

func (*DatabaseStore) CountActiveReactions

func (s *DatabaseStore) CountActiveReactions(ctx context.Context, targetType, targetID, reaction string) (int64, error)

func (*DatabaseStore) CountJoinedMembers

func (s *DatabaseStore) CountJoinedMembers(ctx context.Context, roomID, channelID string) (int64, error)

func (*DatabaseStore) CountProductMembers

func (s *DatabaseStore) CountProductMembers(ctx context.Context, roomID, channelID string) (int64, int64, error)

func (*DatabaseStore) DB

func (s *DatabaseStore) DB() *sql.DB

func (*DatabaseStore) DeactivateReactionByEventID added in v1.0.6

func (s *DatabaseStore) DeactivateReactionByEventID(ctx context.Context, eventID string) (bool, error)

func (*DatabaseStore) DeleteBlock

func (s *DatabaseStore) DeleteBlock(ctx context.Context, targetType, targetID string) (bool, error)

func (*DatabaseStore) DeleteChannel

func (s *DatabaseStore) DeleteChannel(ctx context.Context, channelID string) error

func (*DatabaseStore) DeleteChannelComment

func (s *DatabaseStore) DeleteChannelComment(ctx context.Context, commentID string) (bool, error)

func (*DatabaseStore) DeleteChannelPost

func (s *DatabaseStore) DeleteChannelPost(ctx context.Context, postID string) (bool, error)

func (*DatabaseStore) DeleteContact

func (s *DatabaseStore) DeleteContact(ctx context.Context, roomID string) error

func (*DatabaseStore) DeleteConversationByRoomID

func (s *DatabaseStore) DeleteConversationByRoomID(ctx context.Context, matrixRoomID string) error

func (*DatabaseStore) DeleteFavorite

func (s *DatabaseStore) DeleteFavorite(ctx context.Context, id int64) error

func (*DatabaseStore) DeleteFollow

func (s *DatabaseStore) DeleteFollow(ctx context.Context, domain string) error

func (*DatabaseStore) DeleteGroup

func (s *DatabaseStore) DeleteGroup(ctx context.Context, roomID string) error

func (*DatabaseStore) EventBounds

func (s *DatabaseStore) EventBounds(ctx context.Context) (eventBounds, error)

func (*DatabaseStore) FindFavoriteByEvent

func (s *DatabaseStore) FindFavoriteByEvent(ctx context.Context, eventID, roomID string) (favoriteRecord, bool, error)

func (*DatabaseStore) GetChannelByIDOrRoom

func (s *DatabaseStore) GetChannelByIDOrRoom(ctx context.Context, channelID, roomID string) (channel, bool, error)

func (*DatabaseStore) GetChannelCommentByEventID

func (s *DatabaseStore) GetChannelCommentByEventID(ctx context.Context, eventID, channelID string) (channelCommentRecord, bool, error)

func (*DatabaseStore) GetChannelCommentByID

func (s *DatabaseStore) GetChannelCommentByID(ctx context.Context, commentID, postID string) (channelCommentRecord, bool, error)

func (*DatabaseStore) GetChannelPostByEventID

func (s *DatabaseStore) GetChannelPostByEventID(ctx context.Context, eventID, channelID string) (channelPostRecord, bool, error)

func (*DatabaseStore) GetChannelPostByID

func (s *DatabaseStore) GetChannelPostByID(ctx context.Context, postID, channelID string) (channelPostRecord, bool, error)

func (*DatabaseStore) GetConversationByID

func (s *DatabaseStore) GetConversationByID(ctx context.Context, conversationID string) (conversationRecord, bool, error)

func (*DatabaseStore) GetConversationByRoomID

func (s *DatabaseStore) GetConversationByRoomID(ctx context.Context, matrixRoomID string) (conversationRecord, bool, error)

func (*DatabaseStore) GetGroupByRoom

func (s *DatabaseStore) GetGroupByRoom(ctx context.Context, roomID string) (groupRecord, bool, error)

func (*DatabaseStore) GetPlugin

func (s *DatabaseStore) GetPlugin(ctx context.Context, id string) (pluginInstance, bool, error)

func (*DatabaseStore) GetPluginJob

func (s *DatabaseStore) GetPluginJob(ctx context.Context, jobID string) (pluginJob, bool, error)

func (*DatabaseStore) GetPluginSecret

func (s *DatabaseStore) GetPluginSecret(ctx context.Context, pluginID, name string) (pluginSecret, bool, error)

func (*DatabaseStore) GetReaction

func (s *DatabaseStore) GetReaction(ctx context.Context, targetType, targetID, reaction, userID string) (reactionRecord, bool, error)

func (*DatabaseStore) GetReadMarker added in v1.0.4

func (s *DatabaseStore) GetReadMarker(ctx context.Context, roomID string) (readMarker, bool, error)

func (*DatabaseStore) InsertChannelComment

func (s *DatabaseStore) InsertChannelComment(ctx context.Context, comment channelCommentRecord) error

func (*DatabaseStore) InsertChannelPost

func (s *DatabaseStore) InsertChannelPost(ctx context.Context, post channelPostRecord) error

func (*DatabaseStore) InsertEvent

func (s *DatabaseStore) InsertEvent(ctx context.Context, event p2pEvent) (bool, error)

func (*DatabaseStore) InsertMemberIfAbsent added in v1.0.3

func (s *DatabaseStore) InsertMemberIfAbsent(ctx context.Context, member memberRecord) (bool, error)

func (*DatabaseStore) InsertReport

func (s *DatabaseStore) InsertReport(ctx context.Context, report reportRecord) error

func (*DatabaseStore) ListBlocks

func (s *DatabaseStore) ListBlocks(ctx context.Context) ([]blockRecord, error)

func (*DatabaseStore) ListCalls

func (s *DatabaseStore) ListCalls(ctx context.Context, roomID string, activeOnly bool) ([]callRecord, error)

func (*DatabaseStore) ListChannelComments

func (s *DatabaseStore) ListChannelComments(ctx context.Context, postID string) ([]channelCommentRecord, error)

func (*DatabaseStore) ListChannelCommentsPage

func (s *DatabaseStore) ListChannelCommentsPage(ctx context.Context, postID string, fromTS, snapshotTS, cursorTS int64, cursorID string, limit int) ([]channelCommentRecord, bool, error)

func (*DatabaseStore) ListChannelInviteGrants

func (s *DatabaseStore) ListChannelInviteGrants(ctx context.Context) ([]channelInviteGrant, error)

func (*DatabaseStore) ListChannelPosts

func (s *DatabaseStore) ListChannelPosts(ctx context.Context, channelID string) ([]channelPostRecord, error)

func (*DatabaseStore) ListChannelPostsByVisibilityPage added in v1.1.3

func (s *DatabaseStore) ListChannelPostsByVisibilityPage(ctx context.Context, channelID, visibility string, offset int64, limit int) ([]channelPostRecord, bool, error)

func (*DatabaseStore) ListChannelPostsOffsetPage added in v1.1.3

func (s *DatabaseStore) ListChannelPostsOffsetPage(ctx context.Context, channelID string, offset int64, limit int) ([]channelPostRecord, bool, error)

func (*DatabaseStore) ListChannelPostsPage

func (s *DatabaseStore) ListChannelPostsPage(ctx context.Context, channelID string, fromTS, snapshotTS, cursorTS int64, cursorID string, limit int) ([]channelPostRecord, bool, error)

func (*DatabaseStore) ListChannels

func (s *DatabaseStore) ListChannels(ctx context.Context) ([]channel, error)

func (*DatabaseStore) ListContacts

func (s *DatabaseStore) ListContacts(ctx context.Context) ([]contactRecord, error)

func (*DatabaseStore) ListConversations

func (s *DatabaseStore) ListConversations(ctx context.Context) ([]conversationRecord, error)

func (*DatabaseStore) ListEvents

func (s *DatabaseStore) ListEvents(ctx context.Context, since int64, limit int) ([]p2pEvent, error)

func (*DatabaseStore) ListFavorites

func (s *DatabaseStore) ListFavorites(ctx context.Context, messageType string) ([]favoriteRecord, error)

func (*DatabaseStore) ListFollows

func (s *DatabaseStore) ListFollows(ctx context.Context) ([]followRecord, error)

func (*DatabaseStore) ListGroups

func (s *DatabaseStore) ListGroups(ctx context.Context) ([]groupRecord, error)

func (*DatabaseStore) ListJoinedChannelsForUser

func (s *DatabaseStore) ListJoinedChannelsForUser(ctx context.Context, userID string) ([]channel, error)

func (*DatabaseStore) ListJoinedGroupsForUser

func (s *DatabaseStore) ListJoinedGroupsForUser(ctx context.Context, userID string) ([]groupRecord, error)

func (*DatabaseStore) ListMembers

func (s *DatabaseStore) ListMembers(ctx context.Context, roomID, channelID string) ([]memberRecord, error)

func (*DatabaseStore) ListMembersForUser

func (s *DatabaseStore) ListMembersForUser(ctx context.Context, userID string) ([]memberRecord, error)

func (*DatabaseStore) ListPlugins

func (s *DatabaseStore) ListPlugins(ctx context.Context) ([]pluginInstance, error)

func (*DatabaseStore) ListPublicChannelsForOwner

func (s *DatabaseStore) ListPublicChannelsForOwner(ctx context.Context, userID string) ([]channel, error)

func (*DatabaseStore) ListReactions

func (s *DatabaseStore) ListReactions(ctx context.Context, userID string) ([]reactionRecord, error)

func (*DatabaseStore) ListReadMarkers added in v1.0.4

func (s *DatabaseStore) ListReadMarkers(ctx context.Context) ([]readMarker, error)

func (*DatabaseStore) ListReports

func (s *DatabaseStore) ListReports(ctx context.Context, targetRoomID string, limit int) ([]reportRecord, error)

func (*DatabaseStore) LoadPortal

func (s *DatabaseStore) LoadPortal(ctx context.Context) (portalState, bool, error)

func (*DatabaseStore) LookupMember

func (s *DatabaseStore) LookupMember(ctx context.Context, roomID, userID string) (memberRecord, bool, error)

func (*DatabaseStore) LookupOperation added in v1.0.3

func (s *DatabaseStore) LookupOperation(ctx context.Context, operationID string) (operations.Record, bool, error)

func (*DatabaseStore) Migrate

func (s *DatabaseStore) Migrate(ctx context.Context) error

func (*DatabaseStore) PruneEventsBefore

func (s *DatabaseStore) PruneEventsBefore(ctx context.Context, beforeSeq int64) (int64, error)

func (*DatabaseStore) PruneEventsToMaxRows

func (s *DatabaseStore) PruneEventsToMaxRows(ctx context.Context, maxRows int64) (int64, error)

func (*DatabaseStore) RecordAgentExecutionCompletion added in v1.1.29

func (s *DatabaseStore) RecordAgentExecutionCompletion(
	ctx context.Context,
	receipt agentExecutionCompletionReceipt,
	event p2pEvent,
) (inserted bool, eventSeq int64, err error)

func (*DatabaseStore) SaveClientBuild

func (s *DatabaseStore) SaveClientBuild(ctx context.Context, expectedDeviceID string, build clientBuild) (bool, error)

func (*DatabaseStore) SavePortal

func (s *DatabaseStore) SavePortal(ctx context.Context, state portalState) error

func (*DatabaseStore) SaveReadMarker

func (s *DatabaseStore) SaveReadMarker(ctx context.Context, marker readMarker) error

func (*DatabaseStore) SearchPublicChannels

func (s *DatabaseStore) SearchPublicChannels(ctx context.Context, query string, limit int) ([]channel, error)

func (*DatabaseStore) SetConversationCreator added in v1.0.6

func (s *DatabaseStore) SetConversationCreator(ctx context.Context, matrixRoomID, creatorMXID string) error

func (*DatabaseStore) UpsertBlock

func (s *DatabaseStore) UpsertBlock(ctx context.Context, block blockRecord) error

func (*DatabaseStore) UpsertCall

func (s *DatabaseStore) UpsertCall(ctx context.Context, call callRecord) error

func (*DatabaseStore) UpsertChannel

func (s *DatabaseStore) UpsertChannel(ctx context.Context, ch channel) error

func (*DatabaseStore) UpsertChannelInviteGrant

func (s *DatabaseStore) UpsertChannelInviteGrant(ctx context.Context, grant channelInviteGrant) error

func (*DatabaseStore) UpsertContact

func (s *DatabaseStore) UpsertContact(ctx context.Context, contact contactRecord) error

func (*DatabaseStore) UpsertConversation

func (s *DatabaseStore) UpsertConversation(ctx context.Context, record conversationRecord) error

func (*DatabaseStore) UpsertFavorite

func (s *DatabaseStore) UpsertFavorite(ctx context.Context, favorite favoriteRecord) error

func (*DatabaseStore) UpsertFollow

func (s *DatabaseStore) UpsertFollow(ctx context.Context, follow followRecord) error

func (*DatabaseStore) UpsertGroup

func (s *DatabaseStore) UpsertGroup(ctx context.Context, group groupRecord) error

func (*DatabaseStore) UpsertMember

func (s *DatabaseStore) UpsertMember(ctx context.Context, member memberRecord) error

func (*DatabaseStore) UpsertOperation added in v1.0.3

func (s *DatabaseStore) UpsertOperation(ctx context.Context, record operations.Record) error

func (*DatabaseStore) UpsertPlugin

func (s *DatabaseStore) UpsertPlugin(ctx context.Context, plugin pluginInstance) error

func (*DatabaseStore) UpsertPluginJob

func (s *DatabaseStore) UpsertPluginJob(ctx context.Context, job pluginJob) error

func (*DatabaseStore) UpsertPluginSecret

func (s *DatabaseStore) UpsertPluginSecret(ctx context.Context, secret pluginSecret) error

func (*DatabaseStore) UpsertReaction

func (s *DatabaseStore) UpsertReaction(ctx context.Context, reaction reactionRecord) error

type MemoryStore added in v1.0.3

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

MemoryStore is an in-process implementation of the P2P product-state store. It is intended for tests and the legacy no-database service path only. Server startup must continue to require the durable PostgreSQL store.

func NewMemoryStore added in v1.0.3

func NewMemoryStore() *MemoryStore

NewMemoryStore returns an empty, concurrency-safe store. It deliberately has no configuration hook so it cannot silently replace durable production state.

func (*MemoryStore) ApplyChannelPostSettings added in v1.1.6

func (s *MemoryStore) ApplyChannelPostSettings(_ context.Context, settings channelPostSettingsRecord) error

func (*MemoryStore) ClaimOperation added in v1.0.3

func (s *MemoryStore) ClaimOperation(
	_ context.Context,
	record operations.Record,
	owner string,
	leaseDurationMillis int64,
) (operations.Record, bool, error)

func (*MemoryStore) CompareAndSwapContact added in v1.0.3

func (s *MemoryStore) CompareAndSwapContact(_ context.Context, contact, expected contactRecord) (bool, error)

func (*MemoryStore) CompareAndSwapContactProjection added in v1.0.3

func (s *MemoryStore) CompareAndSwapContactProjection(
	_ context.Context,
	contact,
	expected contactRecord,
) (bool, error)

func (*MemoryStore) CompareAndSwapMemberGeneration added in v1.0.3

func (s *MemoryStore) CompareAndSwapMemberGeneration(
	_ context.Context,
	member memberRecord,
	expectedRequestID,
	expectedMembership string,
) (bool, error)

func (*MemoryStore) CompareAndSwapOperation added in v1.0.3

func (s *MemoryStore) CompareAndSwapOperation(
	_ context.Context,
	record operations.Record,
	expectedRevision int64,
	owner string,
	leaseDurationMillis int64,
) (operations.Record, bool, error)

func (*MemoryStore) CountActiveReactions added in v1.0.3

func (s *MemoryStore) CountActiveReactions(ctx context.Context, targetType, targetID, reaction string) (int64, error)

func (*MemoryStore) CountJoinedMembers added in v1.0.3

func (s *MemoryStore) CountJoinedMembers(ctx context.Context, roomID, channelID string) (int64, error)

func (*MemoryStore) CountProductMembers added in v1.0.3

func (s *MemoryStore) CountProductMembers(ctx context.Context, roomID, channelID string) (int64, int64, error)

func (*MemoryStore) DeactivateReactionByEventID added in v1.0.6

func (s *MemoryStore) DeactivateReactionByEventID(ctx context.Context, eventID string) (bool, error)

func (*MemoryStore) DeleteBlock added in v1.0.3

func (s *MemoryStore) DeleteBlock(ctx context.Context, targetType, targetID string) (bool, error)

func (*MemoryStore) DeleteChannel added in v1.0.3

func (s *MemoryStore) DeleteChannel(ctx context.Context, channelID string) error

func (*MemoryStore) DeleteChannelComment added in v1.0.3

func (s *MemoryStore) DeleteChannelComment(ctx context.Context, commentID string) (bool, error)

func (*MemoryStore) DeleteChannelPost added in v1.0.3

func (s *MemoryStore) DeleteChannelPost(ctx context.Context, postID string) (bool, error)

func (*MemoryStore) DeleteConversationByRoomID added in v1.0.3

func (s *MemoryStore) DeleteConversationByRoomID(ctx context.Context, matrixRoomID string) error

func (*MemoryStore) DeleteFavorite added in v1.0.3

func (s *MemoryStore) DeleteFavorite(ctx context.Context, id int64) error

func (*MemoryStore) DeleteFollow added in v1.0.3

func (s *MemoryStore) DeleteFollow(ctx context.Context, domain string) error

func (*MemoryStore) DeleteGroup added in v1.0.3

func (s *MemoryStore) DeleteGroup(ctx context.Context, roomID string) error

func (*MemoryStore) EventBounds added in v1.0.3

func (s *MemoryStore) EventBounds(ctx context.Context) (eventBounds, error)

func (*MemoryStore) FindFavoriteByEvent added in v1.0.3

func (s *MemoryStore) FindFavoriteByEvent(ctx context.Context, eventID, roomID string) (favoriteRecord, bool, error)

func (*MemoryStore) GetChannelByIDOrRoom added in v1.0.3

func (s *MemoryStore) GetChannelByIDOrRoom(ctx context.Context, channelID, roomID string) (channel, bool, error)

func (*MemoryStore) GetChannelCommentByEventID added in v1.0.3

func (s *MemoryStore) GetChannelCommentByEventID(ctx context.Context, eventID, channelID string) (channelCommentRecord, bool, error)

func (*MemoryStore) GetChannelCommentByID added in v1.0.3

func (s *MemoryStore) GetChannelCommentByID(ctx context.Context, commentID, postID string) (channelCommentRecord, bool, error)

func (*MemoryStore) GetChannelPostByEventID added in v1.0.3

func (s *MemoryStore) GetChannelPostByEventID(ctx context.Context, eventID, channelID string) (channelPostRecord, bool, error)

func (*MemoryStore) GetChannelPostByID added in v1.0.3

func (s *MemoryStore) GetChannelPostByID(ctx context.Context, postID, channelID string) (channelPostRecord, bool, error)

func (*MemoryStore) GetConversationByID added in v1.0.3

func (s *MemoryStore) GetConversationByID(ctx context.Context, conversationID string) (conversationRecord, bool, error)

func (*MemoryStore) GetConversationByRoomID added in v1.0.3

func (s *MemoryStore) GetConversationByRoomID(ctx context.Context, matrixRoomID string) (conversationRecord, bool, error)

func (*MemoryStore) GetGroupByRoom added in v1.0.3

func (s *MemoryStore) GetGroupByRoom(ctx context.Context, roomID string) (groupRecord, bool, error)

func (*MemoryStore) GetPlugin added in v1.0.3

func (s *MemoryStore) GetPlugin(ctx context.Context, id string) (pluginInstance, bool, error)

func (*MemoryStore) GetPluginJob added in v1.0.3

func (s *MemoryStore) GetPluginJob(ctx context.Context, jobID string) (pluginJob, bool, error)

func (*MemoryStore) GetPluginSecret added in v1.0.3

func (s *MemoryStore) GetPluginSecret(ctx context.Context, pluginID, name string) (pluginSecret, bool, error)

func (*MemoryStore) GetReaction added in v1.0.3

func (s *MemoryStore) GetReaction(ctx context.Context, targetType, targetID, reaction, userID string) (reactionRecord, bool, error)

func (*MemoryStore) GetReadMarker added in v1.0.4

func (s *MemoryStore) GetReadMarker(ctx context.Context, roomID string) (readMarker, bool, error)

func (*MemoryStore) InsertChannelComment added in v1.0.3

func (s *MemoryStore) InsertChannelComment(ctx context.Context, comment channelCommentRecord) error

func (*MemoryStore) InsertChannelPost added in v1.0.3

func (s *MemoryStore) InsertChannelPost(ctx context.Context, post channelPostRecord) error

func (*MemoryStore) InsertEvent added in v1.0.3

func (s *MemoryStore) InsertEvent(ctx context.Context, event p2pEvent) (bool, error)

func (*MemoryStore) InsertMemberIfAbsent added in v1.0.3

func (s *MemoryStore) InsertMemberIfAbsent(_ context.Context, member memberRecord) (bool, error)

func (*MemoryStore) InsertReport added in v1.0.3

func (s *MemoryStore) InsertReport(ctx context.Context, report reportRecord) error

func (*MemoryStore) ListBlocks added in v1.0.3

func (s *MemoryStore) ListBlocks(ctx context.Context) ([]blockRecord, error)

func (*MemoryStore) ListCalls added in v1.0.3

func (s *MemoryStore) ListCalls(ctx context.Context, roomID string, activeOnly bool) ([]callRecord, error)

func (*MemoryStore) ListChannelComments added in v1.0.3

func (s *MemoryStore) ListChannelComments(ctx context.Context, postID string) ([]channelCommentRecord, error)

func (*MemoryStore) ListChannelCommentsPage added in v1.0.3

func (s *MemoryStore) ListChannelCommentsPage(ctx context.Context, postID string, fromTS, snapshotTS, cursorTS int64, cursorID string, limit int) ([]channelCommentRecord, bool, error)

func (*MemoryStore) ListChannelInviteGrants added in v1.0.3

func (s *MemoryStore) ListChannelInviteGrants(ctx context.Context) ([]channelInviteGrant, error)

func (*MemoryStore) ListChannelPosts added in v1.0.3

func (s *MemoryStore) ListChannelPosts(ctx context.Context, channelID string) ([]channelPostRecord, error)

func (*MemoryStore) ListChannelPostsByVisibilityPage added in v1.1.3

func (s *MemoryStore) ListChannelPostsByVisibilityPage(ctx context.Context, channelID, visibility string, offset int64, limit int) ([]channelPostRecord, bool, error)

func (*MemoryStore) ListChannelPostsOffsetPage added in v1.1.3

func (s *MemoryStore) ListChannelPostsOffsetPage(ctx context.Context, channelID string, offset int64, limit int) ([]channelPostRecord, bool, error)

func (*MemoryStore) ListChannelPostsPage added in v1.0.3

func (s *MemoryStore) ListChannelPostsPage(ctx context.Context, channelID string, fromTS, snapshotTS, cursorTS int64, cursorID string, limit int) ([]channelPostRecord, bool, error)

func (*MemoryStore) ListChannels added in v1.0.3

func (s *MemoryStore) ListChannels(ctx context.Context) ([]channel, error)

func (*MemoryStore) ListContacts added in v1.0.3

func (s *MemoryStore) ListContacts(ctx context.Context) ([]contactRecord, error)

func (*MemoryStore) ListConversations added in v1.0.3

func (s *MemoryStore) ListConversations(ctx context.Context) ([]conversationRecord, error)

func (*MemoryStore) ListEvents added in v1.0.3

func (s *MemoryStore) ListEvents(ctx context.Context, since int64, limit int) ([]p2pEvent, error)

func (*MemoryStore) ListFavorites added in v1.0.3

func (s *MemoryStore) ListFavorites(ctx context.Context, messageType string) ([]favoriteRecord, error)

func (*MemoryStore) ListFollows added in v1.0.3

func (s *MemoryStore) ListFollows(ctx context.Context) ([]followRecord, error)

func (*MemoryStore) ListGroups added in v1.0.3

func (s *MemoryStore) ListGroups(ctx context.Context) ([]groupRecord, error)

func (*MemoryStore) ListJoinedChannelsForUser added in v1.0.3

func (s *MemoryStore) ListJoinedChannelsForUser(ctx context.Context, userID string) ([]channel, error)

func (*MemoryStore) ListJoinedGroupsForUser added in v1.0.3

func (s *MemoryStore) ListJoinedGroupsForUser(ctx context.Context, userID string) ([]groupRecord, error)

func (*MemoryStore) ListMembers added in v1.0.3

func (s *MemoryStore) ListMembers(ctx context.Context, roomID, channelID string) ([]memberRecord, error)

func (*MemoryStore) ListMembersForUser added in v1.0.3

func (s *MemoryStore) ListMembersForUser(ctx context.Context, userID string) ([]memberRecord, error)

func (*MemoryStore) ListPlugins added in v1.0.3

func (s *MemoryStore) ListPlugins(ctx context.Context) ([]pluginInstance, error)

func (*MemoryStore) ListPublicChannelsForOwner added in v1.0.3

func (s *MemoryStore) ListPublicChannelsForOwner(ctx context.Context, userID string) ([]channel, error)

func (*MemoryStore) ListReactions added in v1.0.3

func (s *MemoryStore) ListReactions(ctx context.Context, userID string) ([]reactionRecord, error)

func (*MemoryStore) ListReadMarkers added in v1.0.4

func (s *MemoryStore) ListReadMarkers(ctx context.Context) ([]readMarker, error)

func (*MemoryStore) LoadPortal added in v1.0.3

func (s *MemoryStore) LoadPortal(ctx context.Context) (portalState, bool, error)

func (*MemoryStore) LookupMember added in v1.0.3

func (s *MemoryStore) LookupMember(ctx context.Context, roomID, userID string) (memberRecord, bool, error)

func (*MemoryStore) LookupOperation added in v1.0.3

func (s *MemoryStore) LookupOperation(_ context.Context, operationID string) (operations.Record, bool, error)

func (*MemoryStore) PruneEventsBefore added in v1.0.3

func (s *MemoryStore) PruneEventsBefore(ctx context.Context, beforeSeq int64) (int64, error)

func (*MemoryStore) PruneEventsToMaxRows added in v1.0.3

func (s *MemoryStore) PruneEventsToMaxRows(ctx context.Context, maxRows int64) (int64, error)

func (*MemoryStore) RecordAgentExecutionCompletion added in v1.1.29

func (s *MemoryStore) RecordAgentExecutionCompletion(
	_ context.Context,
	receipt agentExecutionCompletionReceipt,
	event p2pEvent,
) (bool, int64, error)

RecordAgentExecutionCompletion stores the minimal receipt and its realtime invalidation as one atomic unit. The returned boolean is true only for the first exact receipt; exact retries return the original event sequence.

func (*MemoryStore) ResetAccountState added in v1.0.3

func (s *MemoryStore) ResetAccountState()

ResetAccountState atomically clears the volatile product and portal state removed by the legacy no-database account-deletion path. Installed plugin state is intentionally retained to preserve that path's existing behavior. This optional capability is not part of the durable Store contract.

func (*MemoryStore) SaveClientBuild added in v1.0.3

func (s *MemoryStore) SaveClientBuild(ctx context.Context, expectedDeviceID string, build clientBuild) (bool, error)

func (*MemoryStore) SavePortal added in v1.0.3

func (s *MemoryStore) SavePortal(ctx context.Context, state portalState) error

func (*MemoryStore) SaveReadMarker added in v1.0.3

func (s *MemoryStore) SaveReadMarker(ctx context.Context, marker readMarker) error

func (*MemoryStore) SearchPublicChannels added in v1.0.3

func (s *MemoryStore) SearchPublicChannels(ctx context.Context, query string, limit int) ([]channel, error)

func (*MemoryStore) SetConversationCreator added in v1.0.6

func (s *MemoryStore) SetConversationCreator(_ context.Context, matrixRoomID, creatorMXID string) error

func (*MemoryStore) UpsertBlock added in v1.0.3

func (s *MemoryStore) UpsertBlock(ctx context.Context, block blockRecord) error

func (*MemoryStore) UpsertCall added in v1.0.3

func (s *MemoryStore) UpsertCall(ctx context.Context, call callRecord) error

func (*MemoryStore) UpsertChannel added in v1.0.3

func (s *MemoryStore) UpsertChannel(ctx context.Context, ch channel) error

func (*MemoryStore) UpsertChannelInviteGrant added in v1.0.3

func (s *MemoryStore) UpsertChannelInviteGrant(ctx context.Context, grant channelInviteGrant) error

func (*MemoryStore) UpsertContact added in v1.0.3

func (s *MemoryStore) UpsertContact(ctx context.Context, contact contactRecord) error

func (*MemoryStore) UpsertConversation added in v1.0.3

func (s *MemoryStore) UpsertConversation(ctx context.Context, record conversationRecord) error

func (*MemoryStore) UpsertFavorite added in v1.0.3

func (s *MemoryStore) UpsertFavorite(ctx context.Context, favorite favoriteRecord) error

func (*MemoryStore) UpsertFollow added in v1.0.3

func (s *MemoryStore) UpsertFollow(ctx context.Context, follow followRecord) error

func (*MemoryStore) UpsertGroup added in v1.0.3

func (s *MemoryStore) UpsertGroup(ctx context.Context, group groupRecord) error

func (*MemoryStore) UpsertMember added in v1.0.3

func (s *MemoryStore) UpsertMember(ctx context.Context, member memberRecord) error

func (*MemoryStore) UpsertOperation added in v1.0.3

func (s *MemoryStore) UpsertOperation(_ context.Context, record operations.Record) error

func (*MemoryStore) UpsertPlugin added in v1.0.3

func (s *MemoryStore) UpsertPlugin(ctx context.Context, plugin pluginInstance) error

func (*MemoryStore) UpsertPluginJob added in v1.0.3

func (s *MemoryStore) UpsertPluginJob(ctx context.Context, job pluginJob) error

func (*MemoryStore) UpsertPluginSecret added in v1.0.3

func (s *MemoryStore) UpsertPluginSecret(ctx context.Context, secret pluginSecret) error

func (*MemoryStore) UpsertReaction added in v1.0.3

func (s *MemoryStore) UpsertReaction(ctx context.Context, reaction reactionRecord) error

Jump to

Keyboard shortcuts

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