MCPcopy Create free account

hub / github.com/KunMoe/kun-galgame-patch / functions

Functions1,135 in github.com/KunMoe/kun-galgame-patch

FunctionReadBody
ReadBody reads the raw response body as string
apps/api/internal/testutil/testutil.go:152
MethodRegisterFuncs
(reg renderer.NodeRendererFuncRegisterer)
apps/api/internal/infrastructure/markdown/markdown.go:266
FunctionRenderResourceNotes
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
FunctionRenderWithTOC
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
FunctionRequireRole
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
FunctionResolveContentImageTokens
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
MethodResume
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
MethodResume
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
MethodResume
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
FunctionRevokeUserSessions
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
MethodScan
(value any)
apps/api/internal/patch/model/model.go:417
MethodSearchGalgameForPublish
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
MethodSearchGalgameForPublish
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
MethodSearchOfficial
SearchOfficial calls /official/search.
apps/api/internal/galgame/client/client.go:577
MethodSearchTag
SearchTag calls /tag/search.
apps/api/internal/galgame/client/client.go:551
MethodSearchUsers
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
MethodSearchUsers
SearchUsers GET /api/user/search
apps/api/internal/user/handler/handler.go:346
MethodSetCommentVerify
SetCommentVerify PUT /api/admin/setting/comment-verify
apps/api/internal/admin/handler/handler.go:303
FunctionSetContentImageMetaResolver
SetContentImageMetaResolver wires the hash→metadata resolver. Call once at startup, before serving.
apps/api/internal/infrastructure/markdown/markdown.go:132
FunctionSetContentImageResolver
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
MethodSetCreatorOnly
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
FunctionStart
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
MethodStartPrivate
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
MethodStatus
Status returns HTTPResponse.Status
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:693
MethodStatus
Status returns HTTPResponse.Status
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:755
MethodStatus
Status returns HTTPResponse.Status
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:786
MethodStatus
Status returns HTTPResponse.Status
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:817
MethodStatus
Status returns HTTPResponse.Status
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:848
MethodStatusCode
StatusCode returns HTTPResponse.StatusCode
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:701
MethodStatusCode
StatusCode returns HTTPResponse.StatusCode
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:763
MethodStatusCode
StatusCode returns HTTPResponse.StatusCode
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:794
MethodStatusCode
StatusCode returns HTTPResponse.StatusCode
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:825
MethodStatusCode
StatusCode returns HTTPResponse.StatusCode
apps/api/pkg/artifactclient/gen/artifact_client.gen.go:856
FunctionStripResourceSecrets
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
MethodSubmitGalgame
─── 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
MethodTableName
()
apps/api/internal/auth/model/model.go:31
MethodTableName
()
apps/api/internal/user/model/model.go:32
MethodTableName
()
apps/api/internal/user/model/model.go:64
MethodTableName
()
apps/api/internal/chat/model/model.go:29
MethodTableName
()
apps/api/internal/chat/model/model.go:60
MethodTableName
()
apps/api/internal/chat/model/model.go:113
MethodTableName
()
apps/api/internal/chat/model/model.go:138
MethodTableName
()
apps/api/internal/chat/model/model.go:150
MethodTableName
()
apps/api/internal/chat/model/model.go:160
MethodTableName
()
apps/api/internal/setting/model/model.go:24
MethodTableName
()
apps/api/internal/doc/model/model.go:40
MethodTableName
()
apps/api/internal/patch/model/model.go:261
MethodTableName
()
apps/api/internal/patch/model/model.go:299
MethodTableName
()
apps/api/internal/patch/model/model.go:313
MethodTableName
()
apps/api/internal/patch/model/model.go:327
MethodTableName
()
apps/api/internal/patch/model/model.go:337
MethodTableName
()
apps/api/internal/patch/model/model.go:347
MethodTableName
()
apps/api/internal/patch/model/model.go:357
MethodTableName
()
apps/api/internal/patch/model/model.go:370
MethodTableName
()
apps/api/internal/patch/model/model.go:397
MethodTableName
()
apps/api/internal/patch/model/model.go:461
MethodTableName
()
apps/api/internal/admin/model/model.go:22
FunctionTestAdjust_BusinessError
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:67
FunctionTestAdjust_IdempotentReplay
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:50
FunctionTestAdjust_Success
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:15
FunctionTestAppError_Implements_Error
(t *testing.T)
apps/api/pkg/errors/errors_test.go:11
FunctionTestAuth_ExpiredSession
(t *testing.T)
apps/api/internal/middleware/auth_test.go:54
FunctionTestAuth_NoSession
(t *testing.T)
apps/api/internal/middleware/auth_test.go:20
FunctionTestAuth_ValidSession
(t *testing.T)
apps/api/internal/middleware/auth_test.go:37
FunctionTestBalance
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:79
FunctionTestContentImageTokenResolution
(t *testing.T)
apps/api/internal/infrastructure/markdown/markdown_test.go:225
FunctionTestContentImageTokenWithoutResolverIsLeftAsIs
(t *testing.T)
apps/api/internal/infrastructure/markdown/markdown_test.go:267
FunctionTestCreateSession_And_DestroySession
(t *testing.T)
apps/api/internal/middleware/auth_test.go:145
FunctionTestErrAuthExpired
(t *testing.T)
apps/api/pkg/errors/errors_test.go:23
FunctionTestErrBadRequest_Custom
(t *testing.T)
apps/api/pkg/errors/errors_test.go:42
FunctionTestErrBadRequest_Default
(t *testing.T)
apps/api/pkg/errors/errors_test.go:35
FunctionTestErrConflict
(t *testing.T)
apps/api/pkg/errors/errors_test.go:66
FunctionTestErrForbidden
(t *testing.T)
apps/api/pkg/errors/errors_test.go:29
FunctionTestErrInternal_Default
(t *testing.T)
apps/api/pkg/errors/errors_test.go:54
FunctionTestErrNotFound_Default
(t *testing.T)
apps/api/pkg/errors/errors_test.go:47
FunctionTestErrTooManyRequests
(t *testing.T)
apps/api/pkg/errors/errors_test.go:72
FunctionTestErrUnauthorized
(t *testing.T)
apps/api/pkg/errors/errors_test.go:16
FunctionTestErrValidation
(t *testing.T)
apps/api/pkg/errors/errors_test.go:60
FunctionTestError
(t *testing.T)
apps/api/pkg/response/response_test.go:87
FunctionTestExtractMentionUserIDs
(t *testing.T)
apps/api/internal/patch/service/service_test.go:11
FunctionTestExtractMentionedUserIDs
(t *testing.T)
apps/api/internal/infrastructure/markdown/markdown_test.go:53
FunctionTestGetHikariIntegration
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
FunctionTestGetUser_Helpers
(t *testing.T)
apps/api/internal/middleware/auth_test.go:191
FunctionTestHikariOriginAllowed
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
FunctionTestInvalidate_DropsPositiveAndNegativeEntries
(t *testing.T)
apps/api/pkg/userclient/client_test.go:165
FunctionTestJSONArray_Scan_EmptyAndNull
(t *testing.T)
apps/api/internal/patch/model/model_test.go:54
FunctionTestJSONArray_Scan_EmptyArray
(t *testing.T)
apps/api/internal/patch/model/model_test.go:26
FunctionTestJSONArray_Scan_InvalidType
(t *testing.T)
apps/api/internal/patch/model/model_test.go:33
FunctionTestJSONArray_Scan_Nil
(t *testing.T)
apps/api/internal/patch/model/model_test.go:12
FunctionTestJSONArray_Scan_StringEmptyArray
(t *testing.T)
apps/api/internal/patch/model/model_test.go:48
FunctionTestJSONArray_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
FunctionTestJSONArray_Scan_ValidJSON
(t *testing.T)
apps/api/internal/patch/model/model_test.go:19
FunctionTestJSONArray_Value_Nil
(t *testing.T)
apps/api/internal/patch/model/model_test.go:62
FunctionTestJSONArray_Value_NonEmpty
(t *testing.T)
apps/api/internal/patch/model/model_test.go:69
FunctionTestLog
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:97
FunctionTestLog_EmptyNeverNil
(t *testing.T)
apps/api/pkg/moemoepoint/client_test.go:133
FunctionTestMentionLink
(t *testing.T)
apps/api/internal/infrastructure/markdown/markdown_test.go:10
FunctionTestNew
(t *testing.T)
apps/api/pkg/errors/errors_test.go:79
FunctionTestNewMock_ServesFromMap
(t *testing.T)
apps/api/pkg/userclient/client_test.go:180
FunctionTestOK
(t *testing.T)
apps/api/pkg/response/response_test.go:22
← previousnext →801–900 of 1,135, ranked by callers