Home / File/ ctx_interface_gen.go — fiber Source File

ctx_interface_gen.go — fiber Source File

Architecture documentation for ctx_interface_gen.go, a go file in the fiber codebase. 1 imports, 0 dependents.

File go FiberCore Context 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  903c656d_fcfd_4b64_bd44_842af8f82a27["ctx_interface_gen.go"]
  3c539dc4_ce70_7be5_43dc_5058a965884a["bufio"]
  903c656d_fcfd_4b64_bd44_842af8f82a27 --> 3c539dc4_ce70_7be5_43dc_5058a965884a
  style 903c656d_fcfd_4b64_bd44_842af8f82a27 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// Code generated by ifacemaker; DO NOT EDIT.

package fiber

import (
	"bufio"
	"context"
	"crypto/tls"
	"io"
	"mime/multipart"
	"time"

	"github.com/valyala/fasthttp"
)

// Ctx represents the Context which hold the HTTP request and response.
// It has methods for the request query string, parameters, body, HTTP headers and so on.
type Ctx interface {
	// App returns the *App reference to the instance of the Fiber application
	App() *App
	// BaseURL returns (protocol + host + base path).
	BaseURL() string
	// RequestCtx returns *fasthttp.RequestCtx that carries a deadline
	// a cancellation signal, and other values across API boundaries.
	RequestCtx() *fasthttp.RequestCtx
	// Context returns a context implementation that was set by
	// user earlier or returns a non-nil, empty context, if it was not set earlier.
	Context() context.Context
	// SetContext sets a context implementation by user.
	SetContext(ctx context.Context)
	// Deadline returns the time when work done on behalf of this context
	// should be canceled. Deadline returns ok==false when no deadline is
	// set. Successive calls to Deadline return the same results.
	//
	// Due to current limitations in how fasthttp works, Deadline operates as a nop.
	// See: https://github.com/valyala/fasthttp/issues/965#issuecomment-777268945
	Deadline() (time.Time, bool)
	// Done returns a channel that's closed when work done on behalf of this
	// context should be canceled. Done may return nil if this context can
	// never be canceled. Successive calls to Done return the same value.
	// The close of the Done channel may happen asynchronously,
	// after the cancel function returns.
	//
	// Due to current limitations in how fasthttp works, Done operates as a nop.
	// See: https://github.com/valyala/fasthttp/issues/965#issuecomment-777268945
	Done() <-chan struct{}
	// Err mirrors context.Err, returning nil until cancellation and then the terminal error value.
	//
	// Due to current limitations in how fasthttp works, Err operates as a nop.
	// See: https://github.com/valyala/fasthttp/issues/965#issuecomment-777268945
	Err() error
	// Request return the *fasthttp.Request object
	// This allows you to use all fasthttp request methods
	// https://godoc.org/github.com/valyala/fasthttp#Request
	// Returns nil if the context has been released.
	Request() *fasthttp.Request
	// Response return the *fasthttp.Response object
	// This allows you to use all fasthttp response methods
	// https://godoc.org/github.com/valyala/fasthttp#Response
	// Returns nil if the context has been released.
// ... (430 more lines)

Domain

Subdomains

Functions

Types

Dependencies

  • bufio

Frequently Asked Questions

What does ctx_interface_gen.go do?
ctx_interface_gen.go is a source file in the fiber codebase, written in go. It belongs to the FiberCore domain, Context subdomain.
What functions are defined in ctx_interface_gen.go?
ctx_interface_gen.go defines 1 function(s): Writer.
What does ctx_interface_gen.go depend on?
ctx_interface_gen.go imports 1 module(s): bufio.
Where is ctx_interface_gen.go in the architecture?
ctx_interface_gen.go is located at ctx_interface_gen.go (domain: FiberCore, subdomain: Context).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free