Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dzungtran/echo-rest-api
/ functions
Functions
302 in github.com/dzungtran/echo-rest-api
⨍
Functions
302
◇
Types & classes
81
Method
GetByID
(ctx context.Context, id int64)
modules/projects/repositories/project.go:24
Method
GetByID
(ctx context.Context, id int64)
modules/projects/repositories/project.go:72
Function
GetColumnsAndValuesFromStruct
(ctx context.Context, st interface{}, callOpts ...CallOptionMapValues)
pkg/sql-tools/query_builder.go:110
Method
GetCurrentUserInfo
GetCurrentUserInfo godoc @Summary Get current user info @Description Get current authenticated user info @Tags auth @Accept json @
modules/core/handlers/user.go:46
Function
GetLoggerFromContext
(c echo.Context)
pkg/utils/request.go:11
Function
GetMD5Hash
GetMD5Hash -- get md5 hash from a string
pkg/utils/hashes.go:11
Function
GetMapValuesFromStruct
GetMapValuesFromStruct For INSERT or UPDATE queries
pkg/sql-tools/query_builder.go:65
Function
GetSHA256Hash
GetSHA256Hash -- get sha_256 hash from a string
pkg/utils/hashes.go:18
Function
GetSHA512Hash
GetSHA512Hash -- get sha_512 hash from a string
pkg/utils/hashes.go:25
Method
Infow
(msg string, keysAndValues ...interface{})
pkg/logger/zap.go:26
Function
InitLog
InitLog override default config
pkg/logger/zap.go:64
Method
Invite
(ctx context.Context, orgId int64, req dto.InviteUsers)
modules/core/usecases/org.go:152
Method
Invite
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
Method
LoginForm
LoginForm godoc @Summary Show login form @Description Renders Firebase login UI @Tags auth @Produce html @Success 200 {string
modules/core/handlers/auth.go:35
Method
LoginSuccess
LoginSuccess godoc @Summary Show login success @Description Renders Firebase login success UI @Tags auth @Produce html @Success
modules/core/handlers/auth.go:50
Function
NewAccessForbiddenError
NewAccessForbiddenError creates a new error response representing an authorization failure (HTTP 403)
pkg/utils/errors.go:68
Function
NewMiddlewareManager
NewMiddlewareManager will create new an MiddlewareManager object
pkg/middlewares/middleware.go:34
Function
NewMock
()
pkg/sql-tools/builder.go:22
Function
NewOrgUsecase
NewOrgUsecase will create new an orgUsecase object representation of OrgUsecase interface
modules/core/usecases/org.go:36
Function
NewPSQLStatementBuilder
(db *sqlx.DB)
pkg/sql-tools/builder.go:18
Function
NewPgsqlOrgRepository
NewPgsqlOrgRepository will create new an orgRepository object representation of OrgRepository interface
modules/core/repositories/org.go:44
Function
NewPgsqlProjectRepository
NewPgsqlProjectRepository will create new an projectRepository object representation of ProjectRepository interface
modules/projects/repositories/project.go:41
Function
NewPgsqlUserOrgRepository
NewPgsqlUserOrgRepository will create new an userOrgRepository object representation of UserOrgRepository interface
modules/core/repositories/user_org.go:45
Function
NewPgsqlUserRepository
NewPgsqlUserRepository will create new an userRepository object representation of UserRepository interface
modules/core/repositories/user.go:43
Function
NewProjectUsecase
NewProjectUsecase will create new an projectUsecase object representation of ProjectUsecase interface
modules/projects/usecases/project.go:29
Function
NewSqlxTransaction
(mdbi *datastore.MasterDbInstance)
pkg/sql-tools/transaction.go:8
Function
NewUserUsecase
NewUserUsecase will create new an userUsecase object representation of UserUsecase interface
modules/core/usecases/user.go:33
Method
Panicf
(template string, args ...interface{})
pkg/logger/zap.go:41
Method
Panicw
(msg string, keysAndValues ...interface{})
pkg/logger/zap.go:42
Function
ParseColumnsForSelect
(cols []string)
pkg/sql-tools/query_builder.go:170
Function
ParseColumnsForSelectWithAlias
(cols []string, alias string)
pkg/sql-tools/query_builder.go:180
Method
Printf
(format string, v ...interface{})
migrations/embed.go:21
Method
RawError
()
pkg/utils/errors.go:20
Method
Register
(ctx context.Context, req dto.CreateUserReq)
modules/core/usecases/user.go:117
Method
RegisterHandlers
(g *echo.Group, container *dig.Container)
modules/core/mod.go:30
Method
RegisterHandlers
(g *echo.Group, container *dig.Container)
modules/projects/mod.go:27
Function
RegisterModule
()
modules/shared/mod.go:3
Method
RegisterRepositories
(container *dig.Container)
modules/core/mod.go:17
Method
RegisterRepositories
(container *dig.Container)
modules/projects/mod.go:17
Method
RegisterUseCases
(container *dig.Container)
modules/core/mod.go:24
Method
RegisterUseCases
(container *dig.Container)
modules/projects/mod.go:22
Function
Set
(newLog Logger)
pkg/logger/zap.go:80
Function
TestIsStringContainsAnyKeywords
(t *testing.T)
pkg/utils/strings_test.go:224
Function
TestIsStringSliceCaseInsensitiveContains
(t *testing.T)
pkg/utils/strings_test.go:201
Function
TestIsTSliceContains
(t *testing.T)
pkg/utils/generics_test.go:9
Function
TestLcFirst
(t *testing.T)
pkg/utils/strings_test.go:159
Function
TestPoliciesForOrgEndpoint
(t *testing.T)
pkg/authz/org_policies_test.go:18
Function
TestPoliciesForUserEndpoint
(t *testing.T)
pkg/authz/user_policies_test.go:23
Function
TestRemoveStringSliceContains
(t *testing.T)
pkg/utils/strings_test.go:246
Function
TestStringSlice
(t *testing.T)
pkg/utils/strings_test.go:178
Function
TestToCamel
(t *testing.T)
pkg/utils/strings_test.go:56
Function
TestToKebab
(t *testing.T)
pkg/utils/strings_test.go:33
Function
TestToLowerCamel
(t *testing.T)
pkg/utils/strings_test.go:76
Function
TestToScreamingKebab
(t *testing.T)
pkg/utils/strings_test.go:119
Function
TestToScreamingSnake
(t *testing.T)
pkg/utils/strings_test.go:98
Function
TestToSnake
(t *testing.T)
pkg/utils/strings_test.go:9
Function
TestTranslate_CreatedResponse
(t *testing.T)
pkg/wrapper/wrap_test.go:132
Function
TestTranslate_DefaultStatus
(t *testing.T)
pkg/wrapper/wrap_test.go:201
Function
TestTranslate_ErrorResponse
(t *testing.T)
pkg/wrapper/wrap_test.go:65
Function
TestTranslate_ForbiddenResponse
(t *testing.T)
pkg/wrapper/wrap_test.go:110
Function
TestTranslate_IncludeTotalFalse
(t *testing.T)
pkg/wrapper/wrap_test.go:176
Function
TestTranslate_NilData
(t *testing.T)
pkg/wrapper/wrap_test.go:154
Function
TestTranslate_NotFoundResponse
(t *testing.T)
pkg/wrapper/wrap_test.go:88
Function
TestTranslate_SuccessResponse
(t *testing.T)
pkg/wrapper/wrap_test.go:14
Function
TestTranslate_SuccessWithMetadata
(t *testing.T)
pkg/wrapper/wrap_test.go:38
Function
TestTranslate_ValidationError
(t *testing.T)
pkg/wrapper/wrap_test.go:217
Function
TestUcFirst
(t *testing.T)
pkg/utils/strings_test.go:140
Function
ToCamelInitCaseKeepAll
ToCamelInitCaseKeepAll Converts a string to CamelCase
pkg/utils/strings.go:211
Method
Trigger
(event Event, payload interface{})
pkg/hook/hooker.go:8
Method
Trigger
(payload EventPayload)
pkg/hook/hooker.go:24
Method
TriggerScopedSubscriber
(payload EventPayload)
pkg/hook/hooker.go:64
Method
Update
(ctx context.Context, id int64, req dto.UpdateOrgReq)
modules/core/usecases/org.go:127
Method
Update
(ctx context.Context, id int64, req dto.UpdateUserReq)
modules/core/usecases/user.go:82
Method
Update
UpdateOrgInfo godoc @Summary Update org info @Description Update organization by ID @Tags orgs @Accept json @Produce json @Pa
modules/core/handlers/org.go:188
Method
Update
(ctx context.Context, org *domains.Org, fieldsToUpdate []string)
modules/core/repositories/org.go:171
Method
Update
(ctx context.Context, user *domains.User, fieldsToUpdate []string)
modules/core/repositories/user.go:140
Method
Update
(ctx context.Context, id int64, req dto.UpdateProjectReq)
modules/projects/usecases/project.go:77
Method
Update
UpdateProject godoc @Summary Update project @Description Update project by ID @Tags projects @Accept json @Produce json @Para
modules/projects/handlers/project.go:159
Method
Update
(ctx context.Context, project *domains.Project, fieldsToUpdate []string)
modules/projects/repositories/project.go:138
Method
UpdateByUserIdAndOrgId
(ctx context.Context, userOrg *domains.UserOrg, fieldsToUpdate []string)
modules/core/repositories/user_org.go:26
Method
UpdateByUserIdAndOrgId
(ctx context.Context, userOrg *domains.UserOrg, fieldsToUpdate []string)
modules/core/repositories/user_org.go:132
Method
UpdateCurrentUserInfo
UpdateCurrentUserInfo godoc @Summary Update current user info @Description Update current authenticated user info @Tags auth @Accept
modules/core/handlers/user.go:65
Method
Updated
(payload hook.EventPayload)
pkg/hook-subscriber/subscribers/user_subscriber.go:18
Method
Verbose
()
migrations/embed.go:20
Method
Verify
()
modules/core/domains/org.go:24
Method
Verify
()
modules/core/domains/user.go:39
Method
Warn
(args ...interface{})
pkg/logger/zap.go:35
Method
Warnw
(msg string, keysAndValues ...interface{})
pkg/logger/zap.go:34
Function
WithConfigEncoding
(encoding string)
pkg/logger/zap.go:103
Function
WithInputResourcePermissions
(resPerms map[string][]string)
pkg/authz/opa.go:133
Function
WithMapValuesAutoDateTimeFields
(fields []string)
pkg/sql-tools/query_builder.go:51
Function
WithMapValuesIgnoreFields
(fields []string)
pkg/sql-tools/query_builder.go:38
Function
WithMapValuesSelectFields
(fields []string)
pkg/sql-tools/query_builder.go:25
Function
init
()
tools/mod/cmd/root.go:28
Function
init
()
tools/mod/cmd/modgen.go:165
Function
init
()
tools/mod/cmd/version.go:23
Function
init
()
pkg/logger/zap.go:53
Function
init
()
pkg/authz/opa.go:51
Function
init
()
docs/docs.go:1363
Function
main
()
tools/routes/main.go:15
← previous
next →
201–300 of 302, ranked by callers