tcontext

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TurnaKey contextKey = "turna"
)

Variables

This section is empty.

Functions

func Get

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

func GetEchoContext

func GetEchoContext(r *http.Request, w http.ResponseWriter) echo.Context

func Set

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

Types

type Turna

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

func GetTurna

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

func (*Turna) Get

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

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