Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthChecker ¶
type HealthChecker struct {
// contains filtered or unexported fields
}
func New ¶
func New() *HealthChecker
func (*HealthChecker) CheckGRPCServices ¶
func (h *HealthChecker) CheckGRPCServices(ctx context.Context, services map[string]*ServiceHealth)
CheckGRPCServices checks the health of each grpc service
func (*HealthChecker) Init ¶
func (h *HealthChecker) Init() error
func (*HealthChecker) QueryServices ¶
func (h *HealthChecker) QueryServices(ctx context.Context) (map[string]*ServiceHealth, error)
QueryServices returns a list of services and their addresses for use in looking up their health via grpc health check
type ServiceHealth ¶
Click to show internal directories.
Click to hide internal directories.