MCPcopy Index your code

hub / github.com/dzungtran/echo-rest-api / functions

Functions302 in github.com/dzungtran/echo-rest-api

MethodGetByID
(ctx context.Context, id int64)
modules/projects/repositories/project.go:24
MethodGetByID
(ctx context.Context, id int64)
modules/projects/repositories/project.go:72
FunctionGetColumnsAndValuesFromStruct
(ctx context.Context, st interface{}, callOpts ...CallOptionMapValues)
pkg/sql-tools/query_builder.go:110
MethodGetCurrentUserInfo
GetCurrentUserInfo godoc @Summary Get current user info @Description Get current authenticated user info @Tags auth @Accept json @
modules/core/handlers/user.go:46
FunctionGetLoggerFromContext
(c echo.Context)
pkg/utils/request.go:11
FunctionGetMD5Hash
GetMD5Hash -- get md5 hash from a string
pkg/utils/hashes.go:11
FunctionGetMapValuesFromStruct
GetMapValuesFromStruct For INSERT or UPDATE queries
pkg/sql-tools/query_builder.go:65
FunctionGetSHA256Hash
GetSHA256Hash -- get sha_256 hash from a string
pkg/utils/hashes.go:18
FunctionGetSHA512Hash
GetSHA512Hash -- get sha_512 hash from a string
pkg/utils/hashes.go:25
MethodInfow
(msg string, keysAndValues ...interface{})
pkg/logger/zap.go:26
FunctionInitLog
InitLog override default config
pkg/logger/zap.go:64
MethodInvite
(ctx context.Context, orgId int64, req dto.InviteUsers)
modules/core/usecases/org.go:152
MethodInvite
InviteUsers godoc @Summary Invite users to org @Description Send invitation emails to users to join organization @Tags orgs @Accept
modules/core/handlers/org.go:281
MethodLoginForm
LoginForm godoc @Summary Show login form @Description Renders Firebase login UI @Tags auth @Produce html @Success 200 {string
modules/core/handlers/auth.go:35
MethodLoginSuccess
LoginSuccess godoc @Summary Show login success @Description Renders Firebase login success UI @Tags auth @Produce html @Success
modules/core/handlers/auth.go:50
FunctionNewAccessForbiddenError
NewAccessForbiddenError creates a new error response representing an authorization failure (HTTP 403)
pkg/utils/errors.go:68
FunctionNewMiddlewareManager
NewMiddlewareManager will create new an MiddlewareManager object
pkg/middlewares/middleware.go:34
FunctionNewMock
()
pkg/sql-tools/builder.go:22
FunctionNewOrgUsecase
NewOrgUsecase will create new an orgUsecase object representation of OrgUsecase interface
modules/core/usecases/org.go:36
FunctionNewPSQLStatementBuilder
(db *sqlx.DB)
pkg/sql-tools/builder.go:18
FunctionNewPgsqlOrgRepository
NewPgsqlOrgRepository will create new an orgRepository object representation of OrgRepository interface
modules/core/repositories/org.go:44
FunctionNewPgsqlProjectRepository
NewPgsqlProjectRepository will create new an projectRepository object representation of ProjectRepository interface
modules/projects/repositories/project.go:41
FunctionNewPgsqlUserOrgRepository
NewPgsqlUserOrgRepository will create new an userOrgRepository object representation of UserOrgRepository interface
modules/core/repositories/user_org.go:45
FunctionNewPgsqlUserRepository
NewPgsqlUserRepository will create new an userRepository object representation of UserRepository interface
modules/core/repositories/user.go:43
FunctionNewProjectUsecase
NewProjectUsecase will create new an projectUsecase object representation of ProjectUsecase interface
modules/projects/usecases/project.go:29
FunctionNewSqlxTransaction
(mdbi *datastore.MasterDbInstance)
pkg/sql-tools/transaction.go:8
FunctionNewUserUsecase
NewUserUsecase will create new an userUsecase object representation of UserUsecase interface
modules/core/usecases/user.go:33
MethodPanicf
(template string, args ...interface{})
pkg/logger/zap.go:41
MethodPanicw
(msg string, keysAndValues ...interface{})
pkg/logger/zap.go:42
FunctionParseColumnsForSelect
(cols []string)
pkg/sql-tools/query_builder.go:170
FunctionParseColumnsForSelectWithAlias
(cols []string, alias string)
pkg/sql-tools/query_builder.go:180
MethodPrintf
(format string, v ...interface{})
migrations/embed.go:21
MethodRawError
()
pkg/utils/errors.go:20
MethodRegister
(ctx context.Context, req dto.CreateUserReq)
modules/core/usecases/user.go:117
MethodRegisterHandlers
(g *echo.Group, container *dig.Container)
modules/core/mod.go:30
MethodRegisterHandlers
(g *echo.Group, container *dig.Container)
modules/projects/mod.go:27
FunctionRegisterModule
()
modules/shared/mod.go:3
MethodRegisterRepositories
(container *dig.Container)
modules/core/mod.go:17
MethodRegisterRepositories
(container *dig.Container)
modules/projects/mod.go:17
MethodRegisterUseCases
(container *dig.Container)
modules/core/mod.go:24
MethodRegisterUseCases
(container *dig.Container)
modules/projects/mod.go:22
FunctionSet
(newLog Logger)
pkg/logger/zap.go:80
FunctionTestIsStringContainsAnyKeywords
(t *testing.T)
pkg/utils/strings_test.go:224
FunctionTestIsStringSliceCaseInsensitiveContains
(t *testing.T)
pkg/utils/strings_test.go:201
FunctionTestIsTSliceContains
(t *testing.T)
pkg/utils/generics_test.go:9
FunctionTestLcFirst
(t *testing.T)
pkg/utils/strings_test.go:159
FunctionTestPoliciesForOrgEndpoint
(t *testing.T)
pkg/authz/org_policies_test.go:18
FunctionTestPoliciesForUserEndpoint
(t *testing.T)
pkg/authz/user_policies_test.go:23
FunctionTestRemoveStringSliceContains
(t *testing.T)
pkg/utils/strings_test.go:246
FunctionTestStringSlice
(t *testing.T)
pkg/utils/strings_test.go:178
FunctionTestToCamel
(t *testing.T)
pkg/utils/strings_test.go:56
FunctionTestToKebab
(t *testing.T)
pkg/utils/strings_test.go:33
FunctionTestToLowerCamel
(t *testing.T)
pkg/utils/strings_test.go:76
FunctionTestToScreamingKebab
(t *testing.T)
pkg/utils/strings_test.go:119
FunctionTestToScreamingSnake
(t *testing.T)
pkg/utils/strings_test.go:98
FunctionTestToSnake
(t *testing.T)
pkg/utils/strings_test.go:9
FunctionTestTranslate_CreatedResponse
(t *testing.T)
pkg/wrapper/wrap_test.go:132
FunctionTestTranslate_DefaultStatus
(t *testing.T)
pkg/wrapper/wrap_test.go:201
FunctionTestTranslate_ErrorResponse
(t *testing.T)
pkg/wrapper/wrap_test.go:65
FunctionTestTranslate_ForbiddenResponse
(t *testing.T)
pkg/wrapper/wrap_test.go:110
FunctionTestTranslate_IncludeTotalFalse
(t *testing.T)
pkg/wrapper/wrap_test.go:176
FunctionTestTranslate_NilData
(t *testing.T)
pkg/wrapper/wrap_test.go:154
FunctionTestTranslate_NotFoundResponse
(t *testing.T)
pkg/wrapper/wrap_test.go:88
FunctionTestTranslate_SuccessResponse
(t *testing.T)
pkg/wrapper/wrap_test.go:14
FunctionTestTranslate_SuccessWithMetadata
(t *testing.T)
pkg/wrapper/wrap_test.go:38
FunctionTestTranslate_ValidationError
(t *testing.T)
pkg/wrapper/wrap_test.go:217
FunctionTestUcFirst
(t *testing.T)
pkg/utils/strings_test.go:140
FunctionToCamelInitCaseKeepAll
ToCamelInitCaseKeepAll Converts a string to CamelCase
pkg/utils/strings.go:211
MethodTrigger
(event Event, payload interface{})
pkg/hook/hooker.go:8
MethodTrigger
(payload EventPayload)
pkg/hook/hooker.go:24
MethodTriggerScopedSubscriber
(payload EventPayload)
pkg/hook/hooker.go:64
MethodUpdate
(ctx context.Context, id int64, req dto.UpdateOrgReq)
modules/core/usecases/org.go:127
MethodUpdate
(ctx context.Context, id int64, req dto.UpdateUserReq)
modules/core/usecases/user.go:82
MethodUpdate
UpdateOrgInfo godoc @Summary Update org info @Description Update organization by ID @Tags orgs @Accept json @Produce json @Pa
modules/core/handlers/org.go:188
MethodUpdate
(ctx context.Context, org *domains.Org, fieldsToUpdate []string)
modules/core/repositories/org.go:171
MethodUpdate
(ctx context.Context, user *domains.User, fieldsToUpdate []string)
modules/core/repositories/user.go:140
MethodUpdate
(ctx context.Context, id int64, req dto.UpdateProjectReq)
modules/projects/usecases/project.go:77
MethodUpdate
UpdateProject godoc @Summary Update project @Description Update project by ID @Tags projects @Accept json @Produce json @Para
modules/projects/handlers/project.go:159
MethodUpdate
(ctx context.Context, project *domains.Project, fieldsToUpdate []string)
modules/projects/repositories/project.go:138
MethodUpdateByUserIdAndOrgId
(ctx context.Context, userOrg *domains.UserOrg, fieldsToUpdate []string)
modules/core/repositories/user_org.go:26
MethodUpdateByUserIdAndOrgId
(ctx context.Context, userOrg *domains.UserOrg, fieldsToUpdate []string)
modules/core/repositories/user_org.go:132
MethodUpdateCurrentUserInfo
UpdateCurrentUserInfo godoc @Summary Update current user info @Description Update current authenticated user info @Tags auth @Accept
modules/core/handlers/user.go:65
MethodUpdated
(payload hook.EventPayload)
pkg/hook-subscriber/subscribers/user_subscriber.go:18
MethodVerbose
()
migrations/embed.go:20
MethodVerify
()
modules/core/domains/org.go:24
MethodVerify
()
modules/core/domains/user.go:39
MethodWarn
(args ...interface{})
pkg/logger/zap.go:35
MethodWarnw
(msg string, keysAndValues ...interface{})
pkg/logger/zap.go:34
FunctionWithConfigEncoding
(encoding string)
pkg/logger/zap.go:103
FunctionWithInputResourcePermissions
(resPerms map[string][]string)
pkg/authz/opa.go:133
FunctionWithMapValuesAutoDateTimeFields
(fields []string)
pkg/sql-tools/query_builder.go:51
FunctionWithMapValuesIgnoreFields
(fields []string)
pkg/sql-tools/query_builder.go:38
FunctionWithMapValuesSelectFields
(fields []string)
pkg/sql-tools/query_builder.go:25
Functioninit
()
tools/mod/cmd/root.go:28
Functioninit
()
tools/mod/cmd/modgen.go:165
Functioninit
()
tools/mod/cmd/version.go:23
Functioninit
()
pkg/logger/zap.go:53
Functioninit
()
pkg/authz/opa.go:51
Functioninit
()
docs/docs.go:1363
Functionmain
()
tools/routes/main.go:15
← previousnext →201–300 of 302, ranked by callers