bouncer/internal/lock/locker.go

11 lines
179 B
Go
Raw Normal View History

2024-03-27 17:47:39 +01:00
package lock
import (
"context"
"time"
)
type Locker interface {
WithLock(ctx context.Context, key string, timeout time.Duration, fn func(ctx context.Context) error) error
}