filter

package
v0.0.0-...-a5ea93d Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package filter 定义各种过滤器组件,包括前置过滤器,后置过滤器。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boss

func Boss(w http.ResponseWriter, r *http.Request, m map[string]interface{}) bool

Boss 后置过滤器,用于数据上报,比如调用延时,出错等

func Timeout

func Timeout(w http.ResponseWriter, r *http.Request, m map[string]interface{}) (ok bool)

Timeout 前置过滤器,用于接口超时控制

func Trace

func Trace(w http.ResponseWriter, r *http.Request, m map[string]interface{}) (ok bool)

Trace 前置过滤器,用于填充trace

Types

This section is empty.

Jump to

Keyboard shortcuts

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