Documentation ¶
Index ¶
Constants ¶
View Source
const (
MB = 1 << 20
)
Variables ¶
This section is empty.
Functions ¶
func NewJWT ¶
func NewJWT(claims *CustomClaims) (string, error)
Types ¶
type CustomClaims ¶
type CustomClaims struct { jwt.StandardClaims User *UserClaim `json:"user"` }
func NewCustomPayload ¶
func NewCustomPayload(user *UserClaim, expire int64) *CustomClaims
type TokenCheckMiddleware ¶
type TokenCheckMiddleware struct{}
TokenCheckMiddleware asserts if request allows for asynchronous response
func (TokenCheckMiddleware) ServeHTTP ¶
func (TokenCheckMiddleware) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
ServeHTTP handling asynchronous HTTP requests in Open Service Broker Api
Source Files ¶
Click to show internal directories.
Click to hide internal directories.