Documentation ¶
Index ¶
- func ClientSpecifiedMutexesMiddleware() gin.HandlerFunc
- func CreateCollections(ctx context.Context, collectionsToCreate []string, dbName string, ...) error
- func FileLoggerMiddleware(outputDirectory string, dumpHttpGET bool, httpHandler http.Handler) http.HandlerFunc
- func PrecreateCollectionsMiddleware(mongoDBuri string) gin.HandlerFunc
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.
Click to show internal directories.
Click to hide internal directories.