ctx

package
v0.0.0-...-de30fb5 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx struct {
	Body    []byte
	Params  map[string]string
	Headers map[string]string
	Token   *jwt.Token
	// contains filtered or unexported fields
}

func NewCtx

func NewCtx(ctx *fiber.Ctx) *Ctx

func (*Ctx) Bind

func (ctx *Ctx) Bind(obj any) error

func (*Ctx) FormFile

func (ctx *Ctx) FormFile(key string) (*multipart.FileHeader, error)

func (*Ctx) SendResponse

func (ctx *Ctx) SendResponse(obj any) error

func (*Ctx) SendStream

func (ctx *Ctx) SendStream(filename string, reader io.Reader, size ...int) error

func (*Ctx) SendString

func (ctx *Ctx) SendString(body string) error

type JsonError

type JsonError struct {
	Msg string `json:"error"`
}

type JsonResponse

type JsonResponse struct {
	Body string `json:"body"`
}

Jump to

Keyboard shortcuts

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