Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KunMoe/kun-galgame-patch
/ functions
Functions
1,135 in github.com/KunMoe/kun-galgame-patch
⨍
Functions
1,135
◇
Types & classes
365
Function
ReadBody
ReadBody reads the raw response body as string
apps/api/internal/testutil/testutil.go:152
Method
RegisterFuncs
(reg renderer.NodeRendererFuncRegisterer)
apps/api/internal/infrastructure/markdown/markdown.go:266
Function
RenderResourceNotes
RenderResourceNotes fills note_html for every resource in the slice. Idempotent: re-rendering an already-rendered slice is a no-op rerender. Defined h
apps/api/internal/patch/model/model.go:175
Function
RenderWithTOC
RenderWithTOC renders markdown to HTML and additionally returns a flat list of headings (h1-h3) suitable for a "本页索引" sidebar. IDs come from the same
apps/api/internal/infrastructure/markdown/markdown.go:403
Function
RequireRole
RequireRole returns a middleware that admits requests whose OAuth roles claim contains any of the listed role strings. With no roles passed it admits
apps/api/internal/middleware/role.go:17
Function
ResolveContentImageTokens
ResolveContentImageTokens rewrites every `/image/<hash>` content-image token in RAW markdown to its fully-qualified CDN URL, using the same resolver t
apps/api/internal/infrastructure/markdown/markdown.go:185
Method
Resume
Resume restarts an interrupted upload. It asks the artifact service which parts are already stored in B2 (UploadedParts — skip them, reuse their etags
apps/api/pkg/artifactclient/client.go:206
Method
Resume
Resume POST /api/upload/resume — continue an interrupted upload. The artifact service lists the parts already in B2 and re-presigns only the missing o
apps/api/internal/common/upload/handler.go:85
Method
Resume
Resume continues an interrupted upload: it asks the artifact service which parts are already stored (skip them) and returns fresh presigned URLs for o
apps/api/internal/common/upload/service.go:224
Function
RevokeUserSessions
RevokeUserSessions best-effort deletes every Redis session belonging to a user, matched by the id embedded in SessionData. Used by the admin user purg
apps/api/internal/middleware/auth.go:96
Method
Scan
(value any)
apps/api/internal/patch/model/model.go:417
Method
SearchGalgameForPublish
SearchGalgameForPublish wraps /galgame/search?include_pending=true. With a non-empty access token, wiki decodes the JWT and additionally surfaces the
apps/api/internal/galgame/client/submission.go:261
Method
SearchGalgameForPublish
SearchGalgameForPublish GET /api/v1/galgame/search/publish Used by the publish wizard. Forwards the user's Bearer + include_pending=true so the respo
apps/api/internal/patch/handler/handler.go:1132
Method
SearchOfficial
SearchOfficial calls /official/search.
apps/api/internal/galgame/client/client.go:577
Method
SearchTag
SearchTag calls /tag/search.
apps/api/internal/galgame/client/client.go:551
Method
SearchUsers
SearchUsers proxies OAuth /users/search and returns the slim wire shape. limit is capped server-side at 50 (the OAuth API's max).
apps/api/internal/user/service/service.go:222
Method
SearchUsers
SearchUsers GET /api/user/search
apps/api/internal/user/handler/handler.go:346
Method
SetCommentVerify
SetCommentVerify PUT /api/admin/setting/comment-verify
apps/api/internal/admin/handler/handler.go:303
Function
SetContentImageMetaResolver
SetContentImageMetaResolver wires the hash→metadata resolver. Call once at startup, before serving.
apps/api/internal/infrastructure/markdown/markdown.go:132
Function
SetContentImageResolver
SetContentImageResolver wires the hash→CDN-URL resolver used by the content image AST transformer. Call once at startup, before serving.
apps/api/internal/infrastructure/markdown/markdown.go:104
Method
SetCreatorOnly
SetCreatorOnly PUT /api/admin/setting/creator-only When on, only moderators / admins (role > 2) may publish a galgame — enforced in the patch publish
apps/api/internal/admin/handler/handler.go:323
Function
Start
Start starts all cron jobs and returns a stop function for graceful shutdown. Job list: 1. Daily 00:00: reset daily_image_count / daily_check_in / da
apps/api/internal/infrastructure/cron/cron.go:25
Method
StartPrivate
StartPrivate POST /api/chat/room/private Returns the (created or existing) private chat room between the caller and req.PeerUID. Front-end clicks "发消
apps/api/internal/chat/handler/handler.go:330
Method
Status
Status returns HTTPResponse.Status
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:693
Method
Status
Status returns HTTPResponse.Status
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:755
Method
Status
Status returns HTTPResponse.Status
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:786
Method
Status
Status returns HTTPResponse.Status
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:817
Method
Status
Status returns HTTPResponse.Status
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:848
Method
StatusCode
StatusCode returns HTTPResponse.StatusCode
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:701
Method
StatusCode
StatusCode returns HTTPResponse.StatusCode
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:763
Method
StatusCode
StatusCode returns HTTPResponse.StatusCode
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:794
Method
StatusCode
StatusCode returns HTTPResponse.StatusCode
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:825
Method
StatusCode
StatusCode returns HTTPResponse.StatusCode
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:856
Function
StripResourceSecrets
StripResourceSecrets blanks the download payload (Content / S3Key / Code / Password) on a slice of resources. Used by the bulk LIST/feed endpoints (ho
apps/api/internal/patch/model/model.go:191
Method
SubmitGalgame
─── User-facing methods (transparent JWT forwarding) ── SubmitGalgame proxies POST /galgame/submit in JSON mode. Use SubmitGalgameMultipart when the u
apps/api/internal/galgame/client/submission.go:136
Method
TableName
()
apps/api/internal/auth/model/model.go:31
Method
TableName
()
apps/api/internal/user/model/model.go:32
Method
TableName
()
apps/api/internal/user/model/model.go:64
Method
TableName
()
apps/api/internal/chat/model/model.go:29
Method
TableName
()
apps/api/internal/chat/model/model.go:60
Method
TableName
()
apps/api/internal/chat/model/model.go:113
Method
TableName
()
apps/api/internal/chat/model/model.go:138
Method
TableName
()
apps/api/internal/chat/model/model.go:150
Method
TableName
()
apps/api/internal/chat/model/model.go:160
Method
TableName
()
apps/api/internal/setting/model/model.go:24
Method
TableName
()
apps/api/internal/doc/model/model.go:40
Method
TableName
()
apps/api/internal/patch/model/model.go:261
Method
TableName
()
apps/api/internal/patch/model/model.go:299
Method
TableName
()
apps/api/internal/patch/model/model.go:313
Method
TableName
()
apps/api/internal/patch/model/model.go:327
Method
TableName
()
apps/api/internal/patch/model/model.go:337
Method
TableName
()
apps/api/internal/patch/model/model.go:347
Method
TableName
()
apps/api/internal/patch/model/model.go:357
Method
TableName
()
apps/api/internal/patch/model/model.go:370
Method
TableName
()
apps/api/internal/patch/model/model.go:397
Method
TableName
()
apps/api/internal/patch/model/model.go:461
Method
TableName
()
apps/api/internal/admin/model/model.go:22
Function
TestAdjust_BusinessError
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:67
Function
TestAdjust_IdempotentReplay
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:50
Function
TestAdjust_Success
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:15
Function
TestAppError_Implements_Error
(t *testing.T)
apps/api/pkg/errors/errors_test.go:11
Function
TestAuth_ExpiredSession
(t *testing.T)
apps/api/internal/middleware/auth_test.go:54
Function
TestAuth_NoSession
(t *testing.T)
apps/api/internal/middleware/auth_test.go:20
Function
TestAuth_ValidSession
(t *testing.T)
apps/api/internal/middleware/auth_test.go:37
Function
TestBalance
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:79
Function
TestContentImageTokenResolution
(t *testing.T)
apps/api/internal/infrastructure/markdown/markdown_test.go:225
Function
TestContentImageTokenWithoutResolverIsLeftAsIs
(t *testing.T)
apps/api/internal/infrastructure/markdown/markdown_test.go:267
Function
TestCreateSession_And_DestroySession
(t *testing.T)
apps/api/internal/middleware/auth_test.go:145
Function
TestErrAuthExpired
(t *testing.T)
apps/api/pkg/errors/errors_test.go:23
Function
TestErrBadRequest_Custom
(t *testing.T)
apps/api/pkg/errors/errors_test.go:42
Function
TestErrBadRequest_Default
(t *testing.T)
apps/api/pkg/errors/errors_test.go:35
Function
TestErrConflict
(t *testing.T)
apps/api/pkg/errors/errors_test.go:66
Function
TestErrForbidden
(t *testing.T)
apps/api/pkg/errors/errors_test.go:29
Function
TestErrInternal_Default
(t *testing.T)
apps/api/pkg/errors/errors_test.go:54
Function
TestErrNotFound_Default
(t *testing.T)
apps/api/pkg/errors/errors_test.go:47
Function
TestErrTooManyRequests
(t *testing.T)
apps/api/pkg/errors/errors_test.go:72
Function
TestErrUnauthorized
(t *testing.T)
apps/api/pkg/errors/errors_test.go:16
Function
TestErrValidation
(t *testing.T)
apps/api/pkg/errors/errors_test.go:60
Function
TestError
(t *testing.T)
apps/api/pkg/response/response_test.go:87
Function
TestExtractMentionUserIDs
(t *testing.T)
apps/api/internal/patch/service/service_test.go:11
Function
TestExtractMentionedUserIDs
(t *testing.T)
apps/api/internal/infrastructure/markdown/markdown_test.go:53
Function
TestGetHikariIntegration
TestGetHikariIntegration exercises the external Hikari endpoint end-to-end against a real Postgres (so the jsonb JSONArray columns behave like prod).
apps/api/internal/common/hikari_test.go:30
Function
TestGetUser_Helpers
(t *testing.T)
apps/api/internal/middleware/auth_test.go:191
Function
TestHikariOriginAllowed
TestHikariOriginAllowed locks the external Hikari API's partner-domain allowlist: legitimate partner origins (incl. wildcard subdomains) pass, and loo
apps/api/internal/middleware/cors_test.go:8
Function
TestInvalidate_DropsPositiveAndNegativeEntries
(t *testing.T)
apps/api/pkg/userclient/client_test.go:165
Function
TestJSONArray_Scan_EmptyAndNull
(t *testing.T)
apps/api/internal/patch/model/model_test.go:54
Function
TestJSONArray_Scan_EmptyArray
(t *testing.T)
apps/api/internal/patch/model/model_test.go:26
Function
TestJSONArray_Scan_InvalidType
(t *testing.T)
apps/api/internal/patch/model/model_test.go:33
Function
TestJSONArray_Scan_Nil
(t *testing.T)
apps/api/internal/patch/model/model_test.go:12
Function
TestJSONArray_Scan_StringEmptyArray
(t *testing.T)
apps/api/internal/patch/model/model_test.go:48
Function
TestJSONArray_Scan_StringInput
Regression: the pgx driver can return jsonb as a string (e.g. the INSERT ... RETURNING scan in ensureLocalPatch). Scan must accept it, not error with
apps/api/internal/patch/model/model_test.go:42
Function
TestJSONArray_Scan_ValidJSON
(t *testing.T)
apps/api/internal/patch/model/model_test.go:19
Function
TestJSONArray_Value_Nil
(t *testing.T)
apps/api/internal/patch/model/model_test.go:62
Function
TestJSONArray_Value_NonEmpty
(t *testing.T)
apps/api/internal/patch/model/model_test.go:69
Function
TestLog
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:97
Function
TestLog_EmptyNeverNil
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:133
Function
TestMentionLink
(t *testing.T)
apps/api/internal/infrastructure/markdown/markdown_test.go:10
Function
TestNew
(t *testing.T)
apps/api/pkg/errors/errors_test.go:79
Function
TestNewMock_ServesFromMap
(t *testing.T)
apps/api/pkg/userclient/client_test.go:180
Function
TestOK
(t *testing.T)
apps/api/pkg/response/response_test.go:22
← previous
next →
801–900 of 1,135, ranked by callers