Documentation
¶
Index ¶
- type Store
- func (s *Store) AddReaction(ctx context.Context, input store.CreateReactionInput) (store.Event, error)
- func (s *Store) AddWorkspaceMember(ctx context.Context, workspaceID, userID, role string) error
- func (s *Store) AddWorkspaceMemberByActor(ctx context.Context, input store.AddWorkspaceMemberInput) (store.AddWorkspaceMemberResult, error)
- func (s *Store) AttachUpload(ctx context.Context, input store.AttachUploadInput) (store.Event, error)
- func (s *Store) Backup(ctx context.Context, outPath string) error
- func (s *Store) CanPublishEphemeral(ctx context.Context, ...) error
- func (s *Store) ChangeUserPassword(ctx context.Context, input store.ChangeUserPasswordInput) (int64, error)
- func (s *Store) ClaimBotSetupCode(ctx context.Context, code string) (store.BotSetupCodeClaim, error)
- func (s *Store) ClearUserPassword(ctx context.Context, userID string) error
- func (s *Store) Close() error
- func (s *Store) CompleteSlashCommandInvocation(ctx context.Context, invocationID string, status int, ...) (store.SlashCommandInvocation, error)
- func (s *Store) ConsumeDesktopOAuthGrant(ctx context.Context, grantHash, desktopChallenge string, current time.Time) (store.Session, error)
- func (s *Store) ConsumeMagicLink(ctx context.Context, token string) (store.User, store.Session, error)
- func (s *Store) ConsumeOAuthTransaction(ctx context.Context, stateHash, browserBindingHash string, current time.Time) (store.OAuthTransaction, error)
- func (s *Store) CreateAppInstallation(ctx context.Context, input store.CreateAppInstallationInput) (store.AppInstallation, error)
- func (s *Store) CreateAuditLogEntry(ctx context.Context, input store.CreateAuditLogEntryInput) (store.AuditLogEntry, error)
- func (s *Store) CreateBot(ctx context.Context, input store.CreateBotInput) (store.User, store.BotToken, error)
- func (s *Store) CreateBotSetupCode(ctx context.Context, input store.CreateBotSetupCodeInput) (store.BotSetupCode, error)
- func (s *Store) CreateBotToken(ctx context.Context, input store.CreateBotTokenInput) (store.BotToken, error)
- func (s *Store) CreateChannel(ctx context.Context, input store.CreateChannelInput) (store.Channel, store.Event, error)
- func (s *Store) CreateConnectedAccount(ctx context.Context, input store.CreateConnectedAccountInput) (store.ConnectedAccount, error)
- func (s *Store) CreateDesktopOAuthGrant(ctx context.Context, grant store.DesktopOAuthGrant) error
- func (s *Store) CreateDirectConversation(ctx context.Context, input store.CreateDirectConversationInput) (store.DirectConversation, error)
- func (s *Store) CreateDirectMessage(ctx context.Context, input store.CreateDirectMessageInput) (store.Message, store.Event, error)
- func (s *Store) CreateEventDeliveryAttempt(ctx context.Context, input store.CreateEventDeliveryAttemptInput) (store.EventDeliveryAttempt, error)
- func (s *Store) CreateEventSubscription(ctx context.Context, input store.CreateEventSubscriptionInput) (store.EventSubscription, error)
- func (s *Store) CreateInvite(ctx context.Context, workspaceID, createdBy string) (store.Invite, error)
- func (s *Store) CreateMagicLink(ctx context.Context, email, displayName string) (store.MagicLink, error)
- func (s *Store) CreateMessage(ctx context.Context, input store.CreateMessageInput) (store.Message, store.Event, error)
- func (s *Store) CreateOAuthTransaction(ctx context.Context, transaction store.OAuthTransaction) error
- func (s *Store) CreateReservedUpload(ctx context.Context, reservationID string, input store.CreateUploadInput) (store.Upload, error)
- func (s *Store) CreateSession(ctx context.Context, userID string) (store.Session, error)
- func (s *Store) CreateSessionForVerifiedPassword(ctx context.Context, userID, verifiedHash string) (store.Session, error)
- func (s *Store) CreateSlashCommand(ctx context.Context, input store.CreateSlashCommandInput) (store.SlashCommand, error)
- func (s *Store) CreateSlashCommandInvocation(ctx context.Context, input store.CreateSlashCommandInvocationInput) (store.SlashCommandInvocation, error)
- func (s *Store) CreateThreadReply(ctx context.Context, input store.CreateThreadReplyInput) (store.Message, store.ThreadState, []store.Event, error)
- func (s *Store) CreateTopic(ctx context.Context, input store.CreateTopicInput) (store.Topic, error)
- func (s *Store) CreateUser(ctx context.Context, input store.CreateUserInput) (store.User, error)
- func (s *Store) CreateWorkspace(ctx context.Context, input store.CreateWorkspaceInput, ownerID string) (store.Workspace, error)
- func (s *Store) DeleteBot(ctx context.Context, botUserID, requesterID string) (store.DeletedBot, error)
- func (s *Store) DeleteMessage(ctx context.Context, input store.DeleteMessageInput) (store.Message, []store.Event, error)
- func (s *Store) DeletePendingUploadCleanup(ctx context.Context, cleanupID string) error
- func (s *Store) DeleteWorkspace(ctx context.Context, workspaceID, actorUserID string) ([]store.PendingUploadCleanup, error)
- func (s *Store) EnsureBootstrap(ctx context.Context, name, email string) (store.User, error)
- func (s *Store) EnsureDefaultGuestWorkspaceMember(ctx context.Context, userID, role string) (store.Workspace, error)
- func (s *Store) EnsureDefaultWorkspaceMember(ctx context.Context, userID string) (store.Workspace, error)
- func (s *Store) EnsureMessageRouteID(ctx context.Context, userID, rootMessageID string) (store.Message, error)
- func (s *Store) EnsureThreadRouteID(ctx context.Context, userID, rootMessageID string) (store.Message, error)
- func (s *Store) EventCursorExists(ctx context.Context, workspaceID, userID, cursor string) (bool, error)
- func (s *Store) ExportJSON(ctx context.Context, writer io.Writer) error
- func (s *Store) FirstUser(ctx context.Context) (store.User, error)
- func (s *Store) GetAppearancePreferences(ctx context.Context, userID string) (*store.AppearancePreferences, error)
- func (s *Store) GetBotTokenAuth(ctx context.Context, token string) (store.BotTokenAuth, error)
- func (s *Store) GetChannel(ctx context.Context, channelID, userID string) (store.Channel, error)
- func (s *Store) GetChannelNotificationPreference(ctx context.Context, channelID, userID string) (string, error)
- func (s *Store) GetDirectConversation(ctx context.Context, conversationID, userID string) (store.DirectConversation, error)
- func (s *Store) GetMessage(ctx context.Context, messageID, userID string) (store.Message, error)
- func (s *Store) GetMessageByNonce(ctx context.Context, authorID, nonce string) (store.Message, error)
- func (s *Store) GetOrCreateUserByEmail(ctx context.Context, provider, email, displayName string) (store.User, error)
- func (s *Store) GetPasswordLogin(ctx context.Context, identifier string) (store.PasswordLogin, error)
- func (s *Store) GetSessionUser(ctx context.Context, token string) (store.User, error)
- func (s *Store) GetSlashCommandForChannel(ctx context.Context, channelID, command, requesterID string) (store.SlashCommand, error)
- func (s *Store) GetThreadPage(ctx context.Context, rootMessageID, userID string, req store.ThreadPageRequest) (store.ThreadPage, error)
- func (s *Store) GetUpload(ctx context.Context, uploadID, userID string) (store.Upload, error)
- func (s *Store) GetUploadByNonce(ctx context.Context, ownerID, nonce string) (store.Upload, error)
- func (s *Store) GetUser(ctx context.Context, id string) (store.User, error)
- func (s *Store) GetUserByEmail(ctx context.Context, email string) (store.User, error)
- func (s *Store) GetUserPasswordHash(ctx context.Context, userID string) (string, error)
- func (s *Store) GetWorkspace(ctx context.Context, workspaceID, userID string) (store.Workspace, error)
- func (s *Store) HideDirectConversation(ctx context.Context, conversationID, userID string) error
- func (s *Store) LatestEventCursor(ctx context.Context, workspaceID, userID string) (string, error)
- func (s *Store) ListAppInstallations(ctx context.Context, workspaceID, requesterID string) ([]store.AppInstallation, error)
- func (s *Store) ListAuditLogEntries(ctx context.Context, workspaceID, requesterID string, limit int) ([]store.AuditLogEntry, error)
- func (s *Store) ListBotCommands(ctx context.Context, workspaceID, requesterID string) ([]store.WorkspaceBotCommand, error)
- func (s *Store) ListBotTokens(ctx context.Context, botUserID, requesterID string) ([]store.BotToken, error)
- func (s *Store) ListBotTokensForWorkspace(ctx context.Context, workspaceID, botUserID, requesterID string) ([]store.BotToken, error)
- func (s *Store) ListBots(ctx context.Context, workspaceID, requesterID string) ([]store.BotWithTokens, error)
- func (s *Store) ListBotsOwnedBy(ctx context.Context, ownerUserID string) ([]store.OwnedBotEntry, error)
- func (s *Store) ListChannels(ctx context.Context, workspaceID, userID string) ([]store.Channel, error)
- func (s *Store) ListConnectedAccounts(ctx context.Context, workspaceID, requesterID string) ([]store.ConnectedAccount, error)
- func (s *Store) ListDirectConversations(ctx context.Context, workspaceID, userID string) ([]store.DirectConversation, error)
- func (s *Store) ListDirectMessages(ctx context.Context, conversationID, userID string, ...) (store.MessagePage, error)
- func (s *Store) ListEventDeliveryAttempts(ctx context.Context, subscriptionID, requesterID string, limit int, ...) ([]store.EventDeliveryAttempt, error)
- func (s *Store) ListEventSubscriptions(ctx context.Context, workspaceID, requesterID string) ([]store.EventSubscription, error)
- func (s *Store) ListEventSubscriptionsForEvent(ctx context.Context, event store.Event) ([]store.EventSubscription, error)
- func (s *Store) ListEventsAfter(ctx context.Context, workspaceID, userID, cursor string, limit int) ([]store.Event, error)
- func (s *Store) ListMessages(ctx context.Context, channelID, userID string, page store.MessagePageRequest) (store.MessagePage, error)
- func (s *Store) ListPendingUploadCleanups(ctx context.Context, limit int) ([]store.PendingUploadCleanup, error)
- func (s *Store) ListPinnedMessages(ctx context.Context, channelID, userID string, limit int) ([]store.Message, error)
- func (s *Store) ListPushNotificationRecipients(ctx context.Context, messageID string, mentionedUserIDs []string) ([]store.PushNotificationRecipient, error)
- func (s *Store) ListSlashCommands(ctx context.Context, workspaceID, requesterID string) ([]store.SlashCommand, error)
- func (s *Store) ListTopics(ctx context.Context, workspaceID, requesterID string) ([]store.Topic, error)
- func (s *Store) ListWorkspaceMemberPage(ctx context.Context, workspaceID, actorUserID string, ...) (store.WorkspaceMemberPage, error)
- func (s *Store) ListWorkspaceMembers(ctx context.Context, workspaceID, actorUserID string) ([]store.MemberModeration, error)
- func (s *Store) ListWorkspaces(ctx context.Context, userID string) ([]store.Workspace, error)
- func (s *Store) MarkChannelRead(ctx context.Context, channelID, userID string, seq int64) (store.ReadReceipt, store.Event, error)
- func (s *Store) MarkDirectRead(ctx context.Context, conversationID, userID string, seq int64) (store.ReadReceipt, store.Event, error)
- func (s *Store) Migrate(ctx context.Context) error
- func (s *Store) PinMessage(ctx context.Context, channelID, messageID, userID string) (store.PinnedMessage, store.Event, error)
- func (s *Store) Ping(ctx context.Context) error
- func (s *Store) PruneEvents(ctx context.Context, workspaceID string, keepLatest int, before string) (int64, error)
- func (s *Store) RecordBotTokenUse(ctx context.Context, tokenID string) error
- func (s *Store) RecordPendingUploadCleanupFailure(ctx context.Context, cleanupID, message string) error
- func (s *Store) ReleaseUploadQuotaReservation(ctx context.Context, reservationID, userID string) error
- func (s *Store) RemoveBotFromWorkspace(ctx context.Context, workspaceID, botUserID, requesterID string) error
- func (s *Store) RemoveReaction(ctx context.Context, input store.CreateReactionInput) (store.Event, error)
- func (s *Store) ReopenDirectConversation(ctx context.Context, conversationID, userID string) (store.DirectConversation, error)
- func (s *Store) ReserveUploadQuota(ctx context.Context, workspaceID, userID, nonce string, byteSize int64) (store.UploadQuotaReservation, error)
- func (s *Store) ResolveLegacyRouteTarget(ctx context.Context, userID, workspaceID, targetID string) (store.RouteTarget, error)
- func (s *Store) ResolveRouteTarget(ctx context.Context, userID, workspaceRouteID, targetRouteID string) (store.RouteTarget, error)
- func (s *Store) RevokeAppInstallation(ctx context.Context, installationID, requesterID string, ...) (store.RevokeAppInstallationResult, error)
- func (s *Store) RevokeBotToken(ctx context.Context, tokenID, requesterID string) (store.BotToken, error)
- func (s *Store) RevokeConnectedAccount(ctx context.Context, accountID, requesterID string) (store.ConnectedAccount, error)
- func (s *Store) RevokeEventSubscription(ctx context.Context, subscriptionID, requesterID string) (store.EventSubscription, error)
- func (s *Store) RevokeSession(ctx context.Context, token string) error
- func (s *Store) RevokeSlashCommand(ctx context.Context, commandID, requesterID string) (store.SlashCommand, error)
- func (s *Store) RotateEventSubscriptionSecret(ctx context.Context, subscriptionID, requesterID string) (store.EventSubscription, error)
- func (s *Store) RotateSlashCommandSecret(ctx context.Context, commandID, requesterID string) (store.SlashCommand, error)
- func (s *Store) SearchMessagePage(ctx context.Context, page store.SearchPageRequest) (store.SearchPage, error)
- func (s *Store) SetBotCommands(ctx context.Context, workspaceID, botUserID string, ...) ([]store.BotCommand, error)
- func (s *Store) SetUserPassword(ctx context.Context, userID, passwordHash string) error
- func (s *Store) SyncIdentities(ctx context.Context, input store.IdentitySyncInput) (store.IdentitySyncReport, error)
- func (s *Store) TransferWorkspaceOwnership(ctx context.Context, input store.TransferWorkspaceOwnershipInput) (store.Workspace, store.Event, error)
- func (s *Store) UnpinMessage(ctx context.Context, channelID, messageID, userID string) (store.Event, error)
- func (s *Store) UpdateChannel(ctx context.Context, input store.UpdateChannelInput) (store.Channel, store.Event, error)
- func (s *Store) UpdateCurrentUser(ctx context.Context, input store.UpdateCurrentUserInput) (store.CurrentUserState, error)
- func (s *Store) UpdateMemberModeration(ctx context.Context, input store.UpdateMemberModerationInput) (store.MemberModeration, store.Event, error)
- func (s *Store) UpdateMessage(ctx context.Context, input store.UpdateMessageInput) (store.Message, store.Event, error)
- func (s *Store) UpdateUserProfile(ctx context.Context, input store.UpdateUserProfileInput) (store.User, error)
- func (s *Store) UpdateWorkspace(ctx context.Context, input store.UpdateWorkspaceInput) (store.Workspace, store.Event, error)
- func (s *Store) UploadHasDirectMessageAttachment(ctx context.Context, uploadID string) (bool, error)
- func (s *Store) UploadHasOtherDirectMessageAttachment(ctx context.Context, uploadID, messageID string) (bool, error)
- func (s *Store) UploadQuota(ctx context.Context, workspaceID, userID string) (store.UploadQuota, error)
- func (s *Store) UpsertChannelNotificationSettings(ctx context.Context, input store.ChannelNotificationInput) error
- func (s *Store) UpsertIdentityUser(ctx context.Context, input store.UpsertIdentityUserInput) (store.User, error)
- func (s *Store) UserHasNonGuestMembership(ctx context.Context, userID string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AddReaction ¶
func (*Store) AddWorkspaceMember ¶
func (*Store) AddWorkspaceMemberByActor ¶ added in v0.3.0
func (s *Store) AddWorkspaceMemberByActor(ctx context.Context, input store.AddWorkspaceMemberInput) (store.AddWorkspaceMemberResult, error)
func (*Store) AttachUpload ¶
func (*Store) CanPublishEphemeral ¶
func (*Store) ChangeUserPassword ¶ added in v0.4.0
func (s *Store) ChangeUserPassword(ctx context.Context, input store.ChangeUserPasswordInput) (int64, error)
ChangeUserPassword atomically replaces the verified password and revokes other sessions. A stale credential or invalid caller session rolls back the entire change.
func (*Store) ClaimBotSetupCode ¶ added in v0.2.0
func (*Store) ClearUserPassword ¶ added in v0.4.0
ClearUserPassword disables password login for an account.
func (*Store) CompleteSlashCommandInvocation ¶
func (*Store) ConsumeDesktopOAuthGrant ¶ added in v0.2.0
func (*Store) ConsumeMagicLink ¶
func (*Store) ConsumeOAuthTransaction ¶ added in v0.2.0
func (*Store) CreateAppInstallation ¶
func (s *Store) CreateAppInstallation(ctx context.Context, input store.CreateAppInstallationInput) (store.AppInstallation, error)
func (*Store) CreateAuditLogEntry ¶
func (s *Store) CreateAuditLogEntry(ctx context.Context, input store.CreateAuditLogEntryInput) (store.AuditLogEntry, error)
func (*Store) CreateBotSetupCode ¶ added in v0.2.0
func (s *Store) CreateBotSetupCode(ctx context.Context, input store.CreateBotSetupCodeInput) (store.BotSetupCode, error)
func (*Store) CreateBotToken ¶
func (*Store) CreateChannel ¶
func (*Store) CreateConnectedAccount ¶
func (s *Store) CreateConnectedAccount(ctx context.Context, input store.CreateConnectedAccountInput) (store.ConnectedAccount, error)
func (*Store) CreateDesktopOAuthGrant ¶ added in v0.2.0
func (*Store) CreateDirectConversation ¶
func (s *Store) CreateDirectConversation(ctx context.Context, input store.CreateDirectConversationInput) (store.DirectConversation, error)
func (*Store) CreateDirectMessage ¶
func (*Store) CreateEventDeliveryAttempt ¶
func (s *Store) CreateEventDeliveryAttempt(ctx context.Context, input store.CreateEventDeliveryAttemptInput) (store.EventDeliveryAttempt, error)
func (*Store) CreateEventSubscription ¶
func (s *Store) CreateEventSubscription(ctx context.Context, input store.CreateEventSubscriptionInput) (store.EventSubscription, error)
func (*Store) CreateInvite ¶
func (*Store) CreateMagicLink ¶
func (*Store) CreateMessage ¶
func (*Store) CreateOAuthTransaction ¶ added in v0.2.0
func (*Store) CreateReservedUpload ¶
func (*Store) CreateSession ¶
func (*Store) CreateSessionForVerifiedPassword ¶ added in v0.4.0
func (s *Store) CreateSessionForVerifiedPassword(ctx context.Context, userID, verifiedHash string) (store.Session, error)
CreateSessionForVerifiedPassword commits a login only while its verified hash is current.
func (*Store) CreateSlashCommand ¶
func (s *Store) CreateSlashCommand(ctx context.Context, input store.CreateSlashCommandInput) (store.SlashCommand, error)
func (*Store) CreateSlashCommandInvocation ¶
func (s *Store) CreateSlashCommandInvocation(ctx context.Context, input store.CreateSlashCommandInvocationInput) (store.SlashCommandInvocation, error)
func (*Store) CreateThreadReply ¶
func (*Store) CreateTopic ¶
func (*Store) CreateUser ¶
func (*Store) CreateWorkspace ¶
func (*Store) DeleteMessage ¶
func (*Store) DeletePendingUploadCleanup ¶ added in v0.2.0
func (*Store) DeleteWorkspace ¶ added in v0.2.0
func (*Store) EnsureBootstrap ¶
func (*Store) EnsureDefaultGuestWorkspaceMember ¶
func (*Store) EnsureDefaultWorkspaceMember ¶
func (*Store) EnsureMessageRouteID ¶ added in v0.3.0
func (*Store) EnsureThreadRouteID ¶
func (*Store) EventCursorExists ¶ added in v0.3.0
func (*Store) GetAppearancePreferences ¶ added in v0.3.0
func (*Store) GetBotTokenAuth ¶
func (*Store) GetChannel ¶
func (*Store) GetChannelNotificationPreference ¶ added in v0.3.0
func (*Store) GetDirectConversation ¶
func (*Store) GetMessage ¶
func (*Store) GetMessageByNonce ¶ added in v0.2.0
func (*Store) GetOrCreateUserByEmail ¶ added in v0.2.1
func (*Store) GetPasswordLogin ¶ added in v0.4.0
func (s *Store) GetPasswordLogin(ctx context.Context, identifier string) (store.PasswordLogin, error)
GetPasswordLogin resolves a password login identifier, which may be an identity email or a handle, to its account and stored hash.
func (*Store) GetSessionUser ¶
func (*Store) GetSlashCommandForChannel ¶
func (*Store) GetThreadPage ¶ added in v0.4.0
func (s *Store) GetThreadPage(ctx context.Context, rootMessageID, userID string, req store.ThreadPageRequest) (store.ThreadPage, error)
func (*Store) GetUploadByNonce ¶ added in v0.2.0
func (*Store) GetUserByEmail ¶ added in v0.3.0
Identity rows keep the casing they were created with, so this folds both sides rather than assuming stored addresses are already normalized.
func (*Store) GetUserPasswordHash ¶ added in v0.4.0
GetUserPasswordHash returns the stored hash for an account, or an empty string when the account has no password on file. Callers read the empty string as "not enrolled" rather than as a lookup failure.
func (*Store) GetWorkspace ¶
func (*Store) HideDirectConversation ¶
func (*Store) LatestEventCursor ¶ added in v0.2.0
func (*Store) ListAppInstallations ¶
func (*Store) ListAuditLogEntries ¶
func (*Store) ListBotCommands ¶ added in v0.2.0
func (*Store) ListBotTokens ¶
func (*Store) ListBotTokensForWorkspace ¶ added in v0.2.0
func (*Store) ListBotsOwnedBy ¶ added in v0.2.0
func (*Store) ListChannels ¶
func (*Store) ListConnectedAccounts ¶
func (*Store) ListDirectConversations ¶
func (*Store) ListDirectMessages ¶
func (s *Store) ListDirectMessages(ctx context.Context, conversationID, userID string, page store.MessagePageRequest) (store.MessagePage, error)
func (*Store) ListEventDeliveryAttempts ¶
func (*Store) ListEventSubscriptions ¶
func (*Store) ListEventSubscriptionsForEvent ¶
func (*Store) ListEventsAfter ¶
func (*Store) ListMessages ¶
func (s *Store) ListMessages(ctx context.Context, channelID, userID string, page store.MessagePageRequest) (store.MessagePage, error)
func (*Store) ListPendingUploadCleanups ¶ added in v0.2.0
func (*Store) ListPinnedMessages ¶ added in v0.3.0
func (*Store) ListPushNotificationRecipients ¶
func (*Store) ListSlashCommands ¶
func (*Store) ListTopics ¶
func (*Store) ListWorkspaceMemberPage ¶ added in v0.2.0
func (s *Store) ListWorkspaceMemberPage(ctx context.Context, workspaceID, actorUserID string, page store.WorkspaceMemberPageRequest) (store.WorkspaceMemberPage, error)
func (*Store) ListWorkspaceMembers ¶
func (*Store) ListWorkspaces ¶
func (*Store) MarkChannelRead ¶
func (s *Store) MarkChannelRead(ctx context.Context, channelID, userID string, seq int64) (store.ReadReceipt, store.Event, error)
MarkChannelRead upserts the user's read pointer for a channel and emits a `channel.read` event. The pointer is monotonic — calls with a smaller seq are no-ops and return the existing receipt.
func (*Store) MarkDirectRead ¶
func (s *Store) MarkDirectRead(ctx context.Context, conversationID, userID string, seq int64) (store.ReadReceipt, store.Event, error)
MarkDirectRead is the DM analogue of MarkChannelRead.
func (*Store) PinMessage ¶ added in v0.3.0
func (*Store) PruneEvents ¶
func (s *Store) PruneEvents(ctx context.Context, workspaceID string, keepLatest int, before string) (int64, error)
PruneEvents deletes old durable events for a workspace while preserving the newest keepLatest events. At least one retention bound is required so callers cannot accidentally wipe the whole event log with default zero values.
func (*Store) RecordBotTokenUse ¶ added in v0.4.0
func (*Store) RecordPendingUploadCleanupFailure ¶ added in v0.2.0
func (*Store) ReleaseUploadQuotaReservation ¶
func (*Store) RemoveBotFromWorkspace ¶ added in v0.2.0
func (*Store) RemoveReaction ¶
func (*Store) ReopenDirectConversation ¶
func (*Store) ReserveUploadQuota ¶
func (*Store) ResolveLegacyRouteTarget ¶
func (*Store) ResolveRouteTarget ¶
func (*Store) RevokeAppInstallation ¶
func (s *Store) RevokeAppInstallation(ctx context.Context, installationID, requesterID string, options store.RevokeAppInstallationOptions) (store.RevokeAppInstallationResult, error)
func (*Store) RevokeBotToken ¶
func (*Store) RevokeConnectedAccount ¶
func (*Store) RevokeEventSubscription ¶
func (*Store) RevokeSession ¶ added in v0.4.0
RevokeSession ends a session by token. Revoking an unknown or already revoked session is not an error so that sign-out stays idempotent.
func (*Store) RevokeSlashCommand ¶
func (*Store) RotateEventSubscriptionSecret ¶ added in v0.2.0
func (*Store) RotateSlashCommandSecret ¶ added in v0.2.0
func (*Store) SearchMessagePage ¶ added in v0.2.0
func (s *Store) SearchMessagePage(ctx context.Context, page store.SearchPageRequest) (store.SearchPage, error)
func (*Store) SetBotCommands ¶ added in v0.2.0
func (s *Store) SetBotCommands(ctx context.Context, workspaceID, botUserID string, commands []store.BotCommandInput) ([]store.BotCommand, error)
func (*Store) SetUserPassword ¶ added in v0.4.0
SetUserPassword enables password login for an account, or replaces the hash already on file.
func (*Store) SyncIdentities ¶ added in v0.4.0
func (s *Store) SyncIdentities(ctx context.Context, input store.IdentitySyncInput) (store.IdentitySyncReport, error)
func (*Store) TransferWorkspaceOwnership ¶ added in v0.2.0
func (*Store) UnpinMessage ¶ added in v0.3.0
func (*Store) UpdateChannel ¶
func (*Store) UpdateCurrentUser ¶ added in v0.3.0
func (s *Store) UpdateCurrentUser(ctx context.Context, input store.UpdateCurrentUserInput) (store.CurrentUserState, error)
func (*Store) UpdateMemberModeration ¶
func (s *Store) UpdateMemberModeration(ctx context.Context, input store.UpdateMemberModerationInput) (store.MemberModeration, store.Event, error)
func (*Store) UpdateMessage ¶
func (*Store) UpdateUserProfile ¶
func (*Store) UpdateWorkspace ¶ added in v0.2.0
func (*Store) UploadHasDirectMessageAttachment ¶
func (*Store) UploadHasOtherDirectMessageAttachment ¶
func (*Store) UploadQuota ¶
func (*Store) UpsertChannelNotificationSettings ¶ added in v0.3.0
func (*Store) UpsertIdentityUser ¶
Source Files
¶
- app_installations.go
- appearance.go
- audit_connected.go
- auth.go
- bot_commands.go
- bots.go
- dms.go
- event_subscriptions.go
- events.go
- export.go
- helpers.go
- identity.go
- identity_sync.go
- invites.go
- members.go
- message_pages.go
- moderation.go
- mutations.go
- notifications.go
- oauth.go
- pins.go
- quotes.go
- reads.go
- route_ids.go
- routes.go
- search_pages.go
- setup_codes.go
- slash_commands.go
- sqlc_adapters.go
- sqlite.go
- thread_pages.go
- topics.go
- unicode.go
- uploads.go