middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultURL defines the standard remote URL.
	DefaultURL = "https://github.com"

	// DefaultAPI defines the standard API URL
	DefaultAPI = "https://api.github.com/"

	// DefaultScope defines the standard scope for the remote.
	DefaultScope = "user:email,read:org,public_repo"
)

Variables

This section is empty.

Functions

func Cache

func Cache() gin.HandlerFunc

Cache is a simple caching middleware.

func Remote

func Remote() gin.HandlerFunc

Remote is a simple middleware which configures the remote authentication.

func Store

func Store() gin.HandlerFunc

Store is a middleware to initialize the database.

func Version

func Version(c *gin.Context)

Version is a middleware function that appends the LGTM version information to the HTTP response. This is intended for debugging and troubleshooting.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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