Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cbrom/Go-LMS
/ functions
Functions
256 in github.com/cbrom/Go-LMS
⨍
Functions
256
◇
Types & classes
55
↓ 1 callers
Function
NewStorageFile
NewStorageFile implements the interface Storage to support persisting private keys to the local file system.
pkg/auth/storage_file.go:58
↓ 1 callers
Function
NewStorageMemory
NewStorageMemory implements the interface Storage to store a single key in memory.
pkg/auth/storage.go:53
↓ 1 callers
Method
ToUser
ToUser converts UserCreateRequest to User object
cmd/api/handlers/user.handler.go:69
↓ 1 callers
Function
executeQuery
(query string, schema graphql.Schema, ctx *gin.Context)
cmd/graphql/resolvers/resolvers.go:85
Method
BeforeCreate
BeforeCreate generates a uuid into the id before saving the model
pkg/utils/utils.go:19
Function
ClaimsFromContext
TimeLocation returns the timezone used to format datetimes for user func (c Claims) TimeLocation() *time.Location { return c.Preferences.TimeLocation
pkg/auth/claims.go:117
Method
Create
** CRUD functions */ Create creates a new quiz user answer record
cmd/models/quiz_user_answers.model.go:38
Method
Current
Current returns the most recently generated private key.
pkg/auth/storage.go:35
Method
Current
Current returns the most recently generated private key.
pkg/auth/storage_file.go:38
Method
Delete
Delete deletes quiz user answer by id
cmd/models/quiz_user_answers.model.go:72
Method
FetchAll
FetchAll fetchs all Courses
cmd/models/course.model.go:100
Method
FetchAll
FetchAll fetchs all QuizQuestions
cmd/models/quiz_question.model.go:88
Method
FetchAll
FetchAll fetchs all Levels
cmd/models/level.model.go:78
Method
FetchAll
FetchAll fetchs all Users
cmd/models/user.model.go:113
Method
FetchAll
FetchAll fetchs all AnswerOptions
cmd/models/answer_option.model.go:70
Method
FetchAll
FetchAll fetchs all IssuedCertificates
cmd/models/issued_certificate.model.go:69
Method
FetchAll
FetchAll fetchs all TargetGroups
cmd/models/target_group.model.go:77
Method
FetchAll
FetchAll fetchs all CourseAuthors
cmd/models/course_author.model.go:80
Method
FetchAll
FetchAll fetchs all Certificates
cmd/models/certificate.model.go:83
Method
FetchAll
FetchAll fetchs all Quizs
cmd/models/quiz.model.go:74
Method
FetchAll
FetchAll fetchs all Targets
cmd/models/target.model.go:93
Method
FetchAll
FetchAll fetchs all TargetVersions
cmd/models/target_version.model.go:74
Method
FetchAll
FetchAll fetchs all StudentCourses
cmd/models/student_course.model.go:74
Method
FetchAll
FetchAll fetchs all QuizUserAnswers
cmd/models/quiz_user_answers.model.go:60
Method
FetchAll
FetchAll fetchs all ContentBlocks
cmd/models/content_block.model.go:72
Method
FetchAll
FetchAll fetchs all EvaluationCriterias
cmd/models/evaluation_criteria.model.go:73
Method
FetchByID
FetchByID fetches Course by id
cmd/models/course.model.go:90
Method
FetchByID
FetchByID fetches QuizQuestion by id
cmd/models/quiz_question.model.go:78
Method
FetchByID
FetchByID fetches Level by id
cmd/models/level.model.go:68
Method
FetchByID
FetchByID fetches AnswerOption by id
cmd/models/answer_option.model.go:60
Method
FetchByID
FetchByID fetches IssuedCertificate by id
cmd/models/issued_certificate.model.go:59
Method
FetchByID
FetchByID fetches TargetGroup by id
cmd/models/target_group.model.go:67
Method
FetchByID
FetchByID fetches CourseAuthor by id
cmd/models/course_author.model.go:70
Method
FetchByID
FetchByID fetches Certificate by id
cmd/models/certificate.model.go:73
Method
FetchByID
FetchByID fetches Quiz by id
cmd/models/quiz.model.go:64
Method
FetchByID
FetchByID fetches Target by id
cmd/models/target.model.go:83
Method
FetchByID
FetchByID fetches TargetVersion by id
cmd/models/target_version.model.go:64
Method
FetchByID
FetchByID fetches StudentCourse by id
cmd/models/student_course.model.go:64
Method
FetchByID
FetchByID fetches QuizUserAnswer by id
cmd/models/quiz_user_answers.model.go:50
Method
FetchByID
FetchByID fetches ContentBlock by id
cmd/models/content_block.model.go:62
Method
FetchByID
FetchByID fetches EvaluationCriteria by id
cmd/models/evaluation_criteria.model.go:63
Function
Footer
()
user-interface/src/components/Footer.js:5
Function
GenerateError
GenerateError generates a new error
pkg/utils/utils.go:58
Method
GetCertificates
GetCertificates returns course sertificates issued by the author for the course
cmd/models/course_author.model.go:49
Method
GetCourse
** Relationship functions */ GetCourse returns the Course of this relationship
cmd/models/course_author.model.go:39
Method
GetCourse
** Relationship functions */ GetCourse returns certificate course
cmd/models/certificate.model.go:47
Method
GetCourse
** Relationship functions */ GetCourse returns student course
cmd/models/student_course.model.go:38
Method
GetCourse
** * Relationship functions */ GetCourse returns the course of evaluation criteria
cmd/models/evaluation_criteria.model.go:42
Method
GetHasNext
GetHasNext fetches if record has next page
pkg/utils/utils.go:93
Method
GetHasPrev
GetHasPrev fetches if record has previous page
pkg/utils/utils.go:98
Method
GetLimit
GetLimit fetches limit of records per page number
pkg/utils/utils.go:88
Method
GetPage
GetPage fetches page number
pkg/utils/utils.go:83
Method
GetPages
GetPages fetches record pages
pkg/utils/utils.go:113
Method
GetSearchField
GetSearchField retrieves search field
pkg/utils/utils.go:141
Method
GetSearchInField
GetSearchInField retrieves search in field
pkg/utils/utils.go:161
Method
GetSearchInQuery
GetSearchInQuery retrieves search in query
pkg/utils/utils.go:171
Method
GetSearchQuery
GetSearchQuery retrieves search query
pkg/utils/utils.go:151
Method
GetSortField
GetSortField fetches sort field
pkg/utils/utils.go:123
Method
GetSortOrder
GetSortOrder fetches sort order
pkg/utils/utils.go:128
Method
GetTarget
** * Relationship functions */ GetTarget returns target of this version
cmd/models/target_version.model.go:38
Method
GetTargetVersion
** * Relationship functions */ GetTargetVersion returns the target version of a content block
cmd/models/content_block.model.go:41
Function
GetUser
GetUser returns user object for a graphql
cmd/graphql/resolvers/user.resolver.go:19
Method
GetUser
GetUser returns student course
cmd/models/student_course.model.go:43
Method
HasAuth
Valid is called during the parsing of a token. func (c Claims) Valid() error { for _, r := range c.Roles { switch r { case RoleAdmin, RoleUser: /
pkg/auth/claims.go:84
Method
Keys
Keys returns a map of private keys by kID.
pkg/auth/storage.go:25
Method
Keys
Keys returns a map of private keys by kID.
pkg/auth/storage_file.go:30
Function
NewAuthenticatorMemory
NewAuthenticatorMemory is a help function that inits a new Authenticator with a single key stored in memory.
pkg/auth/storage.go:43
Function
NewClaimPreferences
NewClaimPreferences constructs ClaimPreferences for the user/account
pkg/auth/claims.go:54
Function
NewClaims
NewClaims constructs a Claim value for the identified user. * The claims expire within a specifie duration of the provided time. Additional fields of
pkg/auth/claims.go:41
Function
Section1
()
user-interface/src/components/Section1.js:9
Function
Section3
()
user-interface/src/components/Section3.js:3
Method
SetCreatedAt
SetCreatedAt sets field createdAt, should only be used in mongodb
pkg/utils/utils.go:35
Method
SetDeletedAt
SetDeletedAt sets field DeletedAt
pkg/utils/utils.go:45
Method
SetHasNext
SetHasNext sets if record has next page
pkg/utils/utils.go:103
Method
SetHasPrev
SetHasPrev sets if record has previous page
pkg/utils/utils.go:108
Method
SetPages
SetPages sets record pages
pkg/utils/utils.go:118
Method
SetSearchField
SetSearchField sets search field
pkg/utils/utils.go:146
Method
SetSearchInField
SetSearchInField sets search in field
pkg/utils/utils.go:166
Method
SetSearchInQuery
SetSearchInQuery sets search in query
pkg/utils/utils.go:176
Method
SetSearchQuery
SetSearchQuery sets search query
pkg/utils/utils.go:156
Method
SetUpdatedAt
SetUpdatedAt sets field UpdatedAt
pkg/utils/utils.go:40
Function
SignIn
SignIn returns token for a given user
cmd/graphql/resolvers/user.resolver.go:82
Function
SignUp
SignUp creates a new user
cmd/graphql/resolvers/user.resolver.go:41
Method
SignUp
SignUp registers user
cmd/api/handlers/user.handler.go:34
Method
SoftDelete
SoftDelete set's deleted at date
cmd/models/course.model.go:118
Method
SoftDelete
SoftDelete sets deleted at field
cmd/models/quiz_question.model.go:106
Method
SoftDelete
SoftDelete sets deleted at of level
cmd/models/level.model.go:96
Method
SoftDelete
SoftDelete sets deleted at field
cmd/models/answer_option.model.go:88
Method
SoftDelete
SoftDelete sets deleted at field
cmd/models/issued_certificate.model.go:87
Method
SoftDelete
SoftDelete sets deleted at field
cmd/models/target_group.model.go:95
Method
SoftDelete
SoftDelete set's record deleted at field
cmd/models/course_author.model.go:98
Method
SoftDelete
SoftDelete sets deleted at
cmd/models/certificate.model.go:101
Method
SoftDelete
SoftDelete sets the deleted at field
cmd/models/quiz.model.go:92
Method
SoftDelete
SoftDelete sets deleted at field
cmd/models/target.model.go:111
Method
SoftDelete
SoftDelete sets deleted at field
cmd/models/target_version.model.go:92
Method
SoftDelete
SoftDelete sets deleted at field
cmd/models/student_course.model.go:92
Method
SoftDelete
SoftDelete sets deleted at field
cmd/models/content_block.model.go:90
Method
SoftDelete
SoftDelete sets deleted at field
cmd/models/evaluation_criteria.model.go:91
Method
TableName
TableName gorm standard table name
cmd/models/course.model.go:32
Method
TableName
TableName gorm standard table name
cmd/models/course.model.go:40
← previous
next →
101–200 of 256, ranked by callers