package
0.26.1
Repository: https://github.com/go-vela/worker.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package perm provides the ability for inserting Vela user permissions resources into or extracting Vela user permissions resources from the middleware chain for the API.
Package token provides the ability for inserting Vela token resources into or extracting Vela token resources from the middleware chain for the API.

# Functions

Executors is a middleware function that attaches the executors to the context of every http.Request.
Logger returns a gin.HandlerFunc (middleware) that logs requests using logrus.
NoCache is a middleware function that appends headers to prevent the client from caching the HTTP response.
Options is a middleware function that appends headers for options requests and aborts then exits the middleware chain and ends the request.
Payload is a middleware function that captures the user provided json body and attaches it to the context of every http.Request to be logged.
RegisterToken is a middleware function that attaches the auth-token channel to the context of every http.Request.
RequestVersion is a middleware function that injects the Vela API version information into the request so it will be logged.
ResponseVersion is a middleware function that injects the Vela API version information into the response so it will be logged.
Secure is a middleware function that appends security and resource access headers.
ServerAddress is a middleware function that attaches the server address to the context of every http.Request.
WorkerHostname is a middleware function that attaches the worker hostname to the context of every http.Request.