Documentation ¶
Index ¶
- Constants
- func Auth(secret string, limit AuthLimitFunc) gin.HandlerFunc
- func CORS() gin.HandlerFunc
- func Close()
- func LocalFileSystem(localPath string) *localFileSystem
- func Logger() gin.HandlerFunc
- func New() *gin.Engine
- func Run(addr string) error
- func S() *gin.Engine
- func Static(urlPrefix string, sfs ServeFileSystem, notFound gin.HandlerFunc) gin.HandlerFunc
- type AuthLimitFunc
- type ServeFileSystem
Constants ¶
View Source
const ( HContentType = "Content-Type" HRequestId = "X-Request-Id" )
Variables ¶
This section is empty.
Functions ¶
func Auth ¶
func Auth(secret string, limit AuthLimitFunc) gin.HandlerFunc
func CORS ¶ added in v0.2.0
func CORS() gin.HandlerFunc
func LocalFileSystem ¶ added in v0.0.4
func LocalFileSystem(localPath string) *localFileSystem
func Logger ¶
func Logger() gin.HandlerFunc
func Static ¶ added in v0.0.4
func Static(urlPrefix string, sfs ServeFileSystem, notFound gin.HandlerFunc) gin.HandlerFunc
Types ¶
type AuthLimitFunc ¶ added in v0.3.1
type ServeFileSystem ¶
type ServeFileSystem interface { http.FileSystem Exists(path string) bool }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.