ctx

package
v0.0.0-...-a2ce4e4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextAdapter

type ContextAdapter struct {
	Name    string
	RevTime time.Time
	ID      interface{}

	KV map[string]any

	Logger log.Logger
}

func (*ContextAdapter) ClientIP

func (ctx *ContextAdapter) ClientIP() string

func (*ContextAdapter) CtxID

func (ctx *ContextAdapter) CtxID() interface{}

func (*ContextAdapter) EndRequest

func (ctx *ContextAdapter) EndRequest(code int)

func (*ContextAdapter) Value

func (ctx *ContextAdapter) Value(key string) (any, bool)

func (*ContextAdapter) WithValue

func (ctx *ContextAdapter) WithValue(key string, value any)

Jump to

Keyboard shortcuts

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