MCPcopy Index your code

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

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

↓ 46 callersFunctionLog
()
pkg/logger/zap.go:76
↓ 28 callersMethodError
(args ...interface{})
pkg/logger/zap.go:39
↓ 17 callersMethodErrorf
(template string, args ...interface{})
pkg/logger/zap.go:37
↓ 15 callersFunctionWrap
(fn EchoHandlerFunc)
pkg/wrapper/wrap.go:44
↓ 14 callersFunctionNewError
NewError creates a new error response
pkg/utils/errors.go:25
↓ 11 callersFunctionTranslate
Translate response
pkg/wrapper/wrap.go:53
↓ 10 callersMethodDBX
()
infrastructure/datastore/sql.go:23
↓ 9 callersFunctionIsSliceContains
(itemSlice []T, searchItem T)
pkg/utils/generics.go:7
↓ 8 callersMethodAuth
()
pkg/middlewares/middleware.go:53
↓ 8 callersFunctionCueValidateObject
Becareful with json ommitempty options. Prefer use CueValidateJson for raw payload before marshal to struct
pkg/utils/cue.go:106
↓ 8 callersMethodFatalf
(template string, args ...interface{})
pkg/logger/zap.go:45
↓ 8 callersMethodGetByID
(ctx context.Context, id int64)
modules/core/usecases/org.go:22
↓ 6 callersFunctionIsDuplicatedError
(err error)
pkg/utils/errors.go:88
↓ 6 callersFunctionisRuneInRange
(chr rune, fromRune rune, toRune rune)
pkg/utils/strings.go:149
↓ 5 callersFunctionCheckPoliciesContext
(c echo.Context, callOpts ...CallOPAInputOption)
pkg/authz/opa.go:258
↓ 5 callersMethodFatal
(args ...interface{})
pkg/logger/zap.go:47
↓ 5 callersFunctionGetUserFromContext
(c echo.Context)
pkg/contexts/utils.go:10
↓ 5 callersFunctionNewNotFoundError
NewNotFoundError creates a new error response representing a resource-not-found error (HTTP 404)
pkg/utils/errors.go:76
↓ 4 callersMethodDelete
(ctx context.Context, id int64)
modules/core/usecases/org.go:25
↓ 4 callersMethodErrorw
(msg string, keysAndValues ...interface{})
pkg/logger/zap.go:38
↓ 4 callersMethodFatalw
(msg string, keysAndValues ...interface{})
pkg/logger/zap.go:46
↓ 4 callersMethodFetch
(ctx context.Context, req dto.SearchOrgsReq)
modules/core/usecases/org.go:23
↓ 4 callersMethodGetByID
(ctx context.Context, id int64)
modules/core/usecases/user.go:18
↓ 4 callersMethodGetByID
(ctx context.Context, id int64)
modules/projects/usecases/project.go:18
↓ 4 callersFunctionGetHttpStatusCodeByErrorType
(err error, defaultCode int)
pkg/utils/errors.go:97
↓ 4 callersMethodInfo
(args ...interface{})
pkg/logger/zap.go:27
↓ 4 callersFunctionWithInputExtraData
(key string, data interface{})
pkg/authz/opa.go:181
↓ 3 callersFunctionCheckPolicies
(user *domains.UserWithRoles, callOpts ...CallOPAInputOption)
pkg/authz/opa.go:200
↓ 3 callersMethodCheckPolicies
()
pkg/middlewares/middleware.go:89
↓ 3 callersMethodClose
()
pkg/sql-tools/builder.go:14
↓ 3 callersMethodCreated
(payload EventPayload)
pkg/hook/subscriber.go:4
↓ 3 callersMethodDebugw
(msg string, keysAndValues ...interface{})
pkg/logger/zap.go:30
↓ 3 callersMethodDeleted
(payload EventPayload)
pkg/hook/subscriber.go:6
↓ 3 callersFunctionGetResourceIdFromParam
(c echo.Context, paramName string)
pkg/utils/request.go:19
↓ 3 callersFunctionIsCueError
(err error)
pkg/utils/errors.go:83
↓ 3 callersFunctionToScreamingDelimited
ToScreamingDelimited Converts a string to SCREAMING.DELIMITED.SNAKE.CASE (in this case `del = '.'; screaming = true`) or delimited.snake.case (in this
pkg/utils/strings.go:107
↓ 3 callersMethodUpdated
(payload EventPayload)
pkg/hook/subscriber.go:5
↓ 3 callersFunctionWithInputRequestEndpoint
(reqEndpoint string)
pkg/authz/opa.go:170
↓ 3 callersFunctionWithInputRequestMethod
(reqMethod string)
pkg/authz/opa.go:159
↓ 3 callersFunctionaddWordBoundariesToNumbers
(s string)
pkg/utils/strings.go:241
↓ 3 callersFunctionreadRegoFiles
(dfs embed.FS, folderName string, filesContent map[string]string)
pkg/authz/opa.go:108
↓ 2 callersFunctionBuildDIContainer
( mdbi *datastore.MasterDbInstance, sdbi *datastore.SlaveDbInstance, conf *config.AppConfig, )
cmd/api/di/di.go:18
↓ 2 callersMethodCheckPoliciesWithRequestPayload
NOTES: everywhen we call this function, we should pass a new instance of payloadInst to avoid race condition
pkg/middlewares/middleware.go:174
↓ 2 callersMethodCreate
(ctx context.Context, request dto.CreateUserReq)
modules/core/usecases/user.go:17
↓ 2 callersMethodCreate
(ctx context.Context, request dto.CreateProjectReq)
modules/projects/usecases/project.go:17
↓ 2 callersMethodCreateWithTx
(ctx context.Context, tx *sqlx.Tx, org *domains.Org)
modules/core/repositories/org.go:24
↓ 2 callersMethodDBX
()
infrastructure/datastore/sql.go:15
↓ 2 callersMethodDebugf
(template string, args ...interface{})
pkg/logger/zap.go:29
↓ 2 callersMethodDelete
(ctx context.Context, id int64)
modules/projects/usecases/project.go:21
↓ 2 callersMethodDeleteById
(ctx context.Context, id int64)
modules/core/repositories/org.go:28
↓ 2 callersMethodFetch
(ctx context.Context, req dto.SearchProjectsReq)
modules/projects/usecases/project.go:19
↓ 2 callersFunctionGenerateLongUUID
()
pkg/utils/uuid.go:12
↓ 2 callersMethodGetByCode
(ctx context.Context, code string)
modules/core/usecases/user.go:22
↓ 2 callersMethodGetByEmail
(ctx context.Context, email string)
modules/core/usecases/user.go:23
↓ 2 callersMethodInfof
(template string, args ...interface{})
pkg/logger/zap.go:25
↓ 2 callersFunctionNewMasterDbInstance
(databaseURL string)
infrastructure/datastore/sql.go:27
↓ 2 callersFunctionNewSqlXInstance
NewDatabase will create new database instance
infrastructure/datastore/sql.go:40
↓ 2 callersMethodRegister
(ctx context.Context, request dto.CreateUserReq)
modules/core/usecases/user.go:24
↓ 2 callersFunctionRegisterModules
(e *echo.Echo, container *dig.Container)
cmd/api/di/di.go:38
↓ 2 callersMethodRender
(w io.Writer, name string, data interface{}, c echo.Context)
cmd/api/main.go:27
↓ 2 callersFunctionRequireResourceIdInParam
(paramName string)
pkg/middlewares/functions.go:12
↓ 2 callersFunctionStringSlice
StringSlice -- slice string by separate
pkg/utils/strings.go:69
↓ 2 callersFunctionToDelimited
ToDelimited Converts a string to delimited.snake.case (in this case `del = '.'`)
pkg/utils/strings.go:102
↓ 2 callersFunctionToKebab
ToKebab Converts a string to kebab-case
pkg/utils/strings.go:92
↓ 2 callersFunctionToSnake
ToSnake Converts a string to snake_case
pkg/utils/strings.go:82
↓ 2 callersMethodUpdate
(ctx context.Context, id int64, request dto.UpdateOrgReq)
modules/core/usecases/org.go:24
↓ 2 callersMethodUpdate
(ctx context.Context, org *domains.Org, fieldsToUpdate []string)
modules/core/repositories/org.go:27
↓ 2 callersMethodUpdate
(ctx context.Context, id int64, request dto.UpdateProjectReq)
modules/projects/usecases/project.go:20
↓ 2 callersMethodValidate
(i interface{})
config/app.go:43
↓ 2 callersFunctionWithInputOrg
(org *domains.Org)
pkg/authz/opa.go:192
↓ 2 callersFunctionappliedFieldSelectOption
(callOptions []CallOptionMapValues)
pkg/sql-tools/query_builder.go:195
↓ 2 callersMethodfetchUserFromAuth
(ctx context.Context, code, email string)
pkg/middlewares/middleware.go:211
↓ 2 callersFunctiongetKeyFromTag
getKeyFromTag -- get db key from struct db tag
pkg/sql-tools/query_builder.go:208
↓ 2 callersFunctiontoCamelInitCase
Converts a string to CamelCase
pkg/utils/strings.go:166
↓ 1 callersMethodCheckPoliciesWithOrg
()
pkg/middlewares/middleware.go:107
↓ 1 callersMethodCheckPoliciesWithProject
()
pkg/middlewares/middleware.go:140
↓ 1 callersMethodCreate
(ctx context.Context, request dto.CreateOrgReq)
modules/core/usecases/org.go:21
↓ 1 callersMethodCreate
(ctx context.Context, req dto.CreateUserReq)
modules/core/usecases/user.go:40
↓ 1 callersFunctionCueValidateJson
CueValidateJson - Simple func to validate json by cue definitions Parameters: - schemaName: Main cue schema name to eval - cueDef: Cue document, conta
pkg/utils/cue.go:70
↓ 1 callersMethodDeleteById
(ctx context.Context, id int64)
modules/projects/repositories/project.go:27
↓ 1 callersFunctionExecute
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the r
tools/mod/cmd/root.go:21
↓ 1 callersMethodFetch
(ctx context.Context, req dto.SearchUsersReq)
modules/core/usecases/user.go:19
↓ 1 callersMethodFireBaseAuth
(next echo.HandlerFunc)
pkg/middlewares/firebase_auth.go:14
↓ 1 callersFunctionGetCoreTemplates
()
cmd/api/di/di.go:77
↓ 1 callersFunctionGetEchoLogConfig
(appConf *AppConfig)
config/echo.go:9
↓ 1 callersFunctionGetFunctionName
(i interface{})
pkg/utils/fault_tolerance.go:11
↓ 1 callersFunctionGetOrgFromContext
(c echo.Context)
pkg/contexts/utils.go:19
↓ 1 callersMethodGetOrgIds
()
modules/core/domains/user_org.go:32
↓ 1 callersFunctionGetProjectFromContext
(c echo.Context)
pkg/contexts/utils.go:27
↓ 1 callersMethodInit
()
pkg/sql-tools/transaction.go:18
↓ 1 callersFunctionInitAppConfig
()
config/app.go:50
↓ 1 callersFunctionInitWithOptions
(cnf ...CallLogOption)
pkg/logger/zap.go:111
↓ 1 callersMethodInvite
(ctx context.Context, id int64, request dto.InviteUsers)
modules/core/usecases/org.go:26
↓ 1 callersFunctionIsStringContainsAnyKeywords
(s string, keywords []string)
pkg/utils/strings.go:46
↓ 1 callersFunctionIsStringSliceCaseInsensitiveContains
IsStringSliceCaseInsensitiveContains -- check slice contain string
pkg/utils/strings.go:37
↓ 1 callersFunctionLcFirst
LcFirst Lower case first char
pkg/utils/strings.go:160
↓ 1 callersFunctionNewAuthHandler
(g *echo.Group, middManager *middlewares.MiddlewareManager, userUsecase usecases.UserUsecase, appCfgs *config.
modules/core/handlers/auth.go:17
↓ 1 callersFunctionNewOrgHandler
NewOrgHandler will initialize the org resources endpoint
modules/core/handlers/org.go:25
↓ 1 callersFunctionNewProjectHandler
NewProjectHandler will initialize the project resources endpoint
modules/projects/handlers/project.go:24
↓ 1 callersFunctionNewSlaveDbInstance
(databaseURL string)
infrastructure/datastore/sql.go:33
next →1–100 of 302, ranked by callers