middlewares

package
v0.0.0-...-7cc416c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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