fctx Type — fiber Architecture
Architecture documentation for the fctx type/interface in ctx_interface.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 6d0326fe_0441_78d0_5e8d_852262a36d2e["fctx"] 5970c75f_6b8c_d928_0978_508af8bdf1cc["ctx_interface.go"] 6d0326fe_0441_78d0_5e8d_852262a36d2e -->|defined in| 5970c75f_6b8c_d928_0978_508af8bdf1cc style 6d0326fe_0441_78d0_5e8d_852262a36d2e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
ctx_interface.go lines 13–49
type CustomCtx interface {
Ctx
// Reset is a method to reset context fields by given request when to use server handlers.
Reset(fctx *fasthttp.RequestCtx)
// release is called before returning the context to the pool.
release()
// Abandon marks the context as abandoned. An abandoned context will not be
// returned to the pool when ReleaseCtx is called. This is used by the timeout
// middleware to return immediately while the handler goroutine continues.
// The cleanup goroutine must call ForceRelease when the handler finishes.
Abandon()
// IsAbandoned returns true if the context has been abandoned.
IsAbandoned() bool
// ForceRelease releases an abandoned context back to the pool.
// Must only be called after the handler goroutine has completely finished.
ForceRelease()
// Methods to use with next stack.
getMethodInt() int
getIndexRoute() int
getTreePathHash() int
getDetectionPath() string
getPathOriginal() string
getValues() *[maxParams]string
getMatched() bool
getSkipNonUseRoutes() bool
setIndexHandler(handler int)
setIndexRoute(route int)
setMatched(matched bool)
setSkipNonUseRoutes(skip bool)
setRoute(route *Route)
}
Defined In
Source
Frequently Asked Questions
What is the fctx type?
fctx is a type/interface in the fiber codebase, defined in ctx_interface.go.
Where is fctx defined?
fctx is defined in ctx_interface.go at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free