Back to godoc.org

Package middleware

v0.8.4
Latest Go to latest

The highest tagged major version is .

Published: Jan 18, 2018 | License: Apache-2.0 | Module: github.com/UKHomeOffice/drone

Index

func Config

func Config(cli *cli.Context) gin.HandlerFunc

Config is a middleware function that initializes the Configuration and attaches to the context of every http.Request.

func Remote

func Remote(v remote.Remote) gin.HandlerFunc

Remote is a middleware function that initializes the Remote and attaches to the context of every http.Request.

func Store

func Store(cli *cli.Context, v store.Store) gin.HandlerFunc

Store is a middleware function that initializes the Datastore and attaches to the context of every http.Request.

func Version

func Version(c *gin.Context)

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier