MCPcopy Index your code
hub / github.com/coder/coder / GetInboxNotificationsByUserID

Method GetInboxNotificationsByUserID

coderd/database/querier.go:512–512  ·  view source on GitHub ↗

Fetches inbox notifications for a user filtered by templates and targets param user_id: The user ID param read_status: The read status to filter by - can be any of 'ALL', 'UNREAD', 'READ' param created_at_opt: The created_at timestamp to filter by. This parameter is usd for pagination - it fetches n

(ctx context.Context, arg GetInboxNotificationsByUserIDParams)

Source from the content-addressed store, hash-verified

510 // param created_at_opt: The created_at timestamp to filter by. This parameter is usd for pagination - it fetches notifications created before the specified timestamp if it is not the zero value
511 // param limit_opt: The limit of notifications to fetch. If the limit is not specified, it defaults to 25
512 GetInboxNotificationsByUserID(ctx context.Context, arg GetInboxNotificationsByUserIDParams) ([]InboxNotification, error)
513 GetLastChatMessageByRole(ctx context.Context, arg GetLastChatMessageByRoleParams) (ChatMessage, error)
514 GetLastUpdateCheck(ctx context.Context) (string, error)
515 GetLatestCryptoKeyByFeature(ctx context.Context, feature CryptoKeyFeature) (CryptoKey, error)

Callers 3

TestInboxFunction · 0.65
TestNotificationsMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 2

TestInboxFunction · 0.52
TestNotificationsMethod · 0.52