Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Creatly/creatly-backend
/ functions
Functions
1,083 in github.com/Creatly/creatly-backend
⨍
Functions
1,083
◇
Types & classes
319
↓ 266 callers
Function
newResponse
(c *gin.Context, statusCode int, message string)
internal/delivery/http/v1/response.go:21
↓ 197 callers
Method
Error
(msg string, params map[string]interface{})
pkg/logger/logger.go:7
↓ 63 callers
Method
Set
(key, value interface{}, ttl int64)
pkg/cache/cache.go:4
↓ 51 callers
Function
getSchoolFromContext
(c *gin.Context)
internal/delivery/http/v1/middleware.go:53
↓ 44 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/service/mocks/mock.go:36
↓ 40 callers
Method
GetById
(ctx context.Context, lessonId primitive.ObjectID)
internal/service/service.go:280
↓ 30 callers
Function
parseIdFromPath
(c *gin.Context, param string)
internal/delivery/http/v1/handler.go:39
↓ 26 callers
Method
Create
(ctx context.Context, inp AddLessonInput)
internal/service/service.go:279
↓ 24 callers
Method
Init
(cfg *config.Config)
internal/delivery/http/handler.go:30
↓ 18 callers
Method
Hash
(password string)
pkg/hash/password.go:10
↓ 18 callers
Method
Run
()
internal/server/server.go:26
↓ 17 callers
Method
Delete
(ctx context.Context, schoolId, id primitive.ObjectID)
internal/service/service.go:282
↓ 15 callers
Method
Update
(ctx context.Context, inp UpdateLessonInput)
internal/service/service.go:281
↓ 12 callers
Function
Error
(msg ...interface{})
pkg/logger/logrus.go:33
↓ 11 callers
Method
getJwt
(userId primitive.ObjectID)
tests/students_test.go:398
↓ 10 callers
Method
GetBySchool
(ctx context.Context, schoolId primitive.ObjectID, pagination domain.GetOrdersQuery)
internal/repository/repository.go:168
↓ 9 callers
Method
Get
(key interface{})
pkg/cache/cache.go:5
↓ 9 callers
Function
mockAdminService
(t *testing.T)
internal/service/admins_test.go:21
↓ 8 callers
Method
GetByIds
(ctx context.Context, ids []primitive.ObjectID)
internal/repository/repository.go:153
↓ 8 callers
Function
Infof
(format string, args ...interface{})
pkg/logger/logrus.go:21
↓ 7 callers
Function
Errorf
(format string, args ...interface{})
pkg/logger/logrus.go:37
↓ 7 callers
Method
Parse
(accessToken string)
pkg/auth/manager.go:15
↓ 6 callers
Method
GetByPackages
(ctx context.Context, packageIds []primitive.ObjectID)
internal/repository/repository.go:152
↓ 6 callers
Method
SetSession
(ctx context.Context, userID primitive.ObjectID, session domain.Session)
internal/repository/repository.go:22
↓ 5 callers
Method
GetByCredentials
(ctx context.Context, email, password string)
internal/repository/repository.go:19
↓ 5 callers
Method
GetByRefreshToken
(ctx context.Context, refreshToken string)
internal/repository/repository.go:20
↓ 5 callers
Method
RefreshTokens
(ctx context.Context, refreshToken string)
internal/service/service.go:49
↓ 5 callers
Method
SignIn
(ctx context.Context, input UserSignInInput)
internal/service/service.go:48
↓ 5 callers
Method
UpdateSettings
(ctx context.Context, id primitive.ObjectID, inp domain.UpdateSchoolSettingsInput)
internal/repository/repository.go:30
↓ 5 callers
Function
getStudentId
(c *gin.Context)
internal/delivery/http/v1/middleware.go:112
↓ 5 callers
Function
sortLessons
(lessons []domain.Lesson)
internal/service/modules.go:193
↓ 4 callers
Method
GetByCode
(ctx context.Context, schoolId primitive.ObjectID, code string)
internal/repository/repository.go:160
↓ 4 callers
Method
GetByCourse
(ctx context.Context, courseId primitive.ObjectID)
internal/service/service.go:229
↓ 4 callers
Method
GetByLesson
(ctx context.Context, lessonID primitive.ObjectID)
internal/repository/repository.go:104
↓ 4 callers
Method
GetByModule
(ctx context.Context, schoolId, moduleId primitive.ObjectID)
internal/service/service.go:228
↓ 4 callers
Method
GetCourseById
(ctx context.Context, schoolId, courseId primitive.ObjectID)
internal/service/service.go:114
↓ 4 callers
Method
GetModuleContent
(ctx context.Context, schoolId, studentId, moduleId primitive.ObjectID)
internal/service/service.go:96
↓ 4 callers
Method
NewJWT
(userId string, ttl time.Duration)
pkg/auth/manager.go:14
↓ 4 callers
Method
SetLessonFinished
(ctx context.Context, studentId, lessonId primitive.ObjectID)
internal/service/service.go:98
↓ 4 callers
Method
UpdateStatus
(ctx context.Context, fileName string, status domain.FileStatus)
internal/repository/repository.go:175
↓ 4 callers
Method
UploadAndSaveFile
(ctx context.Context, file domain.File)
internal/service/service.go:130
↓ 4 callers
Method
Verify
(ctx context.Context, userID primitive.ObjectID, code string)
internal/repository/repository.go:21
↓ 4 callers
Function
stringArrayToObjectId
(stringIds []string)
internal/service/packages.go:140
↓ 4 callers
Function
stringPtr
(s string)
internal/delivery/http/v1/admins_test.go:644
↓ 3 callers
Method
DeleteContent
(ctx context.Context, schoolId primitive.ObjectID, lessonIds []primitive.ObjectID)
internal/service/service.go:283
↓ 3 callers
Method
GeneratePaymentLink
(ctx context.Context, orderId primitive.ObjectID)
internal/service/service.go:318
↓ 3 callers
Method
GetCourses
(ctx context.Context, schoolId primitive.ObjectID)
internal/service/service.go:113
↓ 3 callers
Method
GetPublishedByCourseId
(ctx context.Context, courseId primitive.ObjectID)
internal/repository/repository.go:95
↓ 3 callers
Method
NewRefreshToken
()
pkg/auth/manager.go:16
↓ 3 callers
Method
RandomSecret
(length int)
pkg/otp/otp.go:6
↓ 3 callers
Method
SignUp
(ctx context.Context, input UserSignUpInput)
internal/service/service.go:47
↓ 3 callers
Function
filterDateQueries
(dateFrom, dateTo, fieldName string, filter bson.M)
internal/repository/repository.go:235
↓ 3 callers
Function
getPaginationOpts
(pagination *domain.PaginationQuery)
internal/repository/repository.go:223
↓ 3 callers
Method
parseAuthHeader
(c *gin.Context)
internal/delivery/http/v1/middleware.go:94
↓ 3 callers
Function
toPackagesResponse
(pkgs []domain.Package)
internal/delivery/http/v1/admins.go:1908
↓ 2 callers
Method
AddFinished
(ctx context.Context, studentId, lessonId primitive.ObjectID)
internal/repository/repository.go:50
↓ 2 callers
Method
AddTransaction
(ctx context.Context, id primitive.ObjectID, transaction domain.Transaction)
internal/repository/repository.go:167
↓ 2 callers
Method
AttachPackage
(ctx context.Context, schoolId, packageId primitive.ObjectID, modules []primitive.ObjectID)
internal/repository/repository.go:108
↓ 2 callers
Function
Debugf
(format string, args ...interface{})
pkg/logger/logrus.go:13
↓ 2 callers
Method
DeleteByCourse
(ctx context.Context, schoolId, courseId primitive.ObjectID)
internal/repository/repository.go:102
↓ 2 callers
Method
GenerateBodyFromHTML
(templateFileName string, data interface{})
pkg/email/sender.go:21
↓ 2 callers
Method
GetByCourseId
(ctx context.Context, courseId primitive.ObjectID)
internal/repository/repository.go:96
↓ 2 callers
Method
GetByDomain
(ctx context.Context, domainName string)
internal/repository/repository.go:28
↓ 2 callers
Method
GetByID
(ctx context.Context, id, schoolID primitive.ObjectID)
internal/repository/repository.go:178
↓ 2 callers
Method
GetWithContent
(ctx context.Context, moduleId primitive.ObjectID)
internal/service/service.go:258
↓ 2 callers
Method
GiveAccessToOffer
(ctx context.Context, studentId primitive.ObjectID, offer domain.Offer)
internal/service/service.go:99
↓ 2 callers
Function
Info
(msg ...interface{})
pkg/logger/logrus.go:17
↓ 2 callers
Function
Init
Init populates Config struct with values from config file located at filepath and environment variables.
internal/config/config.go:116
↓ 2 callers
Function
IsDuplicate
(err error)
pkg/database/mongodb/mongodb.go:44
↓ 2 callers
Function
IsEmailValid
(email string)
pkg/email/validate.go:12
↓ 2 callers
Method
IsModuleAvailable
(m Module)
internal/domain/student.go:25
↓ 2 callers
Function
NewAdminsService
(hasher hash.PasswordHasher, tokenManager auth.TokenManager, repo repository.Admins, schoolRepo repository.Sc
internal/service/admins.go:27
↓ 2 callers
Function
NewClient
NewClient established connection to a mongoDb instance using provided URI and auth credentials.
pkg/database/mongodb/mongodb.go:15
↓ 2 callers
Function
NewFondyClient
(merchantID string, merchantPassword string)
pkg/payment/fondy/fondy.go:177
↓ 2 callers
Function
NewHandler
(services *service.Services, tokenManager auth.TokenManager)
internal/delivery/http/v1/handler.go:17
↓ 2 callers
Function
NewManager
(signingKey string)
pkg/auth/manager.go:23
↓ 2 callers
Function
NewMemoryCache
NewMemoryCache uses map to store key:value data in-memory.
pkg/cache/memory.go:23
↓ 2 callers
Function
NewRepositories
(db *mongo.Database)
internal/repository/repository.go:204
↓ 2 callers
Function
NewSHA1Hasher
(salt string)
pkg/hash/password.go:18
↓ 2 callers
Function
NewServices
(deps Deps)
internal/service/service.go:381
↓ 2 callers
Method
Save
(ctx context.Context, file domain.File)
internal/service/service.go:131
↓ 2 callers
Method
Send
(input SendEmailInput)
pkg/email/sender.go:18
↓ 2 callers
Method
SetLastOpened
(ctx context.Context, studentId, lessonId primitive.ObjectID)
internal/repository/repository.go:51
↓ 2 callers
Method
SetStatus
(ctx context.Context, id primitive.ObjectID, status string)
internal/repository/repository.go:170
↓ 2 callers
Method
Update
(ctx context.Context, inp UpdateOfferInput)
internal/repository/repository.go:148
↓ 2 callers
Method
Validate
()
internal/domain/offer.go:39
↓ 2 callers
Method
addStudentToList
TODO refactor.
internal/service/students.go:292
↓ 2 callers
Method
chunkSize
()
internal/delivery/http/v1/admins_upload.go:64
↓ 2 callers
Method
createSession
(ctx context.Context, adminID primitive.ObjectID)
internal/service/admins.go:117
↓ 2 callers
Method
createSession
(ctx context.Context, userId primitive.ObjectID)
internal/service/users.go:162
↓ 2 callers
Method
createSession
(ctx context.Context, studentId primitive.ObjectID)
internal/service/students.go:247
↓ 2 callers
Function
generateSignature
(params map[string]interface{}, password string)
pkg/payment/fondy/fondy.go:133
↓ 2 callers
Method
getFondyClient
(fondyConnectionInfo domain.Fondy)
internal/service/payments.go:180
↓ 2 callers
Function
getIdByContext
(c *gin.Context, context string)
internal/delivery/http/v1/middleware.go:120
↓ 2 callers
Function
getUserId
(c *gin.Context)
internal/delivery/http/v1/middleware.go:116
↓ 2 callers
Method
isLessonAvailable
(ctx context.Context, studentId, lessonId primitive.ObjectID)
internal/service/students.go:273
↓ 2 callers
Function
removeFile
(filename string)
internal/service/files.go:148
↓ 2 callers
Function
toOffersReponse
(offers []domain.Offer)
internal/delivery/http/v1/admins.go:1935
↓ 2 callers
Function
toPackageModules
(modules []domain.Module)
internal/delivery/http/v1/admins.go:1922
↓ 2 callers
Method
upload
(ctx context.Context, file domain.File)
internal/service/files.go:114
next →
1–100 of 1,083, ranked by callers