Categorygithub.com/DaHuangQwQ/gweb
modulepackage
1.0.2
Repository: https://github.com/dahuangqwq/gweb.git
Documentation: pkg.go.dev

# README

gweb

an easy go web framework

route tree

  • 静态匹配
  • 通配符匹配
  • 参数路径

context

  • 处理输出
  • 处理输入

file

  • 文件上传
  • 文件下载

session

  • 基于内存实现
  • 基于 redis 实现
  • 基于 cookie 实现

template

Go template

AOP

  1. access log
  2. err handler
  3. opentelemetry
  4. prometheus
  5. recover

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
WithFileCache 静态文件将会被缓存 maxFileSizeThreshold 超过这个大小的文件,就被认为是大文件,我们将不会缓存 maxCacheFileCnt 最多缓存多少个文件 所以我们最多缓存 maxFileSizeThreshold * maxCacheFileCnt.
No description provided by the author

# Structs

FileDownloader 直接操作了 http.ResponseWriter 所以在 Middleware 里面将不能使用 RespData 因为没有赋值.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author