MCPcopy Index your code

hub / github.com/muety/wakapi / functions

Functions1,898 in github.com/muety/wakapi

↓ 602 callersMethodT
()
models/shared.go:134
↓ 403 callersMethodGet
(time.Time, time.Time, *models.User, *models.Filters, *time.Duration, bool)
services/services.go:110
↓ 201 callersMethodAdd
(item *LeaderboardItemRanked)
models/leaderboard.go:39
↓ 129 callersFunctionLog
()
config/sentry.go:51
↓ 98 callersMethodWriteHeader
(code int)
middlewares/logging.go:117
↓ 88 callersMethodRequest
(r *http.Request)
config/sentry.go:66
↓ 59 callersMethodSet
(key K, value V)
lib/concurrent_map.go:16
↓ 56 callersMethodIsDev
()
config/config.go:304
↓ 54 callersFunctionGet
()
config/config.go:582
↓ 47 callersFunctionloadTemplates
()
routes/routes.go:116
↓ 46 callersMethodString
()
models/mail.go:50
↓ 45 callersMethodFatal
(msg string, args ...any)
config/sentry.go:60
↓ 45 callersFunctionGetPrincipal
(r *http.Request)
middlewares/principal.go:14
↓ 45 callersMethodTotalTimeBy
(entityType uint8)
models/summary.go:318
↓ 44 callersMethodHeader
()
models/metrics/metric.go:41
↓ 42 callersMethodWithError
(m string)
models/view/home.go:21
↓ 41 callersMethodWrite
(buf []byte)
middlewares/logging.go:124
↓ 39 callersMethodHashed
()
models/duration.go:107
↓ 38 callersMethodLen
()
lib/concurrent_map.go:40
↓ 38 callersMethodbuildViewModel
(r *http.Request, w http.ResponseWriter, withCaptcha bool)
routes/login.go:602
↓ 36 callersFunctionNewAuthenticateMiddleware
(userService services.IUserService)
middlewares/authenticate.go:40
↓ 31 callersFunctionhasRun
(name string, db *gorm.DB)
migrations/shared.go:13
↓ 31 callersFunctionsetHasRun
(name string, db *gorm.DB)
migrations/shared.go:24
↓ 30 callersMethodTotalTimeByKey
(entityType uint8, key string)
models/summary.go:328
↓ 29 callersMethodScan
(value interface{})
models/shared.go:82
↓ 29 callersMethodTZ
()
models/user.go:143
↓ 28 callersFunctionregisterPostMigration
(f migrationFunc)
migrations/migrations.go:82
↓ 27 callersMethodRaw
()
models/mail_address.go:31
↓ 26 callersMethodSetError
(string)
models/view/common.go:9
↓ 25 callersFunctionSet
(config *Config)
config/config.go:578
↓ 24 callersMethodDelete
(*models.User)
repositories/repositories.go:134
↓ 24 callersFunctionEmpty
()
config/config.go:745
↓ 23 callersFunctionNewFiltersWith
(entity uint8, key string)
models/filters.go:47
↓ 23 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
middlewares/sentry.go:23
↓ 23 callersMethodTotalTime
()
models/summary.go:303
↓ 22 callersMethodIsSQLite
()
config/config.go:510
↓ 21 callersMethodDelete
(*models.User)
services/services.go:176
↓ 20 callersMethodPost
@Summary Push a new heartbeat @ID post-heartbeat @Tags heartbeat @Accept json @Param heartbeat body models.Heartbeat true "A single heartbeat" @Securi
routes/api/heartbeat.go:68
↓ 20 callersFunctiongetRandomColor
(seed)
static/assets/js/summary.js:686
↓ 19 callersMethodCreate
(*models.Alias)
services/services.go:27
↓ 19 callersFunctionNewSharedViewModel
(c *conf.Config, messages *Messages)
models/view/common.go:29
↓ 19 callersMethodWith
(entity uint8, key string)
models/filters.go:56
↓ 18 callersFunctionValidateWakatimeUrl
(baseUrl string)
routes/utils/wakatime_utils.go:11
↓ 17 callersMethodUpdate
(*models.User)
repositories/repositories.go:132
↓ 17 callersFunctiongetColor
(seed, index)
static/assets/js/summary.js:681
↓ 16 callersMethodAliased
(time.Time, time.Time, *models.User, types.SummaryRetriever, *models.Filters, *time.Duration, bool)
services/services.go:117
↓ 16 callersMethodLen
()
models/summary.go:480
↓ 16 callersFunctionRespondJSON
(w http.ResponseWriter, r *http.Request, status int, object interface{})
helpers/http.go:24
↓ 16 callersMethodSetSuccess
(string)
models/view/common.go:10
↓ 16 callersFunctionhexToRgb
(hex)
static/assets/js/summary.js:698
↓ 16 callersFunctionmd5_ff
(d,_,m,f,r,i,n)
static/assets/js/base.js:2
↓ 16 callersFunctionmd5_gg
(d,_,m,f,r,i,n)
static/assets/js/base.js:2
↓ 16 callersFunctionmd5_hh
(d,_,m,f,r,i,n)
static/assets/js/base.js:2
↓ 16 callersFunctionmd5_ii
(d,_,m,f,r,i,n)
static/assets/js/base.js:2
↓ 15 callersMethodFirst
()
models/durations.go:32
↓ 15 callersFunctionconvertEntry
(e *models.SummaryItem, entityTotal time.Duration)
models/compat/wakatime/v1/summaries.go:256
↓ 14 callersFunctionEventBus
()
config/eventbus.go:37
↓ 14 callersFunctionWithUrlParam
https://github.com/go-chi/chi/issues/76#issuecomment-370145140
routes/test_utils.go:14
↓ 13 callersMethodGet
(from, to time.Time, user *models.User, filters *models.Filters, customTimeout *time.Duration, skipCache bool)
services/duration.go:68
↓ 13 callersMethodGetUserById
(string)
services/services.go:157
↓ 13 callersMethodMatchAny
(search string)
models/filters.go:33
↓ 13 callersFunctionNewBaseRepository
(db *gorm.DB)
repositories/base.go:21
↓ 13 callersFunctionNewSummaryService
(summaryRepo repositories.ISummaryRepository, heartbeatService IHeartbeatService, durationService IDurationSer
services/summary.go:36
↓ 12 callersMethodExists
()
models/filters.go:29
↓ 12 callersFunctionFmtWakatimeDuration
(d time.Duration)
helpers/date.go:52
↓ 12 callersMethodGetDefaultScope
()
services/services.go:143
↓ 12 callersFunctionIsDev
(env string)
config/config.go:534
↓ 12 callersMethodUpdate
(*models.User)
services/services.go:175
↓ 12 callersFunctionshouldUpdate
(index)
static/assets/js/summary.js:91
↓ 12 callersFunctionstreamSlice
(data []T)
services/duration_test.go:568
↓ 11 callersFunctionGetQueue
(name string)
config/jobqueue.go:57
↓ 11 callersFunctionQuoteSql
QuoteSql quotes a SQL statement with the given identifiers.
utils/db.go:75
↓ 11 callersFunctionSplitRangeByDays
SplitRangeByDays creates a slice of intervals between from and to, each of which is at max of 24 hours length and has its split at midnight
utils/date.go:46
↓ 11 callersMethodStartOfWeekDay
StartOfWeekDay returns the user's preferred start of week as time.Weekday
models/user.go:162
↓ 11 callersFunctionregisterPreMigration
(f migrationFunc)
migrations/migrations.go:78
↓ 10 callersMethodOpen
(name string)
utils/fs/exists.go:47
↓ 10 callersFunctionfilterHeartbeats
(from, to time.Time, heartbeats []*models.Heartbeat)
services/duration_test.go:558
↓ 9 callersMethodCount
()
repositories/repositories.go:130
↓ 9 callersFunctionNewDurationService
(durationRepository repositories.IDurationRepository, heartbeatService IHeartbeatService, userService IUserSer
services/duration.go:36
↓ 9 callersFunctionRaiseForStatus
(res *http.Response, err error)
utils/http.go:151
↓ 9 callersFunctionResolveIntervalTZ
(interval *models.IntervalKey, tz *time.Location, startOfWeek time.Weekday)
helpers/interval.go:38
↓ 9 callersMethodRetrieve
(from, to time.Time, user *models.User, filters *models.Filters, customTimeout *time.Duration)
services/summary.go:140
↓ 9 callersMethodgetSessionError
(r *http.Request)
routes/login_test.go:680
↓ 9 callersFunctiongetTooltipOptions
(key, stacked)
static/assets/js/summary.js:73
↓ 9 callersMethodmergeSummaryItems
(existing []*models.SummaryItem, new []*models.SummaryItem)
services/summary.go:447
↓ 9 callersMethodmockCreateCredential
(user *models.User, name string, credential *virtualwebauthn.Credential)
routes/webauthn_test.go:109
↓ 9 callersMethodregisterAuthenticator
(user *models.User, name string, authenticator *virtualwebauthn.Authenticator, credential *virtualwebauthn.Cre
routes/webauthn_test.go:397
↓ 8 callersFunctionBeginOfToday
(tz *time.Location)
utils/date.go:20
↓ 8 callersMethodFindOne
(user models.User)
repositories/repositories.go:121
↓ 8 callersMethodGetOidcCallback
(w http.ResponseWriter, r *http.Request)
routes/login.go:408
↓ 8 callersFunctionInitQueue
(name string, workers int)
config/jobqueue.go:43
↓ 8 callersMethodMatchHeartbeat
(h *Heartbeat)
models/filters.go:200
↓ 8 callersMethodMinDataAge
()
models/user.go:225
↓ 8 callersFunctionNewUserService
(keyValueService IKeyValueService, mailService IMailService, apiKeyService IApiKeyService, userRepo repositori
services/user.go:37
↓ 8 callersMethodWithOptionalFor
(paths ...string)
middlewares/authenticate.go:50
↓ 8 callersFunctionsafe_add
(d,_)
static/assets/js/base.js:2
↓ 8 callersMethodtryLogin
(authenticator *virtualwebauthn.Authenticator, credential *virtualwebauthn.Credential, expectedUser *models.Us
routes/webauthn_test.go:459
↓ 8 callersMethodupdateEntityUserCache
(entityType uint8, entityKey string, userId string)
services/heartbeat.go:323
↓ 7 callersMethodGetAll
()
services/services.go:165
↓ 7 callersMethodGetKey
(t uint8)
models/heartbeat.go:85
next →1–100 of 1,898, ranked by callers