CustomCtx Type — fiber Architecture
Architecture documentation for the CustomCtx type/interface in ctx_interface.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 20d8721f_ab94_9b01_a9b9_4c13fdba1782["CustomCtx"] 5970c75f_6b8c_d928_0978_508af8bdf1cc["ctx_interface.go"] 20d8721f_ab94_9b01_a9b9_4c13fdba1782 -->|defined in| 5970c75f_6b8c_d928_0978_508af8bdf1cc style 20d8721f_ab94_9b01_a9b9_4c13fdba1782 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 CustomCtx type?
CustomCtx is a type/interface in the fiber codebase, defined in ctx_interface.go.
Where is CustomCtx defined?
CustomCtx 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