middlewares

package
v0.0.0-...-33f46c2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthorizationMiddleware

func AuthorizationMiddleware() gin.HandlerFunc

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

func EsLog

func EsLog(ctx context.Context, esClient *elastic.Client) gin.HandlerFunc

func FilerAuthorizationMiddleware

func FilerAuthorizationMiddleware() gin.HandlerFunc

func InitMiddlewares

func InitMiddlewares(app *gin.Engine) (err error)

func WriteMsg

func WriteMsg(ctx context.Context, crawlabIndex string, es *elastic.Client, when time.Time, msg string) error

WriteMsg will write the msg and level into es

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳