MCPcopy Create free account

hub / github.com/Mindinventory/Golang-Project-Structure / functions

Functions48 in github.com/Mindinventory/Golang-Project-Structure

↓ 6 callersMethodVersion
Version is the sortable number of the migration.
common/database/migrations.go:45
↓ 4 callersFunctionRespondWithError
(c *gin.Context, code int, cause string)
common/helpers/response.go:9
↓ 3 callersFunctionExecuteBatch
(ctx context.Context, batch *pgx.Batch, action string, verify bool)
common/database/postgres.go:190
↓ 3 callersMethodFilename
Filename is the base name of the migration path with the directory removed.
common/database/migrations.go:30
↓ 2 callersFunctionGetLogger
See: https://github.com/evry/go-negroni-zap-middleware
common/logging/zapDriver.go:16
↓ 2 callersMethodName
Name is the name of the migration.
common/database/migrations.go:35
↓ 2 callersFunctioncreateConnectionPool
(config *pgxpool.Config)
common/database/postgres.go:90
↓ 2 callersFunctiongetConfig
(dbConfig DbConfig)
common/database/postgres.go:55
↓ 1 callersFunctionAddRoutes
(r *gin.Engine, config *Config)
service/routes.go:14
↓ 1 callersMethodBearerAuth
(c *gin.Context)
common/middleware/auth.go:61
↓ 1 callersFunctionGetConnectionPool
()
common/database/postgres.go:110
↓ 1 callersFunctionGetUserById
(ctx context.Context, userId *uuid.UUID)
repository/user.go:18
↓ 1 callersMethodLen
()
common/database/migrations.go:23
↓ 1 callersFunctionNewHandler
(config *service.Config)
handler.go:16
↓ 1 callersFunctionNewRequestAuth
The request logger takes the preconfigured logger used by the app logging
common/middleware/auth.go:42
↓ 1 callersFunctionNewRequestLogger
The request logger takes the preconfigured logger used by the app logging
common/middleware/zapdriver.go:19
↓ 1 callersMethodSQL
SQL returns the string SQL for passing to (*sql.DB).Exec().
common/database/migrations.go:63
↓ 1 callersFunctionSetupDefaultEndpoints
(r *gin.Engine, config *Config)
service/routes.go:25
↓ 1 callersFunctionSetupLogger
(environment string)
common/logging/zapDriver.go:32
↓ 1 callersMethodStatus
Status godoc @Summary Status @Description service status @Tags system @Produce json @Success 200 {object} response.StatusResponse @Failure 500 {object
service/status.go:19
↓ 1 callersMethodURL
()
common/database/postgres.go:38
↓ 1 callersFunctionabortAuthenticationFailed
(c *gin.Context)
common/middleware/auth.go:34
FunctionClosePool
()
common/database/postgres.go:117
FunctionCountRowsAndLastId
(ctx context.Context, table string, descending bool, ch chan RowsAndCount)
common/database/postgres.go:125
FunctionCreateConnectionPool
(dbConfig DbConfig)
common/database/postgres.go:80
FunctionCreateConnectionPoolWithConnectionLimit
(dbConfig DbConfig, maxConnections int)
common/database/postgres.go:71
FunctionCustomTimeoutContext
(seconds int)
common/database/context.go:17
FunctionDefaultTimeoutContext
()
common/database/context.go:12
FunctionDeleteBatch
(ctx context.Context, batch *pgx.Batch)
common/database/postgres.go:186
FunctionGetRequestLogger
(c *gin.Context)
common/logging/zapDriver.go:21
MethodGetUser
GetUser godoc @Summary Get a user @Description get user by user id @Tags user @Param userId path string true "User ID" @Accept json @Produce json @Suc
service/user.go:27
FunctionInsertBatch
(ctx context.Context, batch *pgx.Batch)
common/database/postgres.go:178
MethodLess
(i, j int)
common/database/migrations.go:25
FunctionLoadMigrations
(path string)
common/database/migrations.go:67
MethodMiddleware
(c *gin.Context)
common/middleware/auth.go:48
MethodMiddleware
(c *gin.Context)
common/middleware/zapdriver.go:29
MethodPanicRecovery
(c *gin.Context, recovered interface{})
service/panic.go:11
MethodSwap
(i, j int)
common/database/migrations.go:24
FunctionTestDbConfigFromEnv
()
common/database/testconfig.go:10
FunctionTestMigration_Filename
(t *testing.T)
common/database/migrations_test.go:24
FunctionTestMigration_Name
(t *testing.T)
common/database/migrations_test.go:29
FunctionTestMigration_SQL
(t *testing.T)
common/database/migrations_test.go:34
FunctionTestMigration_Version
(t *testing.T)
common/database/migrations_test.go:40
FunctionTestMigrations_Sort
(t *testing.T)
common/database/migrations_test.go:10
FunctionUpdateBatch
(ctx context.Context, batch *pgx.Batch)
common/database/postgres.go:182
Functioninit
()
docs/docs.go:138
Functionmain
* @title Golang-Program-Structure @version 1.0 @description Golang-Program-Structure @contact.name Golang-Program-Structure Support @contact.url http:
main.go:32
FunctionresetPool
()
common/database/postgres.go:66