ctxutil

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterID

func ClusterID(ctx context.Context) (uint, bool)

ClusterID fetches cluster ID from a context (if any).

func Params

func Params(ctx context.Context) (map[string]string, bool)

Params fetches parameters from a context (if any).

func WithClusterID

func WithClusterID(ctx context.Context, clusterID uint) context.Context

WithClusterID appends a cluster ID to a context.

func WithParams

func WithParams(ctx context.Context, params map[string]string) context.Context

WithParams appends parameters to a context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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