middleware

package
v0.0.0-...-838d5f2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientSpecifiedMutexesMiddleware

func ClientSpecifiedMutexesMiddleware() gin.HandlerFunc

func CreateCollections

func CreateCollections(ctx context.Context, collectionsToCreate []string, dbName string, client *mongowrapper.WrappedClient) error

func FileLoggerMiddleware

func FileLoggerMiddleware(outputDirectory string, dumpHttpGET bool, httpHandler http.Handler) http.HandlerFunc

Writes raw requests and responses to files for archiving. Compression using Zstandard (which is famous for high compression speed)

Sets several xattrs: http_status, latency_ms, requestor_details, mutex_name

func PrecreateCollectionsMiddleware

func PrecreateCollectionsMiddleware(mongoDBuri string) gin.HandlerFunc

Pre-create collections as required by MongoDB transactions

Types

This section is empty.

Jump to

Keyboard shortcuts

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