middleware

package
v0.0.0-...-840a1b4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2017 License: MIT Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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