handlers

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package handlers contains functions for converting generic GCP PubSub messages to app-specific messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCreationEvents

func HandleCreationEvents(additions chan *gcppubsub.Message, instanceToClusterMappings cache.Cache, l *zap.SugaredLogger, wg *sync.WaitGroup)

HandleCreationEvents reads from additions and adds the instance ID and corresponding cluster to m

func HandleInterruptionEvents

func HandleInterruptionEvents(interruptions chan *gcppubsub.Message, instanceToClusterMappings cache.Cache, metrics metrics.Client, l *zap.SugaredLogger, wg *sync.WaitGroup)

HandleInterruptionEvents reads from interruptions and increases the interruption event counter of metrics accordingly

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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