MCPcopy Create free account

hub / github.com/dimiro1/health / functions

Functions90 in github.com/dimiro1/health

↓ 17 callersMethodIsUp
IsUp returns true if Status is Up
health.go:66
↓ 17 callersFunctionNewHealth
NewHealth return a new Health with status Down
health.go:34
↓ 16 callersMethodIsDown
IsDown returns true if Status is Down
health.go:71
↓ 14 callersMethodAddInfo
AddInfo adds a info value to the Info map
health.go:45
↓ 13 callersMethodAddChecker
AddChecker add a Checker to the aggregator
checker.go:48
↓ 10 callersMethodDown
Down set the status to Down
health.go:81
↓ 10 callersMethodUp
Up set the status to Up
health.go:99
↓ 9 callersMethodGetInfo
GetInfo returns a value from the info map
health.go:56
↓ 8 callersFunctionNewChecker
NewChecker returns a new db.Checker with the given URL
db/checker.go:17
↓ 7 callersFunctionNewCompositeChecker
NewCompositeChecker creates a new CompositeChecker
checker.go:32
↓ 5 callersMethodCheck
()
checker.go:9
↓ 5 callersMethodCheck
Check returns the combination of all checkers added if some check is not up, the combined is marked as down
checker.go:54
↓ 5 callersMethodCheck
Check execute two queries in the database The first is a simple one used to verify if the database is up If is Up then another query is executed, quer
db/checker.go:39
↓ 5 callersMethodGetVersion
()
redis/checker.go:7
↓ 5 callersFunctionNewRedigo
NewRedigo create a new redigoRedis with specified network and addr
redis/redigo.go:33
↓ 4 callersMethodIsUnknown
IsUnknown returns true if Status is Unknown
health.go:61
↓ 4 callersFunctionNewHandler
NewHandler returns a new Handler
handler.go:14
↓ 3 callersFunctionNewChecker
NewChecker returns a new url.Checker with the given URL
url/checker.go:17
↓ 3 callersMethodOutOfService
OutOfService set the status to OutOfService
health.go:87
↓ 3 callersFunctioncheck
(t *testing.T, resp *http.Response, wants string, code int)
url/checker_test.go:93
↓ 2 callersMethodAddInfo
AddInfo adds a info value to the Info map
checker.go:37
↓ 2 callersMethodIsOutOfService
IsOutOfService returns true if Status is IsOutOfService
health.go:76
↓ 2 callersFunctionNewCheckerWithRedis
NewCheckerWithRedis returns a new redis.Checker configured with a custom Redis implementation
redis/checker.go:21
↓ 2 callersMethodServeHTTP
ServeHTTP returns a json encoded Health set the status to http.StatusServiceUnavailable if the check is down
handler.go:20
↓ 2 callersMethodUnknown
Unknown set the status to Unknown
health.go:93
↓ 2 callersFunctionparseInfo
parseInfo parse the return of the redis INFO command and returns a maps containing each key associates with its value bot key and value are strings to
redis/util.go:8
↓ 1 callersMethodMarshalJSON
MarshalJSON is a custom JSON marshaller
health.go:21
↓ 1 callersFunctionNewChecker
NewChecker returns a new redis.Checker
redis/checker.go:16
↓ 1 callersFunctionNewCheckerWithTimeout
NewCheckerWithTimeout returns a new url.Checker with the given URL and given timeout
url/checker.go:22
↓ 1 callersFunctionNewMySQLChecker
NewMySQLChecker returns a new db.Checker configured for use in MySQL
db/checker.go:22
↓ 1 callersFunctionNewPostgreSQLChecker
NewPostgreSQLChecker returns a new db.Checker configured for use in PostgreSQL
db/checker.go:27
↓ 1 callersFunctionNewSqlite3Checker
NewSqlite3Checker returns a new db.Checker configured for use in Sqlite3
db/checker.go:32
↓ 1 callersMethodgetConnection
(network, addr string)
redis/redigo.go:12
MethodCheck
()
checker_test.go:7
MethodCheck
()
checker_test.go:16
MethodCheck
()
checker_test.go:25
MethodCheck
()
checker.go:16
MethodCheck
Check makes a HEAD request to the given URL If the request returns something different than StatusOK, The status is set to StatusBadRequest and the UR
url/checker.go:29
MethodCheck
Check obtain the version string from redis info command
redis/checker.go:26
MethodGetVersion
()
redis/checker_test.go:12
MethodGetVersion
()
redis/checker_test.go:43
MethodGetVersion
GetVersion return the redis version using the reigo package
redis/redigo.go:42
FunctionTestCheck_down
(t *testing.T)
db/checker_test.go:135
FunctionTestCheck_down_nil_db
(t *testing.T)
db/checker_test.go:192
FunctionTestCheck_down_version
(t *testing.T)
db/checker_test.go:162
FunctionTestCheck_up
(t *testing.T)
db/checker_test.go:76
FunctionTestCheck_up_not_set_version
(t *testing.T)
db/checker_test.go:107
FunctionTestCheckerFunc_Check
(t *testing.T)
checker_test.go:127
FunctionTestChecker_Check_down
(t *testing.T)
redis/checker_test.go:47
FunctionTestChecker_Check_up
(t *testing.T)
redis/checker_test.go:24
FunctionTestNewChecker
(t *testing.T)
redis/checker_test.go:16
FunctionTestNewHealth
(t *testing.T)
health_test.go:5
FunctionTestNewMySQLChecker
(t *testing.T)
db/checker_test.go:10
FunctionTestNewPostgreSQLCheckerChecker
(t *testing.T)
db/checker_test.go:32
FunctionTestNewSqlite3CheckerChecker
(t *testing.T)
db/checker_test.go:54
FunctionTest_Checker_Check_Down
(t *testing.T)
url/checker_test.go:52
FunctionTest_Checker_Check_Down_invalid
(t *testing.T)
url/checker_test.go:75
FunctionTest_Checker_Check_Up
(t *testing.T)
url/checker_test.go:30
FunctionTest_CompositeChecker_AddChecker
(t *testing.T)
checker_test.go:32
FunctionTest_CompositeChecker_AddInfo
(t *testing.T)
checker_test.go:103
FunctionTest_CompositeChecker_AddInfo_null_map
(t *testing.T)
checker_test.go:115
FunctionTest_CompositeChecker_Check_Down
(t *testing.T)
checker_test.go:57
FunctionTest_CompositeChecker_Check_Down_combined
(t *testing.T)
checker_test.go:79
FunctionTest_CompositeChecker_Check_OutOfService
(t *testing.T)
checker_test.go:68
FunctionTest_CompositeChecker_Check_Up
(t *testing.T)
checker_test.go:46
FunctionTest_CompositeChecker_Check_Up_combined
(t *testing.T)
checker_test.go:91
FunctionTest_Handler_ServeHTTP_Down
(t *testing.T)
handler_test.go:22
FunctionTest_Handler_ServeHTTP_Up
(t *testing.T)
handler_test.go:52
FunctionTest_Health_AddInfo
(t *testing.T)
health_test.go:96
FunctionTest_Health_AddInfo_null_map
(t *testing.T)
health_test.go:108
FunctionTest_Health_Down
(t *testing.T)
health_test.go:31
FunctionTest_Health_GetInfo
(t *testing.T)
health_test.go:120
FunctionTest_Health_GetInfo_null_map
(t *testing.T)
health_test.go:132
FunctionTest_Health_IsDown
(t *testing.T)
health_test.go:59
FunctionTest_Health_IsOutOfService
(t *testing.T)
health_test.go:68
FunctionTest_Health_IsUp
(t *testing.T)
health_test.go:50
FunctionTest_Health_MarshalJSON
(t *testing.T)
health_test.go:77
FunctionTest_Health_OutOfService
(t *testing.T)
health_test.go:41
FunctionTest_Health_Unknown
(t *testing.T)
health_test.go:13
FunctionTest_Health_Up
(t *testing.T)
health_test.go:22
FunctionTest_NewCheckerWithTimeout
(t *testing.T)
url/checker_test.go:15
FunctionTest_NewHandler
(t *testing.T)
handler_test.go:11
FunctionTest_RedigoRedis_GetVersion_down
(t *testing.T)
redis/redigo_test.go:52
FunctionTest_RedigoRedis_GetVersion_down_version_not_present
(t *testing.T)
redis/redigo_test.go:66
FunctionTest_RedigoRedis_GetVersion_nil
(t *testing.T)
redis/redigo_test.go:25
FunctionTest_RedigoRedis_GetVersion_up
(t *testing.T)
redis/redigo_test.go:36
FunctionTest_parseInfo
(t *testing.T)
redis/util_test.go:5
MethodgetConnection
(network, addr string)
redis/redigo_test.go:15
MethodgetConnection
(network, addr string)
redis/redigo_test.go:21
MethodgetConnection
getConnection returns a new connection for network and addr parameters. It does not make sense write code to test this function, because writing tests
redis/redigo.go:20