ctxkey

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package ctxkey contains type and values of keys used to store information in context value storage, that holds data specific for single http request.

Index

Constants

This section is empty.

Variables

View Source
var ErrValueNotFound = errors.New("ctxkey: value not found in ctx")

Functions

func Debug

func Debug(ctx context.Context) (bool, error)

Debug returns value of debug mode stored in context store.

Types

type ContextKey

type ContextKey uint

ContextKey represents keys used in context value store specific for single http request.

const (
	// DebugKey represents key used to store
	// information about debug mode.
	DebugKey ContextKey = iota
)

Jump to

Keyboard shortcuts

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