MCPcopy Create free account

hub / github.com/muety/wakapi / functions

Functions1,898 in github.com/muety/wakapi

↓ 1 callersMethodSendReport
(user *models.User, duration time.Duration)
services/report.go:95
↓ 1 callersMethodSendSubscriptionNotification
(*models.User, bool)
services/services.go:106
↓ 1 callersMethodSendWakatimeFailureNotification
(*models.User, int)
services/services.go:103
↓ 1 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
middlewares/authenticate.go:81
↓ 1 callersMethodSetByType
(summaryType uint8, items *SummaryItems)
models/summary.go:165
↓ 1 callersMethodSetForcedTls
()
services/mail/smtp_test.go:232
↓ 1 callersMethodSetNoTls
()
services/mail/smtp_test.go:225
↓ 1 callersFunctionSetOidcState
(state string, r *http.Request, w http.ResponseWriter)
routes/utils/oidc.go:13
↓ 1 callersFunctionSetPrincipal
(r *http.Request, user *models.User)
middlewares/principal.go:10
↓ 1 callersMethodSetStartTls
()
services/mail/smtp_test.go:239
↓ 1 callersMethodSetWakatimeApiCredentials
(*models.User, string, string)
services/services.go:179
↓ 1 callersMethodSetWakatimeApiCredentials
(user *models.User, apiKey string, apiUrl string)
services/user.go:315
↓ 1 callersFunctionSetZone
SetZone overwrites a date's timezone without reinterpreting at
utils/date.go:73
↓ 1 callersMethodSetup
()
services/mail/smtp_test.go:169
↓ 1 callersFunctionSignupFromOidcIdToken
(idToken *conf.IdTokenPayload)
models/user.go:126
↓ 1 callersFunctionSplitMulti
(s string, delimiters ...string)
utils/strings.go:7
↓ 1 callersMethodStatus
Status returns the HTTP status of the request, or 0 if one has not yet been sent.
middlewares/logging.go:87
↓ 1 callersMethodStreamAllWithinRaw
(time.Time, time.Time, *models.User)
services/services.go:60
↓ 1 callersMethodStreamByUserBatched
(user *models.User, batchSize int)
repositories/duration.go:47
↓ 1 callersMethodStreamWithinBatched
(from, to time.Time, user *models.User, batchSize int)
repositories/heartbeat.go:88
↓ 1 callersMethodStreamWithinByFilters
(time.Time, time.Time, *models.User, map[string][]string)
repositories/repositories.go:44
↓ 1 callersMethodString
()
models/mail_address.go:27
↓ 1 callersMethodSubscriptionExpiredSince
SubscriptionExpiredSince returns if a user's subscription has expiration and the duration since when that happened. Returns (false, <negative duration
models/user.go:213
↓ 1 callersMethodSummarize
(time.Time, time.Time, *models.User, *models.Filters, *time.Duration)
services/services.go:119
↓ 1 callersMethodTimely
(maxAge time.Duration)
models/heartbeat.go:55
↓ 1 callersMethodTopKeys
(by uint8)
models/leaderboard.go:84
↓ 1 callersMethodTopKeysByUser
(by uint8, userId string)
models/leaderboard.go:114
↓ 1 callersMethodTotalNumHeartbeats
()
models/durations.go:19
↓ 1 callersMethodTrustReverseProxyIPs
()
config/config.go:461
↓ 1 callersFunctionUUIDFromSeed
(seed string)
utils/random.go:19
↓ 1 callersMethodUnsubscribeLink
()
models/user.go:238
↓ 1 callersMethodUpdate
(user *models.User)
services/user.go:273
↓ 1 callersMethodUpdateCredential
(*webauthn.Credential)
services/services.go:199
↓ 1 callersMethodUseTLS
()
config/config.go:308
↓ 1 callersFunctionV
(d)
static/assets/js/base.js:2
↓ 1 callersMethodVacuumOrOptimize
()
repositories/repositories.go:16
↓ 1 callersMethodValid
()
models/mail_address.go:50
↓ 1 callersFunctionValidateCaptcha
(captchaId, captchaValue string)
models/user.go:279
↓ 1 callersFunctionValidateEmail
(email string)
scripts/email_checker.go:33
↓ 1 callersFunctionValidateStartOfWeek
(startOfWeek int)
models/user.go:295
↓ 1 callersFunctionValidateTimezone
(tz string)
models/user.go:290
↓ 1 callersFunctionWaitTimeout
WaitTimeout waits for the waitgroup for the specified max timeout. Returns true if waiting timed out. See // https://stackoverflow.com/a/32843750/3112
utils/sync.go:11
↓ 1 callersMethodWarmUserProjectStatsCache
(user *models.User)
services/housekeeping.go:95
↓ 1 callersMethodWithCache
(withCache bool)
utils/fs/exists.go:28
↓ 1 callersMethodWithHtmlText
(t string)
models/view/imprint.go:18
↓ 1 callersMethodWithId
()
models/user_agent.go:18
↓ 1 callersMethodWithLatestHeartbeat
(h *models.Heartbeat)
models/compat/wakatime/v1/user.go:63
↓ 1 callersMethodWithOptionalForMethods
(methods ...string)
middlewares/authenticate.go:55
↓ 1 callersFunctionWithRecovery
WithRecovery executes a given function while recovering from panics and returning them as an errors
utils/func.go:10
↓ 1 callersMethodWithSuccess
(m string)
models/view/home.go:16
↓ 1 callersMethodWithTimeout
(interval time.Duration)
models/duration.go:102
↓ 1 callersMethodWriteString
(str string)
utils/db.go:63
↓ 1 callersFunctionX
(d)
static/assets/js/base.js:2
↓ 1 callersFunctionY
(d,_)
static/assets/js/base.js:2
↓ 1 callersMethodaggregateBy
Private summary generation and utility methods
services/summary.go:305
↓ 1 callersFunctionargs_to_params
(parsed_args: argparse.Namespace)
scripts/sample_data.py:250
↓ 1 callersFunctionbackupView
save view ddl to temporary table to be restored later
migrations/shared.go:34
↓ 1 callersFunctionbit_rol
(d,_)
static/assets/js/base.js:2
↓ 1 callersMethodbuildViewModel
(r *http.Request, w http.ResponseWriter)
routes/setup.go:48
↓ 1 callersMethodbuildViewModel
(r *http.Request, w http.ResponseWriter)
routes/leaderboard.go:62
↓ 1 callersMethodbuildViewModel
(r *http.Request)
routes/imprint.go:41
↓ 1 callersMethodbuildViewModel
(r *http.Request, w http.ResponseWriter)
routes/projects.go:54
↓ 1 callersMethodbuildViewModel
(r *http.Request, w http.ResponseWriter)
routes/home.go:61
↓ 1 callersMethodbuildViewModel
(userAgents []*models.UserAgent)
routes/compat/wakatime/v1/user_agents.go:64
↓ 1 callersMethodbuildViewModel
(globalLeaderboard, languageLeaderboard models.Leaderboard, user *models.User, interval *models.IntervalKey, p
routes/compat/wakatime/v1/leaders.go:115
↓ 1 callersMethodcancelUserSubscription
(user *models.User)
routes/subscription.go:351
↓ 1 callersFunctioncheckErr
(expected, actual error)
utils/http_test.go:206
↓ 1 callersMethodcheckInvalidateProjectStatsCache
(newHeartbeat *models.Heartbeat)
services/project.go:165
↓ 1 callersMethodcheckInvalidateRangeCache
(newHeartbeat *models.Heartbeat)
services/heartbeat.go:383
↓ 1 callersMethodcheckUpdateCascade
()
services/user.go:386
↓ 1 callersMethodcheckUrl
(user *models.User)
services/imports/wakatime.go:47
↓ 1 callersMethodclearSubscriptionNotificationStatus
(userId string)
routes/subscription.go:398
↓ 1 callersMethodcoalesceExistingUser
(username string)
routes/login.go:654
↓ 1 callersMethodcountUserTotalTime
(userId string)
services/misc.go:198
↓ 1 callersFunctioncreateAndLoadConfig
()
routes/webauthn_test.go:557
↓ 1 callersFunctioncreateSchema
()
scripts/dbmigrate.go:418
↓ 1 callersMethoddeleteAuthenticator
(name string, cookies []*http.Cookie)
routes/webauthn_test.go:429
↓ 1 callersFunctiondestroy
()
scripts/dbmigrate.go:138
↓ 1 callersMethoddispatchAction
(action string)
routes/settings.go:167
↓ 1 callersMethodexistsSubscriptionNotifications
()
services/misc.go:235
↓ 1 callersMethodexistsUsersTotalTime
()
services/misc.go:227
↓ 1 callersMethodextractAvailableFilters
extractAvailableFilters extracts available filter names from a summary's various item collections.
routes/summary.go:188
↓ 1 callersFunctionextractEditor
(ua string, parts []string)
utils/http.go:196
↓ 1 callersFunctionextractOS
extractOS identifies the operating system from user agents parts, looking for "(OS-...)" or standalone "os_arch" patterns.
utils/http.go:170
↓ 1 callersFunctionextractUser
(r *http.Request)
helpers/summary.go:80
↓ 1 callersFunctionfadeColorToTransparent
(colorHex string, transparency float64)
models/view/projects.go:49
↓ 1 callersMethodfetchHeartbeats
https://wakatime.com/api/v1/users/current/heartbeats?date=2021-02-05 https://pastr.de/p/b5p4od5s8w0pfntmwoi117jy
services/imports/wakatime_heartbeats.go:139
↓ 1 callersMethodfetchRange
https://wakatime.com/api/v1/users/current/all_time_since_today https://pastr.de/p/w8xb4biv575pu32pox7jj2gr
services/imports/wakatime_heartbeats.go:171
↓ 1 callersMethodfetchSplitSummaries
(params *models.SummaryParams)
routes/summary.go:174
↓ 1 callersFunctionfetch_all_heartbeats
(start: datetime.date, end: datetime.date)
scripts/download_heartbeats.py:40
↓ 1 callersFunctionfetch_heartbeats
(date: datetime.date)
scripts/download_heartbeats.py:46
↓ 1 callersFunctionfetch_total_range
(min_date: datetime.date, max_date: datetime.date)
scripts/download_heartbeats.py:31
↓ 1 callersMethodfiltersToColumnMap
(filters *models.Filters)
services/duration.go:329
↓ 1 callersMethodfindCurrentStripeSubscription
(customerId string)
routes/subscription.go:380
↓ 1 callersFunctionfixHeartbeatsBatched
(heartbeats []*models.Heartbeat)
scripts/dbmigrate.go:458
↓ 1 callersMethodfixZeroDuration
Since summary timestamps are only second-level precision, we rarely observe examples where from- and to-time are allegedly equal. We artificially modi
services/summary.go:531
↓ 1 callersFunctiongenerateDays
(from, to time.Time)
services/imports/wakatime_heartbeats.go:208
↓ 1 callersFunctiongenerate_data
(n: int, n_projects: int = 5, n_past_hours: int = 24)
scripts/sample_data.py:65
↓ 1 callersMethodgetAdminMetrics
(user *models.User)
routes/api/metrics.go:383
↓ 1 callersMethodgetAliasResolver
(user *models.User)
services/summary.go:561
← previousnext →701–800 of 1,898, ranked by callers