本文整理匯總了Golang中github.com/Financial-Times/base-ft-rw-app-go/baseftrwapp.Service.Check方法的典型用法代碼示例。如果您正苦於以下問題:Golang Service.Check方法的具體用法?Golang Service.Check怎麽用?Golang Service.Check使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/Financial-Times/base-ft-rw-app-go/baseftrwapp.Service
的用法示例。
在下文中一共展示了Service.Check方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: makeCheck
func makeCheck(service baseftrwapp.Service, cr neoutils.CypherRunner) v1a.Check {
return v1a.Check{
BusinessImpact: "Cannot read/write subjects via this writer",
Name: "Check connectivity to Neo4j - neoUrl is a parameter in hieradata for this service",
PanicGuide: "TODO - write panic guide",
Severity: 1,
TechnicalSummary: fmt.Sprintf("Cannot connect to Neo4j instance %s with at least one subject loaded in it", cr),
Checker: func() (string, error) { return "", service.Check() },
}
}