Back to godoc.org

Package middlewares

v0.0.0-...-7cc416c
Latest Go to latest

The latest major version is .

Published: Jan 10, 2020 | License: Apache-2.0 | Module: github.com/NJUPT-ISL/Hound

Index

func TokenAuthMiddleware

func TokenAuthMiddleware(T *tokens.Token) gin.HandlerFunc

Check every https package with token header

func TokenRefreshMiddleware

func TokenRefreshMiddleware(T *tokens.Token) gin.HandlerFunc

If the https header contains refresh tag, the agent node will refresh the token.

func TokenRequestMiddleware

func TokenRequestMiddleware(T *tokens.Token) gin.HandlerFunc

If the master send https package with the Hound key header, the agent will response the work token to the master.

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

Jump to identifier

Keyboard shortcuts

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