heartbeat

package
v1.9.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentHeartbeatInput

type DeploymentHeartbeatInput struct {
	NodeCount int `json:"nodeCount"`
}

type GraphQLClient

type GraphQLClient interface {
	Client() *graphql.Client
	DeploymentID() string
}

GraphQLClient defines GraphQL client.

type GraphQLHeartbeatReporter

type GraphQLHeartbeatReporter struct {
	// contains filtered or unexported fields
}

GraphQLHeartbeatReporter reports heartbeat to GraphQL server.

func (*GraphQLHeartbeatReporter) ReportHeartbeat

func (r *GraphQLHeartbeatReporter) ReportHeartbeat(ctx context.Context, heartbeat DeploymentHeartbeatInput) error

type HeartbeatReporter

type HeartbeatReporter interface {
	ReportHeartbeat(ctx context.Context, heartBeat DeploymentHeartbeatInput) error
}

func GetReporter

func GetReporter(logger logrus.FieldLogger, gql GraphQLClient) HeartbeatReporter

type NoopHeartbeatReporter

type NoopHeartbeatReporter struct{}

func (NoopHeartbeatReporter) ReportHeartbeat

Jump to

Keyboard shortcuts

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