MCPcopy Create free account

hub / github.com/Done-0/gin-scaffold / functions

Functions229 in github.com/Done-0/gin-scaffold

↓ 1 callersMethodsetupSystemDatabase
setupSystemDatabase handles PostgreSQL and MySQL system database setup
internal/db/internal/setup.go:44
↓ 1 callersFunctiontrimPathPrefix
trimPathPrefix removes path prefix, keeping only function name
internal/utils/errorx/internal/stack.go:58
↓ 1 callersFunctionwithStackTraceIfNotExists
withStackTraceIfNotExists adds stack information if error doesn't have it
internal/utils/errorx/internal/stack.go:66
↓ 1 callersFunctionwrapf
wrapf wraps error with formatted message (internal function)
internal/utils/errorx/internal/msg.go:27
MethodBeforeCreate
BeforeCreate implements GORM hook
internal/model/base/base.go:48
MethodBeforeUpdate
BeforeUpdate implements GORM hook
internal/model/base/base.go:63
MethodBundle
()
internal/i18n/i18n.go:14
MethodBundle
Bundle returns the i18n bundle instance
internal/i18n/internal/manager.go:31
MethodChat
Chat sends a chat completion request
internal/ai/internal/manager.go:37
MethodChat
Chat sends a chat completion request
internal/ai/internal/provider/gemini/gemini.go:32
MethodChat
Chat sends a chat completion request
internal/ai/internal/provider/deepseek/deepseek.go:51
MethodChat
Chat sends a chat completion request
internal/ai/internal/provider/openai/openai.go:49
MethodChatStream
ChatStream sends a streaming chat completion request
internal/ai/internal/manager.go:62
MethodChatStream
ChatStream sends a streaming chat completion request
internal/ai/internal/provider/gemini/gemini.go:159
MethodChatStream
ChatStream sends a streaming chat completion request
internal/ai/internal/provider/deepseek/deepseek.go:145
MethodChatStream
ChatStream sends a streaming chat completion request
internal/ai/internal/provider/openai/openai.go:210
MethodCleanup
Cleanup implements sarama.ConsumerGroupHandler
internal/queue/internal/consumer.go:73
MethodClient
Client returns the Redis client instance
internal/redis/internal/manager.go:32
MethodClose
Close closes the logger system
internal/logger/internal/manager.go:106
MethodClose
()
internal/i18n/i18n.go:16
MethodClose
Close closes the i18n system
internal/i18n/internal/manager.go:59
MethodClose
()
internal/queue/queue.go:24
MethodClose
Close gracefully shuts down the consumer
internal/queue/internal/consumer.go:64
MethodClose
Close closes the producer connection
internal/queue/internal/producer.go:49
MethodClose
Close closes the Redis connection
internal/redis/internal/manager.go:59
MethodClose
Close closes the database connection
internal/db/internal/manager.go:55
MethodCode
()
internal/utils/errorx/error_utils.go:13
MethodCode
Code gets status code
internal/utils/errorx/internal/status.go:34
MethodCode
Code gets status code
internal/utils/errorx/internal/status.go:59
MethodConsumeClaim
ConsumeClaim implements sarama.ConsumerGroupHandler
internal/queue/internal/consumer.go:76
MethodCreateTemplate
(ctx context.Context, path string, tmpl *Template)
internal/ai/internal/prompter/prompter.go:98
MethodDB
DB returns the database instance
internal/db/internal/manager.go:36
MethodDeleteTemplate
(ctx context.Context, path string)
internal/ai/internal/prompter/prompter.go:139
MethodError
Error error string representation
internal/utils/errorx/internal/status.go:44
MethodError
Error error string representation
internal/utils/errorx/internal/status.go:103
MethodError
Error error string representation
internal/utils/errorx/internal/msg.go:22
FunctionExtra
Extra creates extra information option
internal/utils/errorx/internal/status.go:138
MethodExtra
Get error message
internal/utils/errorx/error_utils.go:15
MethodExtra
Extra gets extra information
internal/utils/errorx/internal/status.go:49
MethodExtra
Extra gets extra information
internal/utils/errorx/internal/status.go:69
FunctionGetFileNameWithoutExt
GetFileNameWithoutExt returns filename without extension
internal/utils/file/json_utils.go:48
MethodGetMessages
(ctx context.Context, path string, vars *map[string]any)
internal/ai/internal/prompter/types.go:14
MethodGetMessages
(ctx context.Context, path string, vars *map[string]any)
internal/ai/internal/prompter/prompter.go:55
MethodHandle
(ctx context.Context, msg *sarama.ConsumerMessage)
internal/queue/queue.go:29
MethodInitialize
()
internal/logger/logger.go:16
MethodInitialize
Initialize sets up the logger system
internal/logger/internal/manager.go:42
MethodInitialize
Initialize sets up i18n system
internal/i18n/internal/manager.go:36
MethodInitialize
()
internal/redis/redis.go:16
MethodInitialize
Initialize sets up the Redis connection
internal/redis/internal/manager.go:37
MethodInitialize
()
internal/db/db.go:16
MethodInitialize
Initialize sets up the database connection and performs migrations
internal/db/internal/manager.go:41
MethodIs
Is supports Go errors.Is()
internal/utils/errorx/internal/status.go:84
MethodListTemplates
(ctx context.Context, prefix string)
internal/ai/internal/prompter/prompter.go:71
MethodLogger
Logger returns the logger instance
internal/logger/internal/manager.go:37
MethodMsg
Msg gets error message
internal/utils/errorx/internal/status.go:39
MethodMsg
Msg gets error message
internal/utils/errorx/internal/status.go:64
FunctionNewConsumer
NewConsumer creates a new Kafka consumer
internal/queue/queue.go:38
FunctionNewContainer
NewContainer initializes the complete application container using Wire
pkg/wire/wire.go:46
FunctionNewProducer
NewProducer creates a new Kafka producer
internal/queue/queue.go:33
FunctionNewRand
NewRand generates six-digit random verification code
internal/utils/email/email_utils.go:72
MethodParams
Params gets template parameters
internal/utils/errorx/internal/status.go:54
MethodParams
Params gets template parameters
internal/utils/errorx/internal/status.go:74
FunctionParseLimit
ParseLimit parses rate limit string like "60/min", "1/s"
internal/utils/rate/rate_utils.go:16
MethodResetSelector
ResetSelector resets the selector counters
internal/ai/internal/manager.go:87
FunctionSend
Send is a helper to emit a single event
internal/utils/sse/stream_handler_utils.go:30
MethodSend
(ctx context.Context, topic string, key, value []byte)
internal/queue/queue.go:17
MethodSend
Send sends a message to the specified topic
internal/queue/internal/producer.go:35
FunctionSendEmail
SendEmail sends email to specified email addresses with specified content type
internal/utils/email/email_utils.go:29
MethodSetup
Setup implements sarama.ConsumerGroupHandler
internal/queue/internal/consumer.go:70
MethodStackTrace
StackTrace gets stack trace information
internal/utils/errorx/internal/status.go:98
MethodStackTrace
()
internal/utils/errorx/internal/stack.go:15
MethodStackTrace
StackTrace gets stack trace information
internal/utils/errorx/internal/stack.go:30
FunctionStream
Stream processes data using a custom handler function
internal/utils/sse/stream_handler_utils.go:18
MethodStreamToClient
(c *gin.Context, events <-chan *sse.Event)
internal/sse/internal/manager.go:21
MethodSubscribe
(topics []string)
internal/queue/queue.go:23
MethodSubscribe
Subscribe starts consuming messages from the specified topics
internal/queue/internal/consumer.go:49
MethodTableName
TableName specifies table name
internal/model/user/user.go:19
MethodTestError
TestError handles error test endpoint @Router /api/v1/test/testErrRes [get]
pkg/serve/controller/test_controller.go:102
MethodTestError
TestError handles error test
pkg/serve/service/impl/test_service_impl.go:105
MethodTestErrorMiddleware
TestErrorMiddleware handles error middleware test endpoint @Router /api/v1/test/testErrorMiddleware [get]
pkg/serve/controller/test_controller.go:114
FunctionTestFail
(t *testing.T)
internal/utils/vo/vo_utils_test.go:59
MethodTestHello
TestHello handles hello test endpoint @Router /api/v1/test/testHello [get]
pkg/serve/controller/test_controller.go:48
MethodTestHello
TestHello handles hello test
pkg/serve/service/impl/test_service_impl.go:50
FunctionTestHighConcurrency_10000Requests
(t *testing.T)
internal/ai/internal/selector/selector_test.go:624
FunctionTestHighConcurrency_ConcurrentSelectWithWait
(t *testing.T)
internal/ai/internal/selector/selector_test.go:729
MethodTestI18n
TestI18n handles i18n test endpoint @Router /api/v1/test/testI18n [get]
pkg/serve/controller/test_controller.go:145
MethodTestI18n
TestI18n handles i18n test
pkg/serve/service/impl/test_service_impl.go:124
MethodTestLogger
TestLogger handles logger test endpoint @Router /api/v1/test/testLogger [get]
pkg/serve/controller/test_controller.go:60
MethodTestLogger
TestLogger handles logger test
pkg/serve/service/impl/test_service_impl.go:58
MethodTestLong
TestLong handles long request test endpoint @Router /api/v2/test/testLongReq [post]
pkg/serve/controller/test_controller.go:121
MethodTestLong
TestLong handles long request test
pkg/serve/service/impl/test_service_impl.go:113
MethodTestPing
TestPing handles ping test endpoint @Router /api/v1/test/testPing [get]
pkg/serve/controller/test_controller.go:36
MethodTestPing
TestPing handles ping test
pkg/serve/service/impl/test_service_impl.go:42
FunctionTestPrompt
(t *testing.T)
internal/ai/internal/prompter/prompter_test.go:17
MethodTestRedis
TestRedis handles redis test endpoint @Router /api/v1/test/testRedis [post]
pkg/serve/controller/test_controller.go:72
MethodTestRedis
TestRedis handles redis test
pkg/serve/service/impl/test_service_impl.go:69
FunctionTestReset
(t *testing.T)
internal/ai/internal/selector/selector_test.go:425
FunctionTestResultStructure
(t *testing.T)
internal/utils/vo/vo_utils_test.go:106
FunctionTestSelectWithWait
(t *testing.T)
internal/ai/internal/selector/selector_test.go:556
FunctionTestSelectWithWait_NoProvidersEnabled
(t *testing.T)
internal/ai/internal/selector/selector_test.go:606
← previousnext →101–200 of 229, ranked by callers