internal

package
v0.285.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextRESTParentResourceValuePointer contextkit.ValueHandler[ctxKeyRESTResourceValue, any]
View Source
var RoutingContext contextkit.ValueHandler[routingCtxKey, *Routing]

Functions

func LookupRequest added in v0.233.0

func LookupRequest(ctx context.Context) (*http.Request, bool)

func WithRequest added in v0.233.0

func WithRequest(ctx context.Context, req *http.Request) context.Context

Types

type Routing

type Routing struct {
	RequestURI string
	PathLeft   string
	Current    string
}

func WithRoutingContext

func WithRoutingContext(request *http.Request) (*http.Request, *Routing)

func (Routing) Peek

func (routing Routing) Peek(p string) Routing

func (*Routing) Travel

func (routing *Routing) Travel(p string)

Jump to

Keyboard shortcuts

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