secret

package
v8.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultClaims = jwt.StandardClaims{Issuer: "gitlab-workhorse"}
)

Functions

func Bytes

func Bytes() ([]byte, error)

Lazy access to the HMAC secret key. We must be lazy because if the key is not already there, it will be generated by gitlab-rails, and gitlab-rails is slow.

func JWTTokenString

func JWTTokenString(claims jwt.Claims) (string, error)

func SetPath

func SetPath(path string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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