health

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package health provides the client side gRPC API for the healthcheck service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Conn   *grpc.ClientConn
	Client health.HealthClient
	// contains filtered or unexported fields
}

Client holds all the information used to communicate with the server

func GetClient

func GetClient(info *service.ConnectionInfo, uuid string) (*Client, error)

GetClient creates a new health client

func (*Client) SetStatus

func (c *Client) SetStatus(s health.Status)

SetStatus sets the internal health status which is reported back to the control plane

func (*Client) StartStream

func (c *Client) StartStream(ctx context.Context, errCallback func(error) bool)

StartStream starts the bidirectional health stream, errCallback is called upon any error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL