plugin

package
v0.0.0-...-b2d7ade Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResSlice []*PathHandler

Functions

func DefaultHandle

func DefaultHandle(map[string]string) interface{}

func DoGetProcess

func DoGetProcess(c *gin.Context, p GetHandler)

func DoOptionProcess

func DoOptionProcess(c *gin.Context, p OptionHandler)

func DoPostProcess

func DoPostProcess(c *gin.Context, p PostHandler)

func DoPostProcessMap

func DoPostProcessMap(c *gin.Context, p PostHandlerMap)

func InitHandler

func InitHandler(router *gin.Engine)

func LoggerM

func LoggerM() gin.HandlerFunc

func LoggerWithWriter

func LoggerWithWriter() gin.HandlerFunc

func RecoveryM

func RecoveryM() gin.HandlerFunc

func RegisterHandler

func RegisterHandler(relativePath string, p interface{})

Add handler to map

Types

type GetHandler

type GetHandler func(map[string]string) interface{}

type IndicatorDef

type IndicatorDef struct {
	Endpoint    string      `json:"endpoint"`
	Metric      string      `json:"metric"`
	Timestamp   int64       `json:"timestamp"`
	Step        int64       `json:"step"`
	Value       interface{} `json:"value"`
	CounterType string      `json:"counterType"`
	Tags        string      `json:"tags"`
}

type OptionHandler

type OptionHandler func(map[string]string) interface{}

type PathHandler

type PathHandler struct {
	Path    string
	Handler interface{}
}

type PostHandler

type PostHandler func([]byte) interface{}

type PostHandlerMap

type PostHandlerMap func(map[string]string) interface{}

Directories

Path Synopsis
Package log4go provides level-based and highly configurable logging.
Package log4go provides level-based and highly configurable logging.

Jump to

Keyboard shortcuts

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