tonic:杜松子酒的自以为是的样板

时间:2024-04-17 23:38:06
【文件属性】:

文件名称:tonic:杜松子酒的自以为是的样板

文件大小:44KB

文件格式:ZIP

更新时间:2024-04-17 23:38:06

golang gin Go

:cocktail_glass: 补品 什么是补品? Tonic是一组帮助程序和预建端点,有助于建立基于Gin的网站/ API。 它主要是为了通过OIDC提供程序使用cookie和承载令牌身份验证来快速设置Web API而设置的。 它可能变得更具可配置性,但现在它只是加快我创建新站点的速度! 使用的技术: :每个请求都会将一个记录器添加到包含预填充值的上下文中 :这些选项都已注释,可以直接提供给mamba 快速开始 安装补品 go get github.com/scottkgregory/mamba 呼叫tonic.Init router , authedRouter , logger , err := tonic . Init ( cfg . Tonic ) if err != nil { panic ( err ) } 正常使用Gin引擎和路由器组 router . GET ( "/tonic" ,


【文件预览】:
tonic-main
----.gitignore(309B)
----go.mod(693B)
----pkg()
--------api()
--------middleware()
--------services()
--------models()
--------helpers()
--------constants()
--------backends()
--------dependencies()
--------handlers()
----.travis.yml(286B)
----main_test.go(14B)
----LICENSE(1KB)
----go.sum(50KB)
----examples()
--------webapi()
----main.go(2KB)
----README.md(2KB)

网友评论