conv

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

conv package provides functions that convert data structures, like converting a Heartbeat into a label set or field set.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeartbeatAsFields

func HeartbeatAsFields(h heartbeat.Heartbeat) fields.Set

HeartbeatAsFields transforms a Heartbeat struct into a field Set that implements the Fields interface.

func HeartbeatAsLabels

func HeartbeatAsLabels(h heartbeat.Heartbeat) labels.Labels

HeartbeatAsLabels transforms a Heartbeat struct into a label Set that implements the Labels interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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