Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mindinventory/Golang-Project-Structure
/ functions
Functions
48 in github.com/Mindinventory/Golang-Project-Structure
⨍
Functions
48
◇
Types & classes
16
↓ 6 callers
Method
Version
Version is the sortable number of the migration.
common/database/migrations.go:45
↓ 4 callers
Function
RespondWithError
(c *gin.Context, code int, cause string)
common/helpers/response.go:9
↓ 3 callers
Function
ExecuteBatch
(ctx context.Context, batch *pgx.Batch, action string, verify bool)
common/database/postgres.go:190
↓ 3 callers
Method
Filename
Filename is the base name of the migration path with the directory removed.
common/database/migrations.go:30
↓ 2 callers
Function
GetLogger
See: https://github.com/evry/go-negroni-zap-middleware
common/logging/zapDriver.go:16
↓ 2 callers
Method
Name
Name is the name of the migration.
common/database/migrations.go:35
↓ 2 callers
Function
createConnectionPool
(config *pgxpool.Config)
common/database/postgres.go:90
↓ 2 callers
Function
getConfig
(dbConfig DbConfig)
common/database/postgres.go:55
↓ 1 callers
Function
AddRoutes
(r *gin.Engine, config *Config)
service/routes.go:14
↓ 1 callers
Method
BearerAuth
(c *gin.Context)
common/middleware/auth.go:61
↓ 1 callers
Function
GetConnectionPool
()
common/database/postgres.go:110
↓ 1 callers
Function
GetUserById
(ctx context.Context, userId *uuid.UUID)
repository/user.go:18
↓ 1 callers
Method
Len
()
common/database/migrations.go:23
↓ 1 callers
Function
NewHandler
(config *service.Config)
handler.go:16
↓ 1 callers
Function
NewRequestAuth
The request logger takes the preconfigured logger used by the app logging
common/middleware/auth.go:42
↓ 1 callers
Function
NewRequestLogger
The request logger takes the preconfigured logger used by the app logging
common/middleware/zapdriver.go:19
↓ 1 callers
Method
SQL
SQL returns the string SQL for passing to (*sql.DB).Exec().
common/database/migrations.go:63
↓ 1 callers
Function
SetupDefaultEndpoints
(r *gin.Engine, config *Config)
service/routes.go:25
↓ 1 callers
Function
SetupLogger
(environment string)
common/logging/zapDriver.go:32
↓ 1 callers
Method
Status
Status godoc @Summary Status @Description service status @Tags system @Produce json @Success 200 {object} response.StatusResponse @Failure 500 {object
service/status.go:19
↓ 1 callers
Method
URL
()
common/database/postgres.go:38
↓ 1 callers
Function
abortAuthenticationFailed
(c *gin.Context)
common/middleware/auth.go:34
Function
ClosePool
()
common/database/postgres.go:117
Function
CountRowsAndLastId
(ctx context.Context, table string, descending bool, ch chan RowsAndCount)
common/database/postgres.go:125
Function
CreateConnectionPool
(dbConfig DbConfig)
common/database/postgres.go:80
Function
CreateConnectionPoolWithConnectionLimit
(dbConfig DbConfig, maxConnections int)
common/database/postgres.go:71
Function
CustomTimeoutContext
(seconds int)
common/database/context.go:17
Function
DefaultTimeoutContext
()
common/database/context.go:12
Function
DeleteBatch
(ctx context.Context, batch *pgx.Batch)
common/database/postgres.go:186
Function
GetRequestLogger
(c *gin.Context)
common/logging/zapDriver.go:21
Method
GetUser
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
Function
InsertBatch
(ctx context.Context, batch *pgx.Batch)
common/database/postgres.go:178
Method
Less
(i, j int)
common/database/migrations.go:25
Function
LoadMigrations
(path string)
common/database/migrations.go:67
Method
Middleware
(c *gin.Context)
common/middleware/auth.go:48
Method
Middleware
(c *gin.Context)
common/middleware/zapdriver.go:29
Method
PanicRecovery
(c *gin.Context, recovered interface{})
service/panic.go:11
Method
Swap
(i, j int)
common/database/migrations.go:24
Function
TestDbConfigFromEnv
()
common/database/testconfig.go:10
Function
TestMigration_Filename
(t *testing.T)
common/database/migrations_test.go:24
Function
TestMigration_Name
(t *testing.T)
common/database/migrations_test.go:29
Function
TestMigration_SQL
(t *testing.T)
common/database/migrations_test.go:34
Function
TestMigration_Version
(t *testing.T)
common/database/migrations_test.go:40
Function
TestMigrations_Sort
(t *testing.T)
common/database/migrations_test.go:10
Function
UpdateBatch
(ctx context.Context, batch *pgx.Batch)
common/database/postgres.go:182
Function
init
()
docs/docs.go:138
Function
main
* @title Golang-Program-Structure @version 1.0 @description Golang-Program-Structure @contact.name Golang-Program-Structure Support @contact.url http:
main.go:32
Function
resetPool
()
common/database/postgres.go:66