GitXplorerGitXplorer
d

gin-helmet

public
42 stars
4 forks
1 issues

Commits

List of commits on branch master.
Unverified
1387e224435edcb84dfc4bfc81fe56fc807ca98b

added readme and better documentation

ddanielkov committed 7 years ago
Unverified
7770fb369e6daae9a849aaae31b2813ea77e81b8

added readme and fixed tests to work with the pseudo random behaviour of go's underlying hash map implementation

ddanielkov committed 7 years ago
Unverified
078cd48451fe92ce49111ddcf16f39be4890c566

removed unsupported dependencies

ddanielkov committed 7 years ago
Unverified
af73261b49fa51f1369994f3dcce91ec2592c6b1

added tests and coverage report with travis ci

ddanielkov committed 7 years ago
Unverified
20928bb014cb774dd689ceef7f8e01d871c27f41

finished writing up library TODO: tests

ddanielkov committed 7 years ago
Verified
e0d4373e94e742d9e863c5580eccd5508305b4fc

Initial commit

ddanielkov committed 7 years ago

README

The README file for this repository.

Gin Helmet

Security middlewares for Gin (gin-gonic/gin) inspired by the popular helmet middleware package for Node JS express and koa.


Build Status Coverage Status Go Report Card godocs MIT license

Usage

Add the Default middleware for basic security measures.

s := gin.New()
s.Use(helmet.Default())

You can also add each middleware separately:

s.Use(helmet.NoCache())

Those not included in the Default() middleware are considered more advanced and require consideration before using.

See the godoc for more info and examples.