MCPcopy Create free account

hub / github.com/cbrom/Go-LMS / functions

Functions256 in github.com/cbrom/Go-LMS

↓ 1 callersFunctionNewStorageFile
NewStorageFile implements the interface Storage to support persisting private keys to the local file system.
pkg/auth/storage_file.go:58
↓ 1 callersFunctionNewStorageMemory
NewStorageMemory implements the interface Storage to store a single key in memory.
pkg/auth/storage.go:53
↓ 1 callersMethodToUser
ToUser converts UserCreateRequest to User object
cmd/api/handlers/user.handler.go:69
↓ 1 callersFunctionexecuteQuery
(query string, schema graphql.Schema, ctx *gin.Context)
cmd/graphql/resolvers/resolvers.go:85
MethodBeforeCreate
BeforeCreate generates a uuid into the id before saving the model
pkg/utils/utils.go:19
FunctionClaimsFromContext
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
MethodCreate
** CRUD functions */ Create creates a new quiz user answer record
cmd/models/quiz_user_answers.model.go:38
MethodCurrent
Current returns the most recently generated private key.
pkg/auth/storage.go:35
MethodCurrent
Current returns the most recently generated private key.
pkg/auth/storage_file.go:38
MethodDelete
Delete deletes quiz user answer by id
cmd/models/quiz_user_answers.model.go:72
MethodFetchAll
FetchAll fetchs all Courses
cmd/models/course.model.go:100
MethodFetchAll
FetchAll fetchs all QuizQuestions
cmd/models/quiz_question.model.go:88
MethodFetchAll
FetchAll fetchs all Levels
cmd/models/level.model.go:78
MethodFetchAll
FetchAll fetchs all Users
cmd/models/user.model.go:113
MethodFetchAll
FetchAll fetchs all AnswerOptions
cmd/models/answer_option.model.go:70
MethodFetchAll
FetchAll fetchs all IssuedCertificates
cmd/models/issued_certificate.model.go:69
MethodFetchAll
FetchAll fetchs all TargetGroups
cmd/models/target_group.model.go:77
MethodFetchAll
FetchAll fetchs all CourseAuthors
cmd/models/course_author.model.go:80
MethodFetchAll
FetchAll fetchs all Certificates
cmd/models/certificate.model.go:83
MethodFetchAll
FetchAll fetchs all Quizs
cmd/models/quiz.model.go:74
MethodFetchAll
FetchAll fetchs all Targets
cmd/models/target.model.go:93
MethodFetchAll
FetchAll fetchs all TargetVersions
cmd/models/target_version.model.go:74
MethodFetchAll
FetchAll fetchs all StudentCourses
cmd/models/student_course.model.go:74
MethodFetchAll
FetchAll fetchs all QuizUserAnswers
cmd/models/quiz_user_answers.model.go:60
MethodFetchAll
FetchAll fetchs all ContentBlocks
cmd/models/content_block.model.go:72
MethodFetchAll
FetchAll fetchs all EvaluationCriterias
cmd/models/evaluation_criteria.model.go:73
MethodFetchByID
FetchByID fetches Course by id
cmd/models/course.model.go:90
MethodFetchByID
FetchByID fetches QuizQuestion by id
cmd/models/quiz_question.model.go:78
MethodFetchByID
FetchByID fetches Level by id
cmd/models/level.model.go:68
MethodFetchByID
FetchByID fetches AnswerOption by id
cmd/models/answer_option.model.go:60
MethodFetchByID
FetchByID fetches IssuedCertificate by id
cmd/models/issued_certificate.model.go:59
MethodFetchByID
FetchByID fetches TargetGroup by id
cmd/models/target_group.model.go:67
MethodFetchByID
FetchByID fetches CourseAuthor by id
cmd/models/course_author.model.go:70
MethodFetchByID
FetchByID fetches Certificate by id
cmd/models/certificate.model.go:73
MethodFetchByID
FetchByID fetches Quiz by id
cmd/models/quiz.model.go:64
MethodFetchByID
FetchByID fetches Target by id
cmd/models/target.model.go:83
MethodFetchByID
FetchByID fetches TargetVersion by id
cmd/models/target_version.model.go:64
MethodFetchByID
FetchByID fetches StudentCourse by id
cmd/models/student_course.model.go:64
MethodFetchByID
FetchByID fetches QuizUserAnswer by id
cmd/models/quiz_user_answers.model.go:50
MethodFetchByID
FetchByID fetches ContentBlock by id
cmd/models/content_block.model.go:62
MethodFetchByID
FetchByID fetches EvaluationCriteria by id
cmd/models/evaluation_criteria.model.go:63
FunctionFooter
()
user-interface/src/components/Footer.js:5
FunctionGenerateError
GenerateError generates a new error
pkg/utils/utils.go:58
MethodGetCertificates
GetCertificates returns course sertificates issued by the author for the course
cmd/models/course_author.model.go:49
MethodGetCourse
** Relationship functions */ GetCourse returns the Course of this relationship
cmd/models/course_author.model.go:39
MethodGetCourse
** Relationship functions */ GetCourse returns certificate course
cmd/models/certificate.model.go:47
MethodGetCourse
** Relationship functions */ GetCourse returns student course
cmd/models/student_course.model.go:38
MethodGetCourse
** * Relationship functions */ GetCourse returns the course of evaluation criteria
cmd/models/evaluation_criteria.model.go:42
MethodGetHasNext
GetHasNext fetches if record has next page
pkg/utils/utils.go:93
MethodGetHasPrev
GetHasPrev fetches if record has previous page
pkg/utils/utils.go:98
MethodGetLimit
GetLimit fetches limit of records per page number
pkg/utils/utils.go:88
MethodGetPage
GetPage fetches page number
pkg/utils/utils.go:83
MethodGetPages
GetPages fetches record pages
pkg/utils/utils.go:113
MethodGetSearchField
GetSearchField retrieves search field
pkg/utils/utils.go:141
MethodGetSearchInField
GetSearchInField retrieves search in field
pkg/utils/utils.go:161
MethodGetSearchInQuery
GetSearchInQuery retrieves search in query
pkg/utils/utils.go:171
MethodGetSearchQuery
GetSearchQuery retrieves search query
pkg/utils/utils.go:151
MethodGetSortField
GetSortField fetches sort field
pkg/utils/utils.go:123
MethodGetSortOrder
GetSortOrder fetches sort order
pkg/utils/utils.go:128
MethodGetTarget
** * Relationship functions */ GetTarget returns target of this version
cmd/models/target_version.model.go:38
MethodGetTargetVersion
** * Relationship functions */ GetTargetVersion returns the target version of a content block
cmd/models/content_block.model.go:41
FunctionGetUser
GetUser returns user object for a graphql
cmd/graphql/resolvers/user.resolver.go:19
MethodGetUser
GetUser returns student course
cmd/models/student_course.model.go:43
MethodHasAuth
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
MethodKeys
Keys returns a map of private keys by kID.
pkg/auth/storage.go:25
MethodKeys
Keys returns a map of private keys by kID.
pkg/auth/storage_file.go:30
FunctionNewAuthenticatorMemory
NewAuthenticatorMemory is a help function that inits a new Authenticator with a single key stored in memory.
pkg/auth/storage.go:43
FunctionNewClaimPreferences
NewClaimPreferences constructs ClaimPreferences for the user/account
pkg/auth/claims.go:54
FunctionNewClaims
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
FunctionSection1
()
user-interface/src/components/Section1.js:9
FunctionSection3
()
user-interface/src/components/Section3.js:3
MethodSetCreatedAt
SetCreatedAt sets field createdAt, should only be used in mongodb
pkg/utils/utils.go:35
MethodSetDeletedAt
SetDeletedAt sets field DeletedAt
pkg/utils/utils.go:45
MethodSetHasNext
SetHasNext sets if record has next page
pkg/utils/utils.go:103
MethodSetHasPrev
SetHasPrev sets if record has previous page
pkg/utils/utils.go:108
MethodSetPages
SetPages sets record pages
pkg/utils/utils.go:118
MethodSetSearchField
SetSearchField sets search field
pkg/utils/utils.go:146
MethodSetSearchInField
SetSearchInField sets search in field
pkg/utils/utils.go:166
MethodSetSearchInQuery
SetSearchInQuery sets search in query
pkg/utils/utils.go:176
MethodSetSearchQuery
SetSearchQuery sets search query
pkg/utils/utils.go:156
MethodSetUpdatedAt
SetUpdatedAt sets field UpdatedAt
pkg/utils/utils.go:40
FunctionSignIn
SignIn returns token for a given user
cmd/graphql/resolvers/user.resolver.go:82
FunctionSignUp
SignUp creates a new user
cmd/graphql/resolvers/user.resolver.go:41
MethodSignUp
SignUp registers user
cmd/api/handlers/user.handler.go:34
MethodSoftDelete
SoftDelete set's deleted at date
cmd/models/course.model.go:118
MethodSoftDelete
SoftDelete sets deleted at field
cmd/models/quiz_question.model.go:106
MethodSoftDelete
SoftDelete sets deleted at of level
cmd/models/level.model.go:96
MethodSoftDelete
SoftDelete sets deleted at field
cmd/models/answer_option.model.go:88
MethodSoftDelete
SoftDelete sets deleted at field
cmd/models/issued_certificate.model.go:87
MethodSoftDelete
SoftDelete sets deleted at field
cmd/models/target_group.model.go:95
MethodSoftDelete
SoftDelete set's record deleted at field
cmd/models/course_author.model.go:98
MethodSoftDelete
SoftDelete sets deleted at
cmd/models/certificate.model.go:101
MethodSoftDelete
SoftDelete sets the deleted at field
cmd/models/quiz.model.go:92
MethodSoftDelete
SoftDelete sets deleted at field
cmd/models/target.model.go:111
MethodSoftDelete
SoftDelete sets deleted at field
cmd/models/target_version.model.go:92
MethodSoftDelete
SoftDelete sets deleted at field
cmd/models/student_course.model.go:92
MethodSoftDelete
SoftDelete sets deleted at field
cmd/models/content_block.model.go:90
MethodSoftDelete
SoftDelete sets deleted at field
cmd/models/evaluation_criteria.model.go:91
MethodTableName
TableName gorm standard table name
cmd/models/course.model.go:32
MethodTableName
TableName gorm standard table name
cmd/models/course.model.go:40
← previousnext →101–200 of 256, ranked by callers