attribute

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package attribute provides functionalities for converting database values to attributes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromNamedValue

func FromNamedValue(arg driver.NamedValue) attribute.KeyValue

FromNamedValue converts driver.NamedValue to attribute.KeyValue.

func KeyFromNamedValue

func KeyFromNamedValue(arg driver.NamedValue) attribute.Key

KeyFromNamedValue returns an attribute.Key from a given driver.NamedValue.

func KeyValue

func KeyValue(key attribute.Key, val any) attribute.KeyValue

KeyValue returns an attribute.KeyValue from a given value. nolint: cyclop

func KeyValueDuration

func KeyValueDuration(key attribute.Key, d time.Duration) attribute.KeyValue

KeyValueDuration converts time.Duration to attribute.KeyValue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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