nodestatus

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package nodestatus provides a gRPC service that allows HashiCorp Cloud Platform (HCP) to query the node status information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// Config contains all dependencies as well as information about the node
	// Link is running on.
	Config *config.Config
}

Collector implements the logic needed to collect node status information

func (*Collector) CollectPb

func (c *Collector) CollectPb(ctx context.Context) (*pb.NodeStatus, error)

CollectPb will collect the node status information and return them as a protobuf message.

type Service

type Service struct {
	// Collector implements the logic needed to collect node status information
	Collector *Collector

	pb.UnimplementedNodeStatusServiceServer
}

func (*Service) GetNodeStatus

GetNodeStatus will be used to regularly fetch the node’s current status.

Jump to

Keyboard shortcuts

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