Health
Accessor: client.Health()
Check the health status of the connected OpenShell gateway.
Perform a health check against the gateway. Returns the overall status and component-level details.
result, err := client.Health().Check(ctx)if err != nil { log.Fatal(err)}fmt.Printf("Gateway healthy: %v\n", result.Healthy)This is useful for readiness probes or verifying connectivity before executing other operations.
// Quick connectivity check before starting workif result, err := client.Health().Check(ctx); err != nil { log.Fatalf("Gateway unreachable: %v", err)} else if !result.Healthy { log.Fatal("Gateway is not healthy")}See also: Error Handling
We are a Cloud Native Computing Foundation sandbox project.
Copyright OpenShell a Series of LF Projects, LLC
For website terms of use, trademark policy and other project policies please see lfprojects.org/policies/.