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
↓ 3 callers
Function
run
(args)
scripts/send_mail.py:37
↓ 3 callers
Function
sqliteConnectionString
(config *dbConfig)
config/db.go:116
↓ 3 callers
Function
streamRowsBatched
(rows *sql.Rows, channel chan []*T, db *gorm.DB, batchSize int, onErr func(error))
repositories/base.go:132
↓ 3 callers
Method
toLib
toLib converts the local wrapper type to the library type.
models/webauthn.go:21
↓ 3 callers
Method
tryGetUserByApiKeyQuery
(r *http.Request)
middlewares/authenticate.go:155
↓ 3 callers
Method
updateCache
(reason *models.Alias, removal bool)
services/alias.go:174
↓ 3 callers
Function
withUrlParam
(r *http.Request, key, value string)
routes/compat/wakatime/v1/test_utils_test.go:10
↓ 2 callers
Method
AddMany
(items []*LeaderboardItemRanked)
models/leaderboard.go:47
↓ 2 callers
Method
ApplyFilter
ApplyFilter drops all summary elements of the given type that don't match the given query. Please note: this only makes sense if you're eventually int
models/summary.go:215
↓ 2 callers
Method
Check
()
services/mail/smtp_test.go:158
↓ 2 callers
Method
Claims
(scope []string, claims *mockoidc.IDTokenClaims)
routes/test_utils.go:30
↓ 2 callers
Method
CleanInactiveUsers
(before time.Time)
services/housekeeping.go:70
↓ 2 callers
Method
ClearInboxes
()
services/mail/smtp_test.go:259
↓ 2 callers
Method
ClearPlaceholders
()
models/heartbeat.go:128
↓ 2 callers
Function
ComparePassword
password hashing
utils/auth.go:51
↓ 2 callers
Method
ComputeLeaderboard
(users []*models.User, interval *models.IntervalKey, by []uint8)
services/leaderboard.go:102
↓ 2 callers
Method
ConnStr
()
config/config.go:530
↓ 2 callers
Method
CountByUsers
([]*models.User)
services/services.go:47
↓ 2 callers
Method
CreateCookie
(name, value string)
config/config.go:280
↓ 2 callers
Method
CreateCredential
(*webauthn.Credential, *models.User, string)
services/services.go:194
↓ 2 callers
Function
DefaultTemplateFuncs
()
routes/routes.go:23
↓ 2 callers
Method
DeleteString
(string)
repositories/repositories.go:80
↓ 2 callers
Method
DeleteWildcardTx
(string, *gorm.DB)
services/services.go:80
↓ 2 callers
Method
FillBy
inplace!
models/summary.go:263
↓ 2 callers
Method
FilterEmpty
inplace!
models/leaderboard.go:54
↓ 2 callers
Function
FormatDate
(date time.Time)
helpers/date.go:28
↓ 2 callers
Method
GetActive
(bool)
services/services.go:171
↓ 2 callers
Method
GetAggregatedByIntervalAndUser
(*models.IntervalKey, string, *uint8, bool)
services/services.go:151
↓ 2 callers
Method
GetAggregationTimeCron
()
config/config.go:335
↓ 2 callers
Method
GetAllByLeaderboard
(bool)
services/services.go:170
↓ 2 callers
Method
GetAllByReports
(bool)
services/services.go:169
↓ 2 callers
Method
GetAllMapped
()
services/services.go:166
↓ 2 callers
Method
GetAllWithinByFilters
(time.Time, time.Time, *models.User, *models.Filters)
services/services.go:49
↓ 2 callers
Method
GetByApiKey
(string, bool)
services/services.go:187
↓ 2 callers
Method
GetById
(uint)
services/services.go:93
↓ 2 callers
Method
GetByInterval
(*models.IntervalKey, *utils.PageParams, bool)
services/services.go:148
↓ 2 callers
Method
GetByLastActiveAfter
(time.Time)
repositories/repositories.go:129
↓ 2 callers
Method
GetByUser
(userId string)
services/project_label.go:36
↓ 2 callers
Method
GetByUserGroupedInverted
(string)
services/services.go:96
↓ 2 callers
Method
GetDialector
()
repositories/repositories.go:12
↓ 2 callers
Method
GetDialector
()
repositories/base.go:25
↓ 2 callers
Method
GetFirstAll
()
services/services.go:50
↓ 2 callers
Method
GetFirstByUser
(*models.User)
services/services.go:53
↓ 2 callers
Function
GetLanguageIcon
(language string)
models/view/utils.go:5
↓ 2 callers
Method
GetLatestByFilters
(*models.User, map[string][]string)
repositories/repositories.go:37
↓ 2 callers
Method
GetLatestByUser
(*models.User)
repositories/repositories.go:65
↓ 2 callers
Method
GetLeaderboardGenerationTimeCron
()
config/config.go:378
↓ 2 callers
Method
GetMany
([]string)
services/services.go:167
↓ 2 callers
Method
GetString
(string)
services/services.go:73
↓ 2 callers
Method
GetUserByKey
(string, bool)
services/services.go:158
↓ 2 callers
Method
GetUserByOidc
(string, string)
services/services.go:163
↓ 2 callers
Method
GetUserProjectStats
(*models.User, time.Time, time.Time)
repositories/repositories.go:53
↓ 2 callers
Method
GetWeeklyReportCron
()
config/config.go:355
↓ 2 callers
Method
Handler
(h http.Handler)
middlewares/authenticate.go:75
↓ 2 callers
Method
Hashed
Hash is used to prevent duplicate heartbeats Using a UNIQUE INDEX over all relevant columns would be more straightforward, whereas manually computing
models/heartbeat.go:164
↓ 2 callers
Function
IPv4HandledByDualStackHttp
(server4, server6 *http.Server)
utils/net.go:12
↓ 2 callers
Method
Import
(*models.User, time.Time, time.Time)
services/imports/importers.go:9
↓ 2 callers
Method
ImportAll
(*models.User)
services/imports/importers.go:10
↓ 2 callers
Function
InitWebAuthn
(config *Config)
config/config.go:770
↓ 2 callers
Method
Insert
(summary *models.Summary)
repositories/summary.go:54
↓ 2 callers
Method
InsertBatch
([]*models.Duration)
repositories/repositories.go:59
↓ 2 callers
Function
InsertBatchChunked
(data []T, model T, db *gorm.DB)
repositories/base.go:94
↓ 2 callers
Method
IsImportHostWhitelisted
(host string)
config/config.go:417
↓ 2 callers
Function
LoadTemplates
(templateFs fs.FS, funcs template.FuncMap)
utils/template.go:28
↓ 2 callers
Function
MD5
(d)
static/assets/js/base.js:2
↓ 2 callers
Method
MapUsersById
(users []*models.User)
services/user.go:358
↓ 2 callers
Method
MustGetString
(string)
services/services.go:74
↓ 2 callers
Function
NativeSummaryTypes
()
models/summary.go:88
↓ 2 callers
Function
New
()
config/sentry.go:27
↓ 2 callers
Function
NewAliasService
(aliasRepo repositories.IAliasRepository)
services/alias.go:22
↓ 2 callers
Function
NewAllTimeFrom
(summary *models.Summary)
models/compat/wakatime/v1/all_time.go:30
↓ 2 callers
Function
NewApiRootHandler
()
routes/api/root.go:13
↓ 2 callers
Function
NewBadgeDataFrom
(summary *models.Summary)
models/compat/shields/v1/badge.go:22
↓ 2 callers
Function
NewBadgeHandler
(userService services.IUserService, summaryService services.ISummaryService)
routes/api/badge.go:28
↓ 2 callers
Function
NewFilterWithMultiple
(entity uint8, keys []string)
models/filters.go:51
↓ 2 callers
Function
NewHousekeepingService
(userService IUserService, heartbeatService IHeartbeatService, projectService IProjectService, summaryService
services/housekeeping.go:25
↓ 2 callers
Function
NewProjectService
(aliasService IAliasService, heartbeatRepo repositories.IHeartbeatRepository, heartbeatSrvc IHeartbeatService)
services/project.go:29
↓ 2 callers
Function
NewSettingsHandler
( userService services.IUserService, heartbeatService services.IHeartbeatService, durationService services.
routes/settings.go:65
↓ 2 callers
Function
NewSummariesFrom
(summaries []*models.Summary)
models/compat/wakatime/v1/summaries.go:98
↓ 2 callers
Function
NewWakatimeDumpImporter
(apiKey string)
services/imports/wakatime_dump.go:29
↓ 2 callers
Function
NewWakatimeHeartbeatImporter
(apiKey string)
services/imports/wakatime_heartbeats.go:38
↓ 2 callers
Function
NewWakatimeImporter
(apiKey string, forceLegacy bool)
services/imports/wakatime.go:19
↓ 2 callers
Function
ParseSummaryParams
(r *http.Request)
helpers/summary.go:12
↓ 2 callers
Method
RangeDays
()
models/summary.go:464
↓ 2 callers
Method
Regenerate
(user *models.User, forceAll bool)
services/duration.go:118
↓ 2 callers
Method
Regenerate
(*models.User, bool)
services/services.go:111
↓ 2 callers
Function
RegisterOidcProvider
(providerCfg *oidcProviderConfig)
config/oidc.go:90
↓ 2 callers
Method
RegisterRoutes
(router chi.Router)
routes/projects.go:33
↓ 2 callers
Method
RegisterRoutes
(router chi.Router)
routes/compat/wakatime/v1/users.go:29
↓ 2 callers
Method
RegisterRoutes
(router chi.Router)
routes/api/heartbeat.go:37
↓ 2 callers
Method
RegisterRoutes
(router chi.Router)
routes/api/root.go:17
↓ 2 callers
Method
ReplaceKeySuffix
(string, string)
services/services.go:81
↓ 2 callers
Method
Sanitized
()
models/mail.go:37
↓ 2 callers
Method
Search
(string)
repositories/repositories.go:84
↓ 2 callers
Method
StreamWithin
(time.Time, time.Time, *models.User)
repositories/repositories.go:43
↓ 2 callers
Method
Strings
()
models/mail_address.go:54
↓ 2 callers
Function
SubSlice
(slice []T, from, to uint)
utils/collection.go:7
↓ 2 callers
Method
TZOffset
TZOffset returns the time difference between the user's current time zone and UTC TODO: is this actually working??
models/user.go:156
↓ 2 callers
Method
TopKeysTotals
(by uint8)
models/leaderboard.go:90
↓ 2 callers
Method
TopKeysTotalsByUser
(by uint8, userId string)
models/leaderboard.go:120
← previous
next →
301–400 of 1,898, ranked by callers