Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
450 Bytes
package basic
import (
"context"
"github.com/target/goalert/ctxlock"
)
// Provider implements the auth.IdentityProvider interface.
type Provider struct {
b *Store
lim *ctxlock.IDLocker[string]
}
// NewProvider creates a new Provider with the associated config.
func NewProvider(ctx context.Context, store *Store) (*Provider, error) {
return &Provider{
b: store,
lim: ctxlock.NewIDLocker[string](ctxlock.Config{MaxHeld: 1}),
}, nil
}