settingsutils

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSettings

func ContextWithSettings(ctx context.Context, settings *v1.Settings) context.Context

ContextWithSettings returns a copy of parent context in which the value associated with settings key is the supplied settings.

func SettingsFromContext

func SettingsFromContext(ctx context.Context) *v1.Settings

FromContext returns the settings stored in context. Returns nil if no settings is set in context, or if the stored value is not of correct type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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