server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceKeyHeader = "X-Lock-Resource-Key"
)

Functions

func NewMutexMiddleware

func NewMutexMiddleware(config *MutexMiddlewareConfig, rs *redsync.Redsync) func(http.Handler) http.Handler

Types

type MutexMiddlewareConfig

type MutexMiddlewareConfig struct {
	Retry  int `mapstructure:"retry"`
	TtlSec int `mapstructure:"ttlsec"`
}

Jump to

Keyboard shortcuts

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