context

package
v1.0.69 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	*lift.Context
}

Context wraps lift.Context with additional convenience methods

func NewContext

func NewContext(ctx *lift.Context) *Context

NewContext creates a new context wrapper

func (*Context) GoContext

func (c *Context) GoContext() context.Context

GoContext returns the underlying Go context

func (*Context) Logger

Logger returns a structured logger

func (*Context) ParseJSON

func (c *Context) ParseJSON(target any) error

ParseJSON parses the request body as JSON

func (*Context) PathParam

func (c *Context) PathParam(key string) string

PathParam returns a path parameter value

func (*Context) QueryParam

func (c *Context) QueryParam(key string, defaultValue ...string) string

QueryParam returns a query parameter value with optional default

func (*Context) TenantID

func (c *Context) TenantID() string

TenantID returns the tenant ID from the context

func (*Context) UserID

func (c *Context) UserID() string

UserID returns the user ID from the context

Jump to

Keyboard shortcuts

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