middlewares

package
v0.6.0-3 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: BSD-3-Clause Imports: 13 Imported by: 1

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 added in v0.6.0

func FilerAuthorizationMiddleware() gin.HandlerFunc

func InitMiddlewares added in v0.6.0

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