tcontext

package
v0.8.23 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TurnaKey contextKey = "turna"
)

Variables

This section is empty.

Functions

func Get added in v0.7.1

func Get(r *http.Request, key string) interface{}

func Set added in v0.7.1

func Set(r *http.Request, key string, value any)

Types

type Turna

type Turna struct {
	Vars map[string]interface{}
	// contains filtered or unexported fields
}

func GetTurna added in v0.7.1

func GetTurna(r *http.Request) (*Turna, bool)

func New added in v0.8.14

func (*Turna) Get

func (t *Turna) Get(key string) (interface{}, bool)

func (*Turna) GetInterface added in v0.8.14

func (t *Turna) GetInterface(key string) interface{}

func (*Turna) Set

func (t *Turna) Set(key string, value interface{})

Jump to

Keyboard shortcuts

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