metadata

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetadataKey interface{} = "metadata"

Functions

func Delete

func Delete(ctx context.Context, key string) bool

Delete deletes the metadata

func New

func New() context.Context

New creates a new metadata context

func NewWithContext

func NewWithContext(ctx context.Context) context.Context

NewWithContext creates a new metadata context from an existing one

func Read

func Read(ctx context.Context, key string) (interface{}, bool)

Read reads a value from the metadata

func ReadBool

func ReadBool(ctx context.Context, key string) (bool, bool)

ReadBool reads a boolean from the metadata

func ReadInt

func ReadInt(ctx context.Context, key string) (int, bool)

ReadInt reads an int from the metadata

func ReadString

func ReadString(ctx context.Context, key string) (string, bool)

ReadString reads a string from the metadata

func Set

func Set(ctx context.Context, key string, value interface{}) bool

Set sets the value in the metadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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