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.
Click to show internal directories.
Click to hide internal directories.