Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/muety/wakapi
/ functions
Functions
1,898 in github.com/muety/wakapi
⨍
Functions
1,898
◇
Types & classes
319
↓ 7 callers
Method
HeartbeatsTimeout
()
models/user.go:181
↓ 7 callers
Method
Insert
(*models.Summary)
services/services.go:125
↓ 7 callers
Method
IsProjectDetails
()
models/summary.go:448
↓ 7 callers
Method
Limit
()
utils/http.go:43
↓ 7 callers
Function
NewSharedDataMiddleware
()
middlewares/shared_data.go:32
↓ 7 callers
Method
ParseTrustReverseProxyIPs
()
config/config.go:429
↓ 7 callers
Function
ResolveIntervalRawTZ
(interval string, tz *time.Location, startOfWeek time.Weekday)
helpers/interval.go:30
↓ 7 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)
middlewares/custom/wakatime.go:52
↓ 7 callers
Method
Sorted
()
models/summary.go:110
↓ 7 callers
Method
WithRedirectErrorMessage
(message string)
middlewares/authenticate.go:65
↓ 7 callers
Method
WithRedirectTarget
(path string)
middlewares/authenticate.go:60
↓ 7 callers
Method
authorizeUser
(user mockoidc.User, provider string)
routes/login_test.go:688
↓ 7 callers
Function
defaultErrorRedirectTarget
()
routes/routes.go:126
↓ 7 callers
Function
filterDurations
(from, to time.Time, durations models.Durations)
services/summary_test.go:841
↓ 6 callers
Function
FormatDateHuman
(date time.Time)
helpers/date.go:48
↓ 6 callers
Method
GetAliasOrDefault
(userId string, summaryType uint8, value string)
services/alias.go:78
↓ 6 callers
Method
GetByType
(summaryType uint8)
models/summary.go:141
↓ 6 callers
Method
GetByUser
(string)
services/services.go:32
↓ 6 callers
Method
GetByUser
(string)
repositories/repositories.go:25
↓ 6 callers
Function
GetEntityColumn
(t uint8)
models/heartbeat.go:173
↓ 6 callers
Method
GetPublicUrl
()
config/config.go:526
↓ 6 callers
Method
GetString
(string)
repositories/repositories.go:78
↓ 6 callers
Method
IsEmpty
()
models/filters.go:123
↓ 6 callers
Method
IsValid
()
models/alias.go:20
↓ 6 callers
Method
MappedItems
()
models/summary.go:127
↓ 6 callers
Method
MayInitializeUser
(userId string)
services/alias.go:47
↓ 6 callers
Method
One
()
models/filters.go:93
↓ 6 callers
Method
PostSignup
(w http.ResponseWriter, r *http.Request)
routes/login.go:177
↓ 6 callers
Method
ResolveByUser
(string)
services/services.go:87
↓ 6 callers
Method
TimeEnd
()
models/duration.go:38
↓ 6 callers
Method
UpdateField
(*models.User, string, interface{})
repositories/repositories.go:133
↓ 6 callers
Method
WithAliases
WithAliases adds OR-conditions for every alias of a Filter key as additional Filter keys
models/filters.go:219
↓ 6 callers
Method
WithEntityIgnored
()
models/duration.go:97
↓ 6 callers
Method
buildViewModel
(r *http.Request, w http.ResponseWriter, args *map[string]interface{})
routes/settings.go:1081
↓ 6 callers
Method
filter
(durations []*models.Duration, user *models.User, filters *models.Filters)
services/duration.go:269
↓ 6 callers
Method
getMissingIntervals
(from, to time.Time, summaries []*models.Summary, precise bool)
services/summary.go:477
↓ 6 callers
Method
invalidateUserCache
(userId string)
services/summary.go:553
↓ 6 callers
Method
loginAsUser
(user *models.User)
routes/webauthn_test.go:103
↓ 6 callers
Method
tryGetUserByTrustedHeader
(r *http.Request, create bool)
middlewares/authenticate.go:169
↓ 5 callers
Method
Augment
(languageMappings map[string]string)
models/heartbeat.go:75
↓ 5 callers
Function
CheckEffectiveUser
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 callers
Function
CloneStringMap
(m map[string]string, keysToLower bool)
utils/collection.go:17
↓ 5 callers
Method
CountAliasesByType
(entity uint8)
models/filters.go:150
↓ 5 callers
Method
DeleteByUser
(string)
services/services.go:122
↓ 5 callers
Method
FlushUserCache
(userId string)
services/user.go:368
↓ 5 callers
Function
GetDefaultQueue
()
config/jobqueue.go:53
↓ 5 callers
Method
GetIndex
(w http.ResponseWriter, r *http.Request)
routes/home.go:44
↓ 5 callers
Function
GetSessionStore
()
config/session.go:27
↓ 5 callers
Method
GetUserByKey
(key string, requireFullAccessKey bool)
services/user.go:103
↓ 5 callers
Method
GetUserProjectStats
(*models.User, time.Time, time.Time, string, *utils.PageParams, bool)
services/services.go:39
↓ 5 callers
Function
HalfCPUs
()
utils/system.go:12
↓ 5 callers
Method
HasActiveSubscription
HasActiveSubscription returns true if subscriptions are enabled on the server and the user has got one
models/user.go:201
↓ 5 callers
Method
Hash
()
models/filters.go:192
↓ 5 callers
Function
HashPassword
(plain, pepper string)
utils/auth.go:58
↓ 5 callers
Method
InsertBatch
([]*models.Heartbeat)
services/services.go:44
↓ 5 callers
Method
IsMySQL
()
config/config.go:514
↓ 5 callers
Method
IsProjectDetails
()
models/filters.go:308
↓ 5 callers
Method
KeepOnly
(types map[uint8]bool)
models/summary.go:197
↓ 5 callers
Function
NewDurationFromHeartbeat
(h *Heartbeat)
models/duration.go:58
↓ 5 callers
Function
ParseUserAgent
ParseUserAgent extracts the operating system and editor from a User-Agent string.
utils/http.go:96
↓ 5 callers
Method
PostLogin
(w http.ResponseWriter, r *http.Request)
routes/login.go:103
↓ 5 callers
Function
ResolveMaximumRange
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 callers
Method
Schedule
()
services/services.go:22
↓ 5 callers
Method
Send
(*models.Mail)
services/mail/mail.go:32
↓ 5 callers
Method
SetConfigValue
(key string, val interface{})
services/mail/smtp_test.go:273
↓ 5 callers
Method
String
()
config/config.go:250
↓ 5 callers
Method
WakaTimeURL
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 callers
Method
WithHTML
(html string)
models/mail.go:31
↓ 5 callers
Method
buildTimeFilteredQuery
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 callers
Method
createSut
()
services/project_test.go:42
↓ 5 callers
Method
fmtName
(name string)
services/mail/mail.go:185
↓ 5 callers
Function
mergeCookies
(base []*http.Cookie, updates []*http.Cookie)
routes/webauthn_test.go:512
↓ 5 callers
Function
mockUserAwareRequest
(requestedUser, authorizedUser string)
routes/utils/user_utils_test.go:63
↓ 5 callers
Method
queryAddTimeSorting
(q *gorm.DB, desc bool)
repositories/duration.go:134
↓ 5 callers
Method
tryHandleOidc
redirect if oidc id token was found, but expired returns true if further authentication can be skipped
middlewares/authenticate.go:226
↓ 5 callers
Method
withUser
(r *http.Request, user *models.User)
middlewares/custom/wakatime_test.go:232
↓ 4 callers
Method
Aliased
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 callers
Function
CanonicalName
(value string, entityType uint8)
models/canonical_names.go:25
↓ 4 callers
Method
Count
()
services/services.go:172
↓ 4 callers
Method
CountByType
(entity uint8)
models/filters.go:146
↓ 4 callers
Method
DeleteByUser
(string)
repositories/repositories.go:114
↓ 4 callers
Method
DeleteByUserBefore
(string, time.Time)
services/services.go:123
↓ 4 callers
Method
GetClearCookie
(name string)
config/config.go:284
↓ 4 callers
Method
GetHumanReadable
()
models/interval.go:56
↓ 4 callers
Function
GetOidcProvider
(name string)
config/oidc.go:123
↓ 4 callers
Method
InTZ
inplace!
models/summary.go:428
↓ 4 callers
Method
Key
()
models/metrics/metric.go:40
↓ 4 callers
Method
Last
()
models/durations.go:40
↓ 4 callers
Method
LoadCredentialIntoUser
(*models.User)
services/services.go:197
↓ 4 callers
Function
NewSMTPSendingService
(config conf.SMTPMailConfig)
services/mail/smtp.go:18
↓ 4 callers
Function
NewSharedData
()
config/shared_data.go:18
↓ 4 callers
Function
ParseDateTimeTZ
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 callers
Function
ParseInterval
(interval string)
helpers/interval.go:11
↓ 4 callers
Function
ParseSummaryFilters
(r *http.Request)
helpers/summary.go:48
↓ 4 callers
Method
PutString
(*models.KeyStringValue)
services/services.go:76
↓ 4 callers
Function
SetEventBus
(eventBus *hub.Hub)
config/eventbus.go:41
↓ 4 callers
Method
Summarize
(from, to time.Time, user *models.User, filters *models.Filters, customTimeout *time.Duration)
services/summary.go:199
↓ 4 callers
Method
Validate
(user *models.User)
services/imports/wakatime.go:43
↓ 4 callers
Method
Value
()
models/shared.go:122
↓ 4 callers
Method
WithFullAccessOnly
(requireFullAccess bool)
middlewares/authenticate.go:70
← previous
next →
101–200 of 1,898, ranked by callers