文件名称:middleware:Iris Web 框架的社区中间件列表
文件大小:73KB
文件格式:ZIP
更新时间:2024-06-17 23:26:40
golang middleware handler iris iris-golang
Iris 社区中间件列表 该存储库提供了一种共享基于社区的中间件的方法。 其中,您还可以浏览 。 安装 安装一个中间件,以为例。 $ go env -w GOPROXY=goproxy.cn,gocenter.io,goproxy.io,direct $ go mod init myapp $ go get github.com/kataras/iris/v12@master $ go get github.com/iris-contrib/middleware/jwt@master 导入为 import "github.com/iris-contrib/middleware/jwt" // [...Code] 建造 $ go build 中间件只是一个链式处理程序,可以在主处理程序之前或之后执行,可以在处理程序之间传输数据并与第三方库进行通信,它们只是函数。 中间件 描述 例
【文件预览】:
middleware-master
----.gitattributes(37B)
----prometheus()
--------go.mod(175B)
--------LICENSE(11KB)
--------prometheus.go(2KB)
--------_example()
----jwt()
--------go.mod(161B)
--------LICENSE(2KB)
--------_example()
--------README.md(3KB)
--------jwt.go(7KB)
--------config.go(2KB)
--------jwt_test.go(2KB)
----.travis.gofmt.sh(104B)
----.travis.gotest.sh(145B)
----.travis.yml(322B)
----casbin()
--------go.mod(152B)
--------_examples()
--------casbin.go(4KB)
--------README.md(729B)
----README.md(5KB)
----cloudwatch()
--------go.mod(114B)
--------cloudwatch.go(4KB)
--------_example()
----cors()
--------go.mod(108B)
--------util.go(1KB)
--------cors_test.go(3KB)
--------cors.go(12KB)
--------LICENSE(1KB)
--------_example()
----csrf()
--------helpers.go(4KB)
--------go.mod(153B)
--------csrf.go(8KB)
--------options.go(4KB)
--------context.go(376B)
--------LICENSE(2KB)
--------_example()
--------README.md(10KB)
--------store.go(3KB)
----newrelic()
--------newrelic.go(3KB)
--------go.mod(157B)
--------_example()
----secure()
--------go.mod(115B)
--------csp_test.go(2KB)
--------LICENSE(1KB)
--------_example()
--------csp.go(749B)
--------secure.go(14KB)
----.gitignore(23B)
----tollboothic()
--------go.mod(158B)
--------tollboothic.go(910B)
--------_examples()
--------README.md(339B)
----throttler()
--------throttler.go(3KB)
--------go.mod(160B)
--------LICENSE(2KB)
--------_example()