MCPcopy Index your code

hub / github.com/monitoror/monitoror / functions

Functions1,310 in github.com/monitoror/monitoror

↓ 325 callersMethodGet
(ctx context.Context, owner string, repo string, number int)
pkg/gogithub/pullrequest.go:13
↓ 267 callersMethodError
()
models/error.go:31
↓ 218 callersMethodGet
(url string)
monitorables/http/api/repository.go:11
↓ 97 callersMethodSet
(key string, val interface{}, expires time.Duration)
service/middlewares/cache.go:87
↓ 82 callersMethodAdd
(key string, value interface{}, expires time.Duration)
service/middlewares/cache.go:98
↓ 57 callersFunctionAssertParams
(t *testing.T, p params.Validator, errorCount int, optionalConfigVersion ...*versions.ConfigVersion)
internal/pkg/monitorable/test/params.go:15
↓ 49 callersMethodGET
(path string, handlerFunc echo.HandlerFunc, options ...options.RouterOption)
service/router/router.go:20
↓ 44 callersMethodWithBuild
()
models/tilebuild.go:26
↓ 42 callersMethodRegisterTile
(tileType coreModels.TileType, minimalVersion versions.RawVersion, variantNames []coreModels.VariantName)
registry/registry.go:18
↓ 39 callersMethodEnable
Enable monitorable variant (add route to echo and enable tile for config verify / hydrate)
models/monitorable.go:17
↓ 35 callersMethodString
Used by cache as identifier
monitorables/travisci/api/models/params.go:22
↓ 32 callersMethodError
()
api/config/models/errors.go:29
↓ 31 callersMethodAddErrors
(errors ...ConfigError)
api/config/models/config.go:77
↓ 27 callersFunctionHumanizeBranch
(branch string)
pkg/git/git.go:7
↓ 26 callersFunctionTime
Time if value == time.Time zero value, return def otherwise return value
pkg/nonempty/nonempty.go:137
↓ 26 callersFunctioninitConfigUsecase
(repository config.Repository)
api/config/usecase/usecase_test.go:32
↓ 25 callersMethodBuild
(params *models.BuildParams)
monitorables/jenkins/api/usecase.go:17
↓ 24 callersFunctionString
String if value == string zero value, return def otherwise return value
pkg/nonempty/nonempty.go:129
↓ 23 callersMethodAdd
(key interface{}, id string, s models.TileStatus, d time.Duration)
internal/pkg/monitorable/cache/build.go:63
↓ 23 callersMethodEnable
(variantName coreModels.VariantName, paramsValidator params.Validator, routePath string)
registry/registry.go:24
↓ 23 callersFunctionStruct
Struct if value == struct zero value, return def otherwise return value
pkg/nonempty/nonempty.go:153
↓ 22 callersMethodGroup
(path string, variantName coreModels.VariantName)
service/router/router.go:17
↓ 21 callersFunctionBindAndValidateParams
(ctx echo.Context, p params.Validator)
internal/pkg/monitorable/delivery/http.go:14
↓ 20 callersFunctionComputeStatus
ComputeStatus determines the tile Status using current time.
internal/pkg/monitorable/faker/faker.go:30
↓ 19 callersFunctionisZero
(x interface{})
pkg/nonempty/nonempty.go:160
↓ 18 callersMethodRegisterMonitorable
(monitorable coreModels.Monitorable)
registry/registry.go:17
↓ 18 callersFunctioninitUsecase
(mockRepository api.Repository)
monitorables/gitlab/api/usecase/gitlab_test.go:20
↓ 16 callersMethodRegisterGenerator
(generatedTileType coreModels.TileType, minimalVersion versions.RawVersion, variantNames []coreModels.VariantN
registry/registry.go:19
↓ 16 callersFunctioninitUsecase
(mockRepository api.Repository)
monitorables/pingdom/api/usecase/pingdom_test.go:19
↓ 15 callersFunctionGetRefTime
GetRefTime return current time minus random on 5m delta. It's used to randomize staring time of faker
internal/pkg/monitorable/faker/faker.go:66
↓ 15 callersMethodToConfigVersion
()
api/config/versions/version.go:38
↓ 15 callersMethodWithValue
(unit TileValuesUnit)
models/tilevalue.go:19
↓ 14 callersFunctionNewGithubUsecase
(repository api.Repository)
monitorables/github/api/usecase/github.go:44
↓ 14 callersFunctioninitRepository
(t *testing.T)
monitorables/gitlab/api/repository/api_test.go:19
↓ 14 callersFunctionparseState
(state string)
monitorables/travisci/api/usecase/travisci.go:97
↓ 12 callersMethodverifyTile
(configBag *models.ConfigBag, tile *models.TileConfig, groupTile *models.TileConfig)
api/config/usecase/verify.go:65
↓ 11 callersMethodClose
()
pkg/net/net.go:14
↓ 11 callersMethodGetEstimatedDuration
(key interface{})
internal/pkg/monitorable/cache/build.go:26
↓ 11 callersFunctionNewAzureDevOpsUsecase
(repository api.Repository)
monitorables/azuredevops/api/usecase/azuredevops.go:29
↓ 11 callersFunctioninitConfig
(t *testing.T, rawConfig string)
api/config/usecase/verify_test.go:18
↓ 11 callersFunctioninitRepository
(t *testing.T)
monitorables/github/api/repository/api_test.go:18
↓ 11 callersFunctionreadConfig
(input string)
api/config/usecase/usecase_test.go:53
↓ 10 callersFunctionComputeDuration
ComputeStatus determines the tile build duration using current time.
internal/pkg/monitorable/faker/faker.go:55
↓ 10 callersFunctionDuration
Duration if value == time.Duration zero value, return def otherwise return value
pkg/nonempty/nonempty.go:145
↓ 10 callersMethodError
()
internal/pkg/validator/error.go:53
↓ 10 callersMethodGetPreviousStatus
Get Previous Status excludes current status in case of multiple call with the same current build
internal/pkg/monitorable/cache/build.go:44
↓ 10 callersFunctionInitMockAndStore
()
internal/pkg/monitorable/test/monitorable.go:31
↓ 10 callersFunctionInt64
Int64 if value == int64 zero value, return def otherwise return value
pkg/nonempty/nonempty.go:65
↓ 10 callersFunctionInterface
Interface transform interface to string
pkg/humanize/humanize.go:11
↓ 10 callersFunctionNewRegistry
()
registry/registry.go:110
↓ 10 callersFunctionStruct
(s interface{})
internal/pkg/validator/validate/validate.go:62
↓ 10 callersFunctionparseBuildResult
(status, result string)
monitorables/azuredevops/api/usecase/azuredevops.go:167
↓ 10 callersFunctionparseStatus
(status string)
monitorables/gitlab/api/usecase/gitlab.go:269
↓ 9 callersMethodGetFieldName
()
internal/pkg/validator/error.go:10
↓ 9 callersMethodGetVariantsNames
()
monitorables/github/github.go:55
↓ 9 callersMethodGetVariantsNames
()
monitorables/gitlab/gitlab.go:52
↓ 9 callersMethodGetVariantsNames
GetVariantsNames return variant list extract from config
models/monitorable.go:10
↓ 9 callersMethodHTTPFormatted
(params *models.HTTPFormattedParams)
monitorables/http/api/usecase.go:20
↓ 9 callersMethodHydrate
(config *models.ConfigBag)
api/config/usecase.go:14
↓ 9 callersFunctionNewGithubDelivery
(p api.Usecase)
monitorables/github/api/delivery/http/handlers.go:17
↓ 9 callersFunctionNewJenkinsUsecase
(repository api.Repository)
monitorables/jenkins/api/usecase/jenkins.go:31
↓ 9 callersFunctionNewTile
(t TileType)
models/tile.go:38
↓ 9 callersMethodRouterAssertNumberOfCalls
(t *testing.T, group int, get int)
internal/pkg/monitorable/test/monitorable.go:17
↓ 9 callersMethodTileSettingsManagerAssertNumberOfCalls
(t *testing.T, register int, registerGenerator int, enable int, enableGenerator int)
internal/pkg/monitorable/test/monitorable.go:18
↓ 9 callersFunctioninitEcho
()
monitorables/github/api/delivery/http/handlers_test.go:23
↓ 9 callersFunctioninitRepository
(t *testing.T, buildClient build.Client, releaseClient release.Client)
monitorables/azuredevops/api/repository/api_test.go:23
↓ 8 callersMethodChecks
(params *models.ChecksParams)
monitorables/github/api/usecase.go:20
↓ 8 callersMethodGetChecks
(owner, repository, ref string)
monitorables/github/api/repository.go:10
↓ 8 callersMethodGetVariantsNames
()
monitorables/http/http.go:50
↓ 8 callersMethodGetVariantsNames
()
monitorables/pingdom/pingdom.go:54
↓ 8 callersFunctionHTTPErrorHandler
(err error, ctx echo.Context)
service/handlers/error.go:20
↓ 8 callersMethodMergeRequest
(params *models.MergeRequestParams)
monitorables/gitlab/api/usecase.go:21
↓ 8 callersFunctionNewGitlabDelivery
(p api.Usecase)
monitorables/gitlab/api/delivery/http/handlers.go:17
↓ 8 callersMethodPipeline
(params *models.PipelineParams)
monitorables/gitlab/api/usecase.go:20
↓ 8 callersFunctionReadConfig
(reader io.Reader)
api/config/repository/repository.go:24
↓ 8 callersFunctionStruct
(s interface{}, version *versions.ConfigVersion)
internal/pkg/validator/available/available.go:39
↓ 8 callersMethodgetTagsByIDStoreKey
(transaction bool, id int)
monitorables/pingdom/api/usecase/pingdom.go:212
↓ 8 callersFunctioninitEcho
()
monitorables/gitlab/api/delivery/http/handlers_test.go:22
↓ 8 callersFunctioninitErrorEcho
()
service/handlers/error_test.go:22
↓ 8 callersFunctioninitRepository
(t *testing.T, checkAPI pkgPingdom.PingdomCheckAPI, transactionCheckAPI pkgPingdom.PingdomTransactionCheckAPI)
monitorables/pingdom/api/repository/api_test.go:16
↓ 8 callersFunctionparseCheckStatus
(status string)
monitorables/pingdom/api/usecase/pingdom.go:236
↓ 8 callersFunctionparseReleaseStatus
(status string)
monitorables/azuredevops/api/usecase/azuredevops.go:191
↓ 7 callersMethodCheck
(params *models.CheckParams)
monitorables/pingdom/api/usecase.go:18
↓ 7 callersMethodGetErrorID
()
internal/pkg/validator/error.go:8
↓ 7 callersMethodGetJob
(jobName string, branch string)
monitorables/jenkins/api/repository.go:11
↓ 7 callersMethodGetLastBuildStatus
(job *models.Job)
monitorables/jenkins/api/repository.go:12
↓ 7 callersFunctionInitEnvDefaultLabel
InitEnvDefaultLabel extract Label of monitoror Env variable and inject Default label if missing Like: MO_CONFIG=xxx => MO_CONFIG_DEFAULT MO_MONITORA
internal/pkg/env/env.go:20
↓ 7 callersFunctionNewBuildCache
(size int)
internal/pkg/monitorable/cache/build.go:22
↓ 7 callersFunctionNewTravisCIUsecase
(repository api.Repository)
monitorables/travisci/api/usecase/travisci.go:29
↓ 7 callersFunctionPrintStartupLog
(monitororCli *cli.MonitororCli)
cli/printer/startup.go:116
↓ 7 callersMethodRelease
(params *models.ReleaseParams)
monitorables/azuredevops/api/usecase.go:18
↓ 7 callersMethodTransactionCheck
(params *models.TransactionCheckParams)
monitorables/pingdom/api/usecase.go:20
↓ 7 callersFunctionparseResult
(result string)
monitorables/jenkins/api/usecase/jenkins.go:160
↓ 6 callersMethodGetBuild
(project string, definition int, branch *string)
monitorables/azuredevops/api/repository.go:19
↓ 6 callersMethodGetConfig
(params *models.ConfigParams)
api/config/usecase.go:12
↓ 6 callersMethodGetVariantsNames
()
monitorables/azuredevops/azuredevops.go:48
↓ 6 callersFunctionNewAzureDevOpsDelivery
(p api.Usecase)
monitorables/azuredevops/api/delivery/http/handlers.go:17
↓ 6 callersFunctionNewConfigRepository
()
api/config/repository/repository.go:19
↓ 6 callersFunctionNewHTTPDelivery
(p api.Usecase)
monitorables/http/api/delivery/http/handlers.go:18
↓ 6 callersFunctionNewPingdomDelivery
(p api.Usecase)
monitorables/pingdom/api/delivery/http/handlers.go:17
next →1–100 of 1,310, ranked by callers