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

Method GetLastChatMessageByRole

coderd/database/querier.go:513–513  ·  view source on GitHub ↗
(ctx context.Context, arg GetLastChatMessageByRoleParams)

Source from the content-addressed store, hash-verified

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)
516 GetLatestWorkspaceAppStatusByAppID(ctx context.Context, appID uuid.UUID) (WorkspaceAppStatus, error)

Callers 8

markChatAsReadMethod · 0.65
TestGetChatsFilterFunction · 0.65
TestChatHasUnreadFunction · 0.65
TestChatsMethod · 0.65
SubmitToolResultsMethod · 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 3

TestGetChatsFilterFunction · 0.52
TestChatHasUnreadFunction · 0.52
TestChatsMethod · 0.52