Back to godoc.org

Package middleware

v0.0.0-...-840a1b4
Latest Go to latest

The highest tagged major version is .

Published: Oct 12, 2017 | License: MIT | Module: github.com/TeaMeow/KitSvc

Index

func Config

func Config(cli *cli.Context) gin.HandlerFunc

Config is a middleware function that initializes the config and attaches to the context of every request context.

func ConfigContext

func ConfigContext(c *gin.Context) (ctx *cli.Context)

ConfigContext returns the CLI context associated with this context.

func Event

func Event(c *cli.Context, e *eventutil.Engine, replayed chan<- bool, deployed <-chan bool) gin.HandlerFunc

Event is a middleware function that initializes the eventstore and attaches to the context of every request context.

func Logging

func Logging() gin.HandlerFunc

Logging is a middleware function that logs the each request.

func MQ

func MQ(c *cli.Context, m *mqutil.Engine, deployed <-chan bool) gin.HandlerFunc

MQ is a middleware function that initializes the message queue and attaches to the context of every request context.

func Metrics

func Metrics() gin.HandlerFunc

Metrics is a middleware function that initializes the metrics and attaches to the context of every request context.

func Store

func Store(cli *cli.Context) gin.HandlerFunc

Store is a middleware function that initializes the datastore and attaches to the context of every request context.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier