middleware

package
v0.0.0-...-adead0c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chain

func Chain(f http.Handler, m ...func(http.Handler) http.Handler) http.Handler

Chain is middleware chain for default http handler. Inspired by bellow - https://zenn.dev/mokmok_dev/articles/30638ae4d15ae6 - https://github.com/mokmok-dev/middlechain/blob/main/middlechain.go

func RequestLog

func RequestLog(next http.Handler) http.Handler

func SetTrace

func SetTrace(next http.Handler) http.Handler

func VerifyChannelAccessToken

func VerifyChannelAccessToken(next http.Handler) http.Handler

VerifyChannelAccessToken checks if channel access token is valid and if invalid fetch new token and new client.

func VerifyLine

func VerifyLine(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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