Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Trae-AI/stream-to-river
/ functions
Functions
1,348 in github.com/Trae-AI/stream-to-river
⨍
Functions
1,348
◇
Types & classes
173
↓ 2 callers
Method
GetSupportedTags
(ctx context.Context, req *GetTagsReq)
rpcservice/kitex_gen/words/words.go:1208
↓ 2 callers
Method
GetSupportedTags
(ctx context.Context, req *words.GetTagsReq, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:26
↓ 2 callers
Method
GetTodayReviewProgress
(ctx context.Context, req *ReviewProgressReq)
rpcservice/kitex_gen/words/words.go:1204
↓ 2 callers
Method
GetTodayReviewProgress
(ctx context.Context, req *words.ReviewProgressReq, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:24
↓ 2 callers
Function
GetTotalWordsCount
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 callers
Method
GetWordByID
(ctx context.Context, wordId int64)
rpcservice/kitex_gen/words/words.go:1196
↓ 2 callers
Method
GetWordByID
(ctx context.Context, wordId int64, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:20
↓ 2 callers
Function
GetWordDetail
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 callers
Method
GetWordDetail
(ctx context.Context, wordName string)
rpcservice/kitex_gen/words/words.go:1194
↓ 2 callers
Method
GetWordDetail
(ctx context.Context, wordName string, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:19
↓ 2 callers
Method
GetWordList
(ctx context.Context, req *words.WordListReq, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:18
↓ 2 callers
Function
GetWordListHandler
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 callers
Function
GetWordTagById
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 callers
Function
GetWordsReciteRecord
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 callers
Function
IncrementPendingReviewCount
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 callers
Method
Init
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 callers
Function
InitCozeConfig
(cozeCfg map[string]string)
rpcservice/biz/chat/coze/config.go:37
↓ 2 callers
Function
InitDBWithConfig
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 callers
Function
InitModelCfg
(apiKey, model string)
rpcservice/biz/llm/arkmodel.go:52
↓ 2 callers
Function
InitWithConfig
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 callers
Function
IsInRefusedString
IsInRefusedString 是否包含rs拒绝回复的字符串
rpcservice/utils/refuse.go:48
↓ 2 callers
Function
NewClient
NewClient creates a client for the service defined in IDL.
rpcservice/kitex_gen/words/wordservice/client.go:32
↓ 2 callers
Function
NewReviewListResp
()
rpcservice/kitex_gen/words/words.go:635
↓ 2 callers
Function
NewSubmitAnswerResp
()
rpcservice/kitex_gen/words/words.go:749
↓ 2 callers
Function
NewWordListResp
()
rpcservice/kitex_gen/words/words.go:362
↓ 2 callers
Function
Panic
Panic asserts fn should panic and recover it, otherwise fails the test.
internal/test/assert.go:45
↓ 2 callers
Function
PanicAt
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 callers
Function
RemoveTmpFile
RemoveTmpFile is only used for testing
internal/config/localconfig.go:72
↓ 2 callers
Function
ResetConfig
ResetConfig is only used for testing
internal/config/localconfig.go:53
↓ 2 callers
Method
SetLevel
(val int32)
rpcservice/kitex_gen/words/words.go:178
↓ 2 callers
Method
SubmitAnswer
(ctx context.Context, req *SubmitAnswerReq)
rpcservice/kitex_gen/words/words.go:1206
↓ 2 callers
Method
SubmitAnswer
(ctx context.Context, req *words.SubmitAnswerReq, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:25
↓ 2 callers
Function
UpdateWordTagID
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 callers
Method
UpdateWordTagID
(ctx context.Context, req *UpdateWordTag)
rpcservice/kitex_gen/words/words.go:1200
↓ 2 callers
Method
UpdateWordTagID
(ctx context.Context, req *words.UpdateWordTag, callOptions ...callopt.Option)
rpcservice/kitex_gen/words/wordservice/client.go:22
↓ 2 callers
Method
Value
Value return log level constant.
internal/suite/log/level.go:26
↓ 2 callers
Method
cacheKey
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 callers
Function
calculateLength
(string: string)
client/src/components/bot-message/utils.ts:36
↓ 2 callers
Function
cancelRecording
()
client/src/hooks/asr.tsx:174
↓ 2 callers
Function
cleanupWord
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 callers
Method
clearToken
()
client/src/service/auth-service.ts:137
↓ 2 callers
Function
closeMobileNav
()
apiservice/resource/repome/scripts.js:439
↓ 2 callers
Function
convertOptionsToChoices
(options: OptionItem[])
client/src/components/vocabulary-review/index.tsx:189
↓ 2 callers
Function
cozeHighlight
(ctx context.Context, highlightResourceChan chan string, highlightResultChan chan []HighlightItem)
rpcservice/biz/chat/highlight.go:141
↓ 2 callers
Function
createMobileToggle
()
apiservice/resource/repome/scripts.js:259
↓ 2 callers
Function
createSemiCirclePath
(r: number)
client/src/components/progress-gauge/index.tsx:133
↓ 2 callers
Function
easeOutExpo
(t)
apiservice/resource/repome/scripts.js:52
↓ 2 callers
Function
fetchData
()
client/src/pages/study_main/index.tsx:77
↓ 2 callers
Function
generateFillInBlankQuestion
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 callers
Function
generateRandomOrderIds
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 callers
Function
generateToken
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 callers
Method
getTags
()
client/src/service/tag-service.ts:26
↓ 2 callers
Method
getUserInfo
()
client/src/service/auth-service.ts:92
↓ 2 callers
Function
gzipCompress
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 callers
Method
isLoggedIn
()
client/src/service/auth-service.ts:145
↓ 2 callers
Function
openMobileNav
()
apiservice/resource/repome/scripts.js:425
↓ 2 callers
Method
parseResponse
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 callers
Method
playAudio
(wordId: number, audioUrl: string)
client/src/libs/audio-manager.ts:28
↓ 2 callers
Method
queryWordByName
(word: string)
client/src/service/word-service.ts:34
↓ 2 callers
Function
recreateMockAnswerListTable
()
rpcservice/biz/words/word_test.go:225
↓ 2 callers
Method
registerCallback
(wordId: number, callback: (isPlaying: boolean) => void)
client/src/libs/audio-manager.ts:18
↓ 2 callers
Function
removeWhitespace
(word: string)
client/src/components/word-tips/utils.ts:38
↓ 2 callers
Method
setToken
(token: string)
client/src/service/auth-service.ts:119
↓ 2 callers
Function
sleep
(ms: number)
client/src/pages/index/utils.ts:4
↓ 2 callers
Function
smoothScrollTo
(target, duration = 800)
apiservice/resource/repome/scripts.js:43
↓ 2 callers
Method
submitPuzzleAnswer
(req: AnswerPuzzleReq)
client/src/service/review-service.ts:120
↓ 2 callers
Method
unregisterCallback
(wordId: number)
client/src/libs/audio-manager.ts:23
↓ 2 callers
Function
updateActiveNav
()
apiservice/resource/repome/scripts.js:168
↓ 1 callers
Function
AddDefaultUserWithWordList
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 callers
Function
AddWordTag
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 callers
Function
AddWordWithRelatedRecords
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 callers
Method
Append
(ip indexPair)
rpcservice/biz/chat/highlight.go:126
↓ 1 callers
Function
Assertf
Assertf asserts cond is true, otherwise fails the test.
internal/test/assert.go:29
↓ 1 callers
Function
BuildBaseRespWithExtra
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 callers
Method
Chat
(ctx context.Context, req *ChatReq, stream WordService_ChatServer)
rpcservice/kitex_gen/words/words.go:1190
↓ 1 callers
Function
CreateOrUpdateReviewProgress
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 callers
Function
DeepEqual
DeepEqual asserts a and b are deep equal, otherwise fails the test.
internal/test/assert.go:37
↓ 1 callers
Function
EmitLatency
(ht metric.Float64Histogram, startTime time.Time, attr ...attribute.KeyValue)
rpcservice/utils/metrics.go:41
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:828
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1015
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1202
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1389
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1552
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1739
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:1914
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:2478
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:2643
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:2922
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:3151
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:3258
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:3806
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:3856
↓ 1 callers
Method
FastRead
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:4019
↓ 1 callers
Method
FastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:4645
↓ 1 callers
Method
FastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:4843
↓ 1 callers
Method
FastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:5043
↓ 1 callers
Method
FastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:5243
↓ 1 callers
Method
FastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:5441
↓ 1 callers
Method
FastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:5639
↓ 1 callers
Method
FastReadField0
(buf []byte)
rpcservice/kitex_gen/words/k-words.go:5837
← previous
next →
101–200 of 1,348, ranked by callers