app

package
v0.0.0-...-2dd618c Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Elasticsearch

func Elasticsearch() (connection *elastic.Client)

获取elasticsearch链接对象

func EmptyMiddleware

func EmptyMiddleware() gin.HandlerFunc

EmptyMiddleware 不执行业务处理的中间件

func InitElasticsearch

func InitElasticsearch() error

创建Elasticsearch链接

func SkipHandler

func SkipHandler(ctx *gin.Context, skippers ...SkipperFunc) bool

Types

type SkipperFunc

type SkipperFunc func(ctx *gin.Context) bool

SkipperFunc 定义中间件跳过函数

Jump to

Keyboard shortcuts

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