igin

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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 Close

func Close()

func LocalFileSystem added in v0.0.4

func LocalFileSystem(localPath string) *localFileSystem

func Logger

func Logger() gin.HandlerFunc

func New

func New() *gin.Engine

func Run

func Run(addr string) error

func S

func S() *gin.Engine

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 AuthLimitFunc func(c *gin.Context) bool

type ServeFileSystem

type ServeFileSystem interface {
	http.FileSystem
	Exists(path string) bool
}

Jump to

Keyboard shortcuts

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