healthcheck

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SubscriptionsProbeName = "gcppubsub-subscriptions"

SubscriptionsProbeName is the name of the GCP pub/sub subscriptions probe.

View Source
const TopicsProbeName = "gcppubsub-topics"

TopicsProbeName is the name of the GCP pub/sub topics probe.

Variables

This section is empty.

Functions

This section is empty.

Types

type GcpPubSubSubscriptionsProbe

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

GcpPubSubSubscriptionsProbe is a probe compatible with the healthcheck module.

func NewGcpPubSubSubscriptionsProbe

func NewGcpPubSubSubscriptionsProbe(config *config.Config, client *pubsub.Client) *GcpPubSubSubscriptionsProbe

NewGcpPubSubSubscriptionsProbe returns a new GcpPubSubSubscriptionsProbe.

func (*GcpPubSubSubscriptionsProbe) Check

Check returns a successful healthcheck.CheckerProbeResult if all configured subscriptions exist.

func (*GcpPubSubSubscriptionsProbe) Name

Name returns the name of the GcpPubSubSubscriptionsProbe.

type GcpPubSubTopicsProbe

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

GcpPubSubTopicsProbe is a probe compatible with the healthcheck module.

func NewGcpPubSubTopicsProbe

func NewGcpPubSubTopicsProbe(config *config.Config, client *pubsub.Client) *GcpPubSubTopicsProbe

NewGcpPubSubTopicsProbe returns a new GcpPubSubTopicsProbe.

func (*GcpPubSubTopicsProbe) Check

Check returns a successful healthcheck.CheckerProbeResult if all configured topics exist.

func (*GcpPubSubTopicsProbe) Name

func (p *GcpPubSubTopicsProbe) Name() string

Name returns the name of the GcpPubSubTopicsProbe.

Jump to

Keyboard shortcuts

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