mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-05-21 22:33:38 +02:00
25 lines
393 B
Go
25 lines
393 B
Go
package sessions
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
type NoOpLock struct{}
|
|
|
|
func (l *NoOpLock) Obtain(_ context.Context, _ time.Duration) error {
|
|
return nil
|
|
}
|
|
|
|
func (l *NoOpLock) Peek(_ context.Context) (bool, error) {
|
|
return false, nil
|
|
}
|
|
|
|
func (l *NoOpLock) Refresh(_ context.Context, _ time.Duration) error {
|
|
return nil
|
|
}
|
|
|
|
func (l *NoOpLock) Release(_ context.Context) error {
|
|
return nil
|
|
}
|