MCPcopy Index your code

hub / github.com/muety/wakapi / functions

Functions1,898 in github.com/muety/wakapi

↓ 7 callersMethodHeartbeatsTimeout
()
models/user.go:181
↓ 7 callersMethodInsert
(*models.Summary)
services/services.go:125
↓ 7 callersMethodIsProjectDetails
()
models/summary.go:448
↓ 7 callersMethodLimit
()
utils/http.go:43
↓ 7 callersFunctionNewSharedDataMiddleware
()
middlewares/shared_data.go:32
↓ 7 callersMethodParseTrustReverseProxyIPs
()
config/config.go:429
↓ 7 callersFunctionResolveIntervalRawTZ
(interval string, tz *time.Location, startOfWeek time.Weekday)
helpers/interval.go:30
↓ 7 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
middlewares/custom/wakatime.go:52
↓ 7 callersMethodSorted
()
models/summary.go:110
↓ 7 callersMethodWithRedirectErrorMessage
(message string)
middlewares/authenticate.go:65
↓ 7 callersMethodWithRedirectTarget
(path string)
middlewares/authenticate.go:60
↓ 7 callersMethodauthorizeUser
(user mockoidc.User, provider string)
routes/login_test.go:688
↓ 7 callersFunctiondefaultErrorRedirectTarget
()
routes/routes.go:126
↓ 7 callersFunctionfilterDurations
(from, to time.Time, durations models.Durations)
services/summary_test.go:841
↓ 6 callersFunctionFormatDateHuman
(date time.Time)
helpers/date.go:48
↓ 6 callersMethodGetAliasOrDefault
(userId string, summaryType uint8, value string)
services/alias.go:78
↓ 6 callersMethodGetByType
(summaryType uint8)
models/summary.go:141
↓ 6 callersMethodGetByUser
(string)
services/services.go:32
↓ 6 callersMethodGetByUser
(string)
repositories/repositories.go:25
↓ 6 callersFunctionGetEntityColumn
(t uint8)
models/heartbeat.go:173
↓ 6 callersMethodGetPublicUrl
()
config/config.go:526
↓ 6 callersMethodGetString
(string)
repositories/repositories.go:78
↓ 6 callersMethodIsEmpty
()
models/filters.go:123
↓ 6 callersMethodIsValid
()
models/alias.go:20
↓ 6 callersMethodMappedItems
()
models/summary.go:127
↓ 6 callersMethodMayInitializeUser
(userId string)
services/alias.go:47
↓ 6 callersMethodOne
()
models/filters.go:93
↓ 6 callersMethodPostSignup
(w http.ResponseWriter, r *http.Request)
routes/login.go:177
↓ 6 callersMethodResolveByUser
(string)
services/services.go:87
↓ 6 callersMethodTimeEnd
()
models/duration.go:38
↓ 6 callersMethodUpdateField
(*models.User, string, interface{})
repositories/repositories.go:133
↓ 6 callersMethodWithAliases
WithAliases adds OR-conditions for every alias of a Filter key as additional Filter keys
models/filters.go:219
↓ 6 callersMethodWithEntityIgnored
()
models/duration.go:97
↓ 6 callersMethodbuildViewModel
(r *http.Request, w http.ResponseWriter, args *map[string]interface{})
routes/settings.go:1081
↓ 6 callersMethodfilter
(durations []*models.Duration, user *models.User, filters *models.Filters)
services/duration.go:269
↓ 6 callersMethodgetMissingIntervals
(from, to time.Time, summaries []*models.Summary, precise bool)
services/summary.go:477
↓ 6 callersMethodinvalidateUserCache
(userId string)
services/summary.go:553
↓ 6 callersMethodloginAsUser
(user *models.User)
routes/webauthn_test.go:103
↓ 6 callersMethodtryGetUserByTrustedHeader
(r *http.Request, create bool)
middlewares/authenticate.go:169
↓ 5 callersMethodAugment
(languageMappings map[string]string)
models/heartbeat.go:75
↓ 5 callersFunctionCheckEffectiveUser
CheckEffectiveUser extracts the requested user from a URL (like '/users/{user}'), compares it with the currently authorized user and writes an HTTP er
routes/utils/user_utils.go:15
↓ 5 callersFunctionCloneStringMap
(m map[string]string, keysToLower bool)
utils/collection.go:17
↓ 5 callersMethodCountAliasesByType
(entity uint8)
models/filters.go:150
↓ 5 callersMethodDeleteByUser
(string)
services/services.go:122
↓ 5 callersMethodFlushUserCache
(userId string)
services/user.go:368
↓ 5 callersFunctionGetDefaultQueue
()
config/jobqueue.go:53
↓ 5 callersMethodGetIndex
(w http.ResponseWriter, r *http.Request)
routes/home.go:44
↓ 5 callersFunctionGetSessionStore
()
config/session.go:27
↓ 5 callersMethodGetUserByKey
(key string, requireFullAccessKey bool)
services/user.go:103
↓ 5 callersMethodGetUserProjectStats
(*models.User, time.Time, time.Time, string, *utils.PageParams, bool)
services/services.go:39
↓ 5 callersFunctionHalfCPUs
()
utils/system.go:12
↓ 5 callersMethodHasActiveSubscription
HasActiveSubscription returns true if subscriptions are enabled on the server and the user has got one
models/user.go:201
↓ 5 callersMethodHash
()
models/filters.go:192
↓ 5 callersFunctionHashPassword
(plain, pepper string)
utils/auth.go:58
↓ 5 callersMethodInsertBatch
([]*models.Heartbeat)
services/services.go:44
↓ 5 callersMethodIsMySQL
()
config/config.go:514
↓ 5 callersMethodIsProjectDetails
()
models/filters.go:308
↓ 5 callersMethodKeepOnly
(types map[uint8]bool)
models/summary.go:197
↓ 5 callersFunctionNewDurationFromHeartbeat
(h *Heartbeat)
models/duration.go:58
↓ 5 callersFunctionParseUserAgent
ParseUserAgent extracts the operating system and editor from a User-Agent string.
utils/http.go:96
↓ 5 callersMethodPostLogin
(w http.ResponseWriter, r *http.Request)
routes/login.go:103
↓ 5 callersFunctionResolveMaximumRange
ResolveMaximumRange returns the interval label (e.g. "last_7_days") of the maximum allowed range when having opted to share this many days or an error
helpers/interval.go:85
↓ 5 callersMethodSchedule
()
services/services.go:22
↓ 5 callersMethodSend
(*models.Mail)
services/mail/mail.go:32
↓ 5 callersMethodSetConfigValue
(key string, val interface{})
services/mail/smtp_test.go:273
↓ 5 callersMethodString
()
config/config.go:250
↓ 5 callersMethodWakaTimeURL
WakaTimeURL returns the user's effective WakaTime URL, i.e. a custom one (which could also point to another Wakapi instance) or fallback if not specif
models/user.go:193
↓ 5 callersMethodWithHTML
(html string)
models/mail.go:31
↓ 5 callersMethodbuildTimeFilteredQuery
since sqlite doesn't datetime column type, naive string comparison / sorting won't properly respect timezones this is problematic in case of heartbeat
repositories/heartbeat.go:342
↓ 5 callersMethodcreateSut
()
services/project_test.go:42
↓ 5 callersMethodfmtName
(name string)
services/mail/mail.go:185
↓ 5 callersFunctionmergeCookies
(base []*http.Cookie, updates []*http.Cookie)
routes/webauthn_test.go:512
↓ 5 callersFunctionmockUserAwareRequest
(requestedUser, authorizedUser string)
routes/utils/user_utils_test.go:63
↓ 5 callersMethodqueryAddTimeSorting
(q *gorm.DB, desc bool)
repositories/duration.go:134
↓ 5 callersMethodtryHandleOidc
redirect if oidc id token was found, but expired returns true if further authentication can be skipped
middlewares/authenticate.go:226
↓ 5 callersMethodwithUser
(r *http.Request, user *models.User)
middlewares/custom/wakatime_test.go:232
↓ 4 callersMethodAliased
Public summary generation methods Aliased retrieves or computes a new summary based on the given SummaryRetriever and augments it with entity aliases
services/summary.go:90
↓ 4 callersFunctionCanonicalName
(value string, entityType uint8)
models/canonical_names.go:25
↓ 4 callersMethodCount
()
services/services.go:172
↓ 4 callersMethodCountByType
(entity uint8)
models/filters.go:146
↓ 4 callersMethodDeleteByUser
(string)
repositories/repositories.go:114
↓ 4 callersMethodDeleteByUserBefore
(string, time.Time)
services/services.go:123
↓ 4 callersMethodGetClearCookie
(name string)
config/config.go:284
↓ 4 callersMethodGetHumanReadable
()
models/interval.go:56
↓ 4 callersFunctionGetOidcProvider
(name string)
config/oidc.go:123
↓ 4 callersMethodInTZ
inplace!
models/summary.go:428
↓ 4 callersMethodKey
()
models/metrics/metric.go:40
↓ 4 callersMethodLast
()
models/durations.go:40
↓ 4 callersMethodLoadCredentialIntoUser
(*models.User)
services/services.go:197
↓ 4 callersFunctionNewSMTPSendingService
(config conf.SMTPMailConfig)
services/mail/smtp.go:18
↓ 4 callersFunctionNewSharedData
()
config/shared_data.go:18
↓ 4 callersFunctionParseDateTimeTZ
ParseDateTimeTZ attempts to parse the given date string from multiple formats. First, a time-zoned date-time string (e.g. 2006-01-02T15:04:05+02:00) i
helpers/date.go:18
↓ 4 callersFunctionParseInterval
(interval string)
helpers/interval.go:11
↓ 4 callersFunctionParseSummaryFilters
(r *http.Request)
helpers/summary.go:48
↓ 4 callersMethodPutString
(*models.KeyStringValue)
services/services.go:76
↓ 4 callersFunctionSetEventBus
(eventBus *hub.Hub)
config/eventbus.go:41
↓ 4 callersMethodSummarize
(from, to time.Time, user *models.User, filters *models.Filters, customTimeout *time.Duration)
services/summary.go:199
↓ 4 callersMethodValidate
(user *models.User)
services/imports/wakatime.go:43
↓ 4 callersMethodValue
()
models/shared.go:122
↓ 4 callersMethodWithFullAccessOnly
(requireFullAccess bool)
middlewares/authenticate.go:70
← previousnext →101–200 of 1,898, ranked by callers