MCPcopy Create free account

hub / github.com/Trae-AI/stream-to-river / functions

Functions1,348 in github.com/Trae-AI/stream-to-river

↓ 2 callersMethodGetSupportedTags
(ctx context.Context, req *GetTagsReq)
rpcservice/kitex_gen/words/words.go:1208
↓ 2 callersMethodGetSupportedTags
(ctx context.Context, req *words.GetTagsReq, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:26
↓ 2 callersMethodGetTodayReviewProgress
(ctx context.Context, req *ReviewProgressReq)
rpcservice/kitex_gen/words/words.go:1204
↓ 2 callersMethodGetTodayReviewProgress
(ctx context.Context, req *words.ReviewProgressReq, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:24
↓ 2 callersFunctionGetTotalWordsCount
GetTotalWordsCount retrieves the total number of words for a user from the `word` table. Parameters: - userId: The unique identifier of the user. Re
rpcservice/dal/dao/word.go:98
↓ 2 callersMethodGetWordByID
(ctx context.Context, wordId int64)
rpcservice/kitex_gen/words/words.go:1196
↓ 2 callersMethodGetWordByID
(ctx context.Context, wordId int64, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:20
↓ 2 callersFunctionGetWordDetail
GetWordDetail retrieves the detailed information of a word based on its name. Currently, it does not use the database to store the detailed informatio
rpcservice/biz/words/word.go:34
↓ 2 callersMethodGetWordDetail
(ctx context.Context, wordName string)
rpcservice/kitex_gen/words/words.go:1194
↓ 2 callersMethodGetWordDetail
(ctx context.Context, wordName string, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:19
↓ 2 callersMethodGetWordList
(ctx context.Context, req *words.WordListReq, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:18
↓ 2 callersFunctionGetWordListHandler
GetWordListHandler retrieves a paginated list of words for a specific user from the database. It also fetches the review records for these words and c
rpcservice/biz/words/word_list.go:29
↓ 2 callersFunctionGetWordTagById
GetWordTagById queries the `word_tag` table for a word tag record based on the `tag_id`. Parameters: - tagId: The unique identifier of the word tag.
rpcservice/dal/dao/words_tag.go:37
↓ 2 callersFunctionGetWordsReciteRecord
GetWordsReciteRecord queries the `words_recite_record` table for a review record using `user_id` and `word_id`. Parameters: - userId: The unique iden
rpcservice/dal/dao/review_record.go:38
↓ 2 callersFunctionIncrementPendingReviewCount
IncrementPendingReviewCount increments the `pending_review_count` field for a specific user in the `review_progress` table. It also updates the `last_
rpcservice/dal/dao/review_progress.go:46
↓ 2 callersMethodInit
Init initializes the conversation by retrieving its history from Redis Parameters: - ctx: The context for logging and potential cancellation
rpcservice/biz/chat/history.go:44
↓ 2 callersFunctionInitCozeConfig
(cozeCfg map[string]string)
rpcservice/biz/chat/coze/config.go:37
↓ 2 callersFunctionInitDBWithConfig
InitDBWithConfig initializes the database connection based on the provided configuration. It supports two types of databases: MySQL and SQLite. Param
rpcservice/dal/mysql/init.go:32
↓ 2 callersFunctionInitModelCfg
(apiKey, model string)
rpcservice/biz/llm/arkmodel.go:52
↓ 2 callersFunctionInitWithConfig
InitWithConfig initializes the application configuration. It uses sync.Once to ensure that the configuration is loaded only once. If an error occurs d
apiservice/biz/config/loadconfig.go:33
↓ 2 callersFunctionIsInRefusedString
IsInRefusedString 是否包含rs拒绝回复的字符串
rpcservice/utils/refuse.go:48
↓ 2 callersFunctionNewClient
NewClient creates a client for the service defined in IDL.
rpcservice/kitex_gen/words/wordservice/client.go:32
↓ 2 callersFunctionNewReviewListResp
()
rpcservice/kitex_gen/words/words.go:635
↓ 2 callersFunctionNewSubmitAnswerResp
()
rpcservice/kitex_gen/words/words.go:749
↓ 2 callersFunctionNewWordListResp
()
rpcservice/kitex_gen/words/words.go:362
↓ 2 callersFunctionPanic
Panic asserts fn should panic and recover it, otherwise fails the test.
internal/test/assert.go:45
↓ 2 callersFunctionPanicAt
PanicAt asserts fn should panic and recover it, otherwise fails the test. The expect function can be provided to do further examination of the error.
internal/test/assert.go:62
↓ 2 callersFunctionRemoveTmpFile
RemoveTmpFile is only used for testing
internal/config/localconfig.go:72
↓ 2 callersFunctionResetConfig
ResetConfig is only used for testing
internal/config/localconfig.go:53
↓ 2 callersMethodSetLevel
(val int32)
rpcservice/kitex_gen/words/words.go:178
↓ 2 callersMethodSubmitAnswer
(ctx context.Context, req *SubmitAnswerReq)
rpcservice/kitex_gen/words/words.go:1206
↓ 2 callersMethodSubmitAnswer
(ctx context.Context, req *words.SubmitAnswerReq, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:25
↓ 2 callersFunctionUpdateWordTagID
UpdateWordTagID updates the tag ID of a word in the database. It first attempts to update the tag ID for the given word and user. If the update is suc
rpcservice/biz/words/word_tags.go:75
↓ 2 callersMethodUpdateWordTagID
(ctx context.Context, req *UpdateWordTag)
rpcservice/kitex_gen/words/words.go:1200
↓ 2 callersMethodUpdateWordTagID
(ctx context.Context, req *words.UpdateWordTag, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:22
↓ 2 callersMethodValue
Value return log level constant.
internal/suite/log/level.go:26
↓ 2 callersMethodcacheKey
cacheKey generates a Redis key for the conversation based on its ID Returns: - string: The generated Redis key
rpcservice/biz/chat/history.go:37
↓ 2 callersFunctioncalculateLength
(string: string)
client/src/components/bot-message/utils.ts:36
↓ 2 callersFunctioncancelRecording
()
client/src/hooks/asr.tsx:174
↓ 2 callersFunctioncleanupWord
cleanupWord cleans up a word by removing whitespace, newline characters, carriage return characters, spaces, and tab characters. It is useful for stan
apiservice/biz/handler/words/word.go:150
↓ 2 callersMethodclearToken
()
client/src/service/auth-service.ts:137
↓ 2 callersFunctioncloseMobileNav
()
apiservice/resource/repome/scripts.js:439
↓ 2 callersFunctionconvertOptionsToChoices
(options: OptionItem[])
client/src/components/vocabulary-review/index.tsx:189
↓ 2 callersFunctioncozeHighlight
(ctx context.Context, highlightResourceChan chan string, highlightResultChan chan []HighlightItem)
rpcservice/biz/chat/highlight.go:141
↓ 2 callersFunctioncreateMobileToggle
()
apiservice/resource/repome/scripts.js:259
↓ 2 callersFunctioncreateSemiCirclePath
(r: number)
client/src/components/progress-gauge/index.tsx:133
↓ 2 callersFunctioneaseOutExpo
(t)
apiservice/resource/repome/scripts.js:52
↓ 2 callersFunctionfetchData
()
client/src/pages/study_main/index.tsx:77
↓ 2 callersFunctiongenerateFillInBlankQuestion
generateFillInBlankQuestion generates a fill - in - the - blank review question for a word. Parameters: - ctx: The context used to control the lifeti
rpcservice/biz/words/review_list.go:294
↓ 2 callersFunctiongenerateRandomOrderIds
generateRandomOrderIds generates a list of non - repeating, random order IDs not greater than maxOrderId. It ensures that the list contains the existI
rpcservice/biz/words/review_list.go:436
↓ 2 callersFunctiongenerateToken
generateToken generates a JWT token for the given user ID. The token expires in 24 hours. Parameters: - userID: The ID of the user for whom the token
apiservice/biz/user/user.go:235
↓ 2 callersMethodgetTags
()
client/src/service/tag-service.ts:26
↓ 2 callersMethodgetUserInfo
()
client/src/service/auth-service.ts:92
↓ 2 callersFunctiongzipCompress
gzipCompress compresses the input byte slice using gzip. Parameters: - input: The byte slice to be compressed. Returns: - []byte: The compressed byt
apiservice/biz/asr/core.go:97
↓ 2 callersMethodisLoggedIn
()
client/src/service/auth-service.ts:145
↓ 2 callersFunctionopenMobileNav
()
apiservice/resource/repome/scripts.js:425
↓ 2 callersMethodparseResponse
parseResponse parses the response received from the ASR service. It extracts header information, decompresses the payload if necessary, and unmarshals
apiservice/biz/asr/core.go:311
↓ 2 callersMethodplayAudio
(wordId: number, audioUrl: string)
client/src/libs/audio-manager.ts:28
↓ 2 callersMethodqueryWordByName
(word: string)
client/src/service/word-service.ts:34
↓ 2 callersFunctionrecreateMockAnswerListTable
()
rpcservice/biz/words/word_test.go:225
↓ 2 callersMethodregisterCallback
(wordId: number, callback: (isPlaying: boolean) => void)
client/src/libs/audio-manager.ts:18
↓ 2 callersFunctionremoveWhitespace
(word: string)
client/src/components/word-tips/utils.ts:38
↓ 2 callersMethodsetToken
(token: string)
client/src/service/auth-service.ts:119
↓ 2 callersFunctionsleep
(ms: number)
client/src/pages/index/utils.ts:4
↓ 2 callersFunctionsmoothScrollTo
(target, duration = 800)
apiservice/resource/repome/scripts.js:43
↓ 2 callersMethodsubmitPuzzleAnswer
(req: AnswerPuzzleReq)
client/src/service/review-service.ts:120
↓ 2 callersMethodunregisterCallback
(wordId: number)
client/src/libs/audio-manager.ts:23
↓ 2 callersFunctionupdateActiveNav
()
apiservice/resource/repome/scripts.js:168
↓ 1 callersFunctionAddDefaultUserWithWordList
AddDefaultUserWithWordList adds default words to the database for a specified user. If the user already has words in the database, the function return
rpcservice/tools/init_default_user/main.go:31
↓ 1 callersFunctionAddWordTag
AddWordTag adds a new word tag record to the `word_tag` table. Parameters: - tag: A pointer to the `model.WordTag` struct representing the word tag r
rpcservice/dal/dao/words_tag.go:20
↓ 1 callersFunctionAddWordWithRelatedRecords
AddWordWithRelatedRecords atomically adds a word and its related records in a transaction. Parameters: - word: A pointer to the `model.Word` struct r
rpcservice/dal/dao/word.go:144
↓ 1 callersMethodAppend
(ip indexPair)
rpcservice/biz/chat/highlight.go:126
↓ 1 callersFunctionAssertf
Assertf asserts cond is true, otherwise fails the test.
internal/test/assert.go:29
↓ 1 callersFunctionBuildBaseRespWithExtra
BuildBaseRespWithExtra constructs a new instance of the base.BaseResp struct with additional extra information. This function allows users to attach a
rpcservice/biz/words/common/common.go:46
↓ 1 callersMethodChat
(ctx context.Context, req *ChatReq, stream WordService_ChatServer)
rpcservice/kitex_gen/words/words.go:1190
↓ 1 callersFunctionCreateOrUpdateReviewProgress
CreateOrUpdateReviewProgress creates a new review progress record or updates an existing one for a specific user. It checks if a record exists for the
rpcservice/dal/dao/review_progress.go:114
↓ 1 callersFunctionDeepEqual
DeepEqual asserts a and b are deep equal, otherwise fails the test.
internal/test/assert.go:37
↓ 1 callersFunctionEmitLatency
(ht metric.Float64Histogram, startTime time.Time, attr ...attribute.KeyValue)
rpcservice/utils/metrics.go:41
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:828
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1015
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1202
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1389
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1552
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1739
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1914
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:2478
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:2643
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:2922
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:3151
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:3258
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:3806
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:3856
↓ 1 callersMethodFastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:4019
↓ 1 callersMethodFastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:4645
↓ 1 callersMethodFastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:4843
↓ 1 callersMethodFastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:5043
↓ 1 callersMethodFastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:5243
↓ 1 callersMethodFastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:5441
↓ 1 callersMethodFastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:5639
↓ 1 callersMethodFastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:5837
← previousnext →101–200 of 1,348, ranked by callers