Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/muety/wakapi
/ functions
Functions
1,898 in github.com/muety/wakapi
⨍
Functions
1,898
◇
Types & classes
319
↓ 1 callers
Method
SendReport
(user *models.User, duration time.Duration)
services/report.go:95
↓ 1 callers
Method
SendSubscriptionNotification
(*models.User, bool)
services/services.go:106
↓ 1 callers
Method
SendWakatimeFailureNotification
(*models.User, int)
services/services.go:103
↓ 1 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
middlewares/authenticate.go:81
↓ 1 callers
Method
SetByType
(summaryType uint8, items *SummaryItems)
models/summary.go:165
↓ 1 callers
Method
SetForcedTls
()
services/mail/smtp_test.go:232
↓ 1 callers
Method
SetNoTls
()
services/mail/smtp_test.go:225
↓ 1 callers
Function
SetOidcState
(state string, r *http.Request, w http.ResponseWriter)
routes/utils/oidc.go:13
↓ 1 callers
Function
SetPrincipal
(r *http.Request, user *models.User)
middlewares/principal.go:10
↓ 1 callers
Method
SetStartTls
()
services/mail/smtp_test.go:239
↓ 1 callers
Method
SetWakatimeApiCredentials
(*models.User, string, string)
services/services.go:179
↓ 1 callers
Method
SetWakatimeApiCredentials
(user *models.User, apiKey string, apiUrl string)
services/user.go:315
↓ 1 callers
Function
SetZone
SetZone overwrites a date's timezone without reinterpreting at
utils/date.go:73
↓ 1 callers
Method
Setup
()
services/mail/smtp_test.go:169
↓ 1 callers
Function
SignupFromOidcIdToken
(idToken *conf.IdTokenPayload)
models/user.go:126
↓ 1 callers
Function
SplitMulti
(s string, delimiters ...string)
utils/strings.go:7
↓ 1 callers
Method
Status
Status returns the HTTP status of the request, or 0 if one has not yet been sent.
middlewares/logging.go:87
↓ 1 callers
Method
StreamAllWithinRaw
(time.Time, time.Time, *models.User)
services/services.go:60
↓ 1 callers
Method
StreamByUserBatched
(user *models.User, batchSize int)
repositories/duration.go:47
↓ 1 callers
Method
StreamWithinBatched
(from, to time.Time, user *models.User, batchSize int)
repositories/heartbeat.go:88
↓ 1 callers
Method
StreamWithinByFilters
(time.Time, time.Time, *models.User, map[string][]string)
repositories/repositories.go:44
↓ 1 callers
Method
String
()
models/mail_address.go:27
↓ 1 callers
Method
SubscriptionExpiredSince
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 callers
Method
Summarize
(time.Time, time.Time, *models.User, *models.Filters, *time.Duration)
services/services.go:119
↓ 1 callers
Method
Timely
(maxAge time.Duration)
models/heartbeat.go:55
↓ 1 callers
Method
TopKeys
(by uint8)
models/leaderboard.go:84
↓ 1 callers
Method
TopKeysByUser
(by uint8, userId string)
models/leaderboard.go:114
↓ 1 callers
Method
TotalNumHeartbeats
()
models/durations.go:19
↓ 1 callers
Method
TrustReverseProxyIPs
()
config/config.go:461
↓ 1 callers
Function
UUIDFromSeed
(seed string)
utils/random.go:19
↓ 1 callers
Method
UnsubscribeLink
()
models/user.go:238
↓ 1 callers
Method
Update
(user *models.User)
services/user.go:273
↓ 1 callers
Method
UpdateCredential
(*webauthn.Credential)
services/services.go:199
↓ 1 callers
Method
UseTLS
()
config/config.go:308
↓ 1 callers
Function
V
(d)
static/assets/js/base.js:2
↓ 1 callers
Method
VacuumOrOptimize
()
repositories/repositories.go:16
↓ 1 callers
Method
Valid
()
models/mail_address.go:50
↓ 1 callers
Function
ValidateCaptcha
(captchaId, captchaValue string)
models/user.go:279
↓ 1 callers
Function
ValidateEmail
(email string)
scripts/email_checker.go:33
↓ 1 callers
Function
ValidateStartOfWeek
(startOfWeek int)
models/user.go:295
↓ 1 callers
Function
ValidateTimezone
(tz string)
models/user.go:290
↓ 1 callers
Function
WaitTimeout
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 callers
Method
WarmUserProjectStatsCache
(user *models.User)
services/housekeeping.go:95
↓ 1 callers
Method
WithCache
(withCache bool)
utils/fs/exists.go:28
↓ 1 callers
Method
WithHtmlText
(t string)
models/view/imprint.go:18
↓ 1 callers
Method
WithId
()
models/user_agent.go:18
↓ 1 callers
Method
WithLatestHeartbeat
(h *models.Heartbeat)
models/compat/wakatime/v1/user.go:63
↓ 1 callers
Method
WithOptionalForMethods
(methods ...string)
middlewares/authenticate.go:55
↓ 1 callers
Function
WithRecovery
WithRecovery executes a given function while recovering from panics and returning them as an errors
utils/func.go:10
↓ 1 callers
Method
WithSuccess
(m string)
models/view/home.go:16
↓ 1 callers
Method
WithTimeout
(interval time.Duration)
models/duration.go:102
↓ 1 callers
Method
WriteString
(str string)
utils/db.go:63
↓ 1 callers
Function
X
(d)
static/assets/js/base.js:2
↓ 1 callers
Function
Y
(d,_)
static/assets/js/base.js:2
↓ 1 callers
Method
aggregateBy
Private summary generation and utility methods
services/summary.go:305
↓ 1 callers
Function
args_to_params
(parsed_args: argparse.Namespace)
scripts/sample_data.py:250
↓ 1 callers
Function
backupView
save view ddl to temporary table to be restored later
migrations/shared.go:34
↓ 1 callers
Function
bit_rol
(d,_)
static/assets/js/base.js:2
↓ 1 callers
Method
buildViewModel
(r *http.Request, w http.ResponseWriter)
routes/setup.go:48
↓ 1 callers
Method
buildViewModel
(r *http.Request, w http.ResponseWriter)
routes/leaderboard.go:62
↓ 1 callers
Method
buildViewModel
(r *http.Request)
routes/imprint.go:41
↓ 1 callers
Method
buildViewModel
(r *http.Request, w http.ResponseWriter)
routes/projects.go:54
↓ 1 callers
Method
buildViewModel
(r *http.Request, w http.ResponseWriter)
routes/home.go:61
↓ 1 callers
Method
buildViewModel
(userAgents []*models.UserAgent)
routes/compat/wakatime/v1/user_agents.go:64
↓ 1 callers
Method
buildViewModel
(globalLeaderboard, languageLeaderboard models.Leaderboard, user *models.User, interval *models.IntervalKey, p
routes/compat/wakatime/v1/leaders.go:115
↓ 1 callers
Method
cancelUserSubscription
(user *models.User)
routes/subscription.go:351
↓ 1 callers
Function
checkErr
(expected, actual error)
utils/http_test.go:206
↓ 1 callers
Method
checkInvalidateProjectStatsCache
(newHeartbeat *models.Heartbeat)
services/project.go:165
↓ 1 callers
Method
checkInvalidateRangeCache
(newHeartbeat *models.Heartbeat)
services/heartbeat.go:383
↓ 1 callers
Method
checkUpdateCascade
()
services/user.go:386
↓ 1 callers
Method
checkUrl
(user *models.User)
services/imports/wakatime.go:47
↓ 1 callers
Method
clearSubscriptionNotificationStatus
(userId string)
routes/subscription.go:398
↓ 1 callers
Method
coalesceExistingUser
(username string)
routes/login.go:654
↓ 1 callers
Method
countUserTotalTime
(userId string)
services/misc.go:198
↓ 1 callers
Function
createAndLoadConfig
()
routes/webauthn_test.go:557
↓ 1 callers
Function
createSchema
()
scripts/dbmigrate.go:418
↓ 1 callers
Method
deleteAuthenticator
(name string, cookies []*http.Cookie)
routes/webauthn_test.go:429
↓ 1 callers
Function
destroy
()
scripts/dbmigrate.go:138
↓ 1 callers
Method
dispatchAction
(action string)
routes/settings.go:167
↓ 1 callers
Method
existsSubscriptionNotifications
()
services/misc.go:235
↓ 1 callers
Method
existsUsersTotalTime
()
services/misc.go:227
↓ 1 callers
Method
extractAvailableFilters
extractAvailableFilters extracts available filter names from a summary's various item collections.
routes/summary.go:188
↓ 1 callers
Function
extractEditor
(ua string, parts []string)
utils/http.go:196
↓ 1 callers
Function
extractOS
extractOS identifies the operating system from user agents parts, looking for "(OS-...)" or standalone "os_arch" patterns.
utils/http.go:170
↓ 1 callers
Function
extractUser
(r *http.Request)
helpers/summary.go:80
↓ 1 callers
Function
fadeColorToTransparent
(colorHex string, transparency float64)
models/view/projects.go:49
↓ 1 callers
Method
fetchHeartbeats
https://wakatime.com/api/v1/users/current/heartbeats?date=2021-02-05 https://pastr.de/p/b5p4od5s8w0pfntmwoi117jy
services/imports/wakatime_heartbeats.go:139
↓ 1 callers
Method
fetchRange
https://wakatime.com/api/v1/users/current/all_time_since_today https://pastr.de/p/w8xb4biv575pu32pox7jj2gr
services/imports/wakatime_heartbeats.go:171
↓ 1 callers
Method
fetchSplitSummaries
(params *models.SummaryParams)
routes/summary.go:174
↓ 1 callers
Function
fetch_all_heartbeats
(start: datetime.date, end: datetime.date)
scripts/download_heartbeats.py:40
↓ 1 callers
Function
fetch_heartbeats
(date: datetime.date)
scripts/download_heartbeats.py:46
↓ 1 callers
Function
fetch_total_range
(min_date: datetime.date, max_date: datetime.date)
scripts/download_heartbeats.py:31
↓ 1 callers
Method
filtersToColumnMap
(filters *models.Filters)
services/duration.go:329
↓ 1 callers
Method
findCurrentStripeSubscription
(customerId string)
routes/subscription.go:380
↓ 1 callers
Function
fixHeartbeatsBatched
(heartbeats []*models.Heartbeat)
scripts/dbmigrate.go:458
↓ 1 callers
Method
fixZeroDuration
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 callers
Function
generateDays
(from, to time.Time)
services/imports/wakatime_heartbeats.go:208
↓ 1 callers
Function
generate_data
(n: int, n_projects: int = 5, n_past_hours: int = 24)
scripts/sample_data.py:65
↓ 1 callers
Method
getAdminMetrics
(user *models.User)
routes/api/metrics.go:383
↓ 1 callers
Method
getAliasResolver
(user *models.User)
services/summary.go:561
← previous
next →
701–800 of 1,898, ranked by callers