19 lines
288 B
Go
19 lines
288 B
Go
package urbac
|
|
|
|
import (
|
|
"github.com/loveuer/urbac/cache"
|
|
"github.com/loveuer/urbac/store"
|
|
)
|
|
|
|
func WithPersistentStore(store store.Store) Option {
|
|
return func(u *Urbac) {
|
|
u.store = store
|
|
}
|
|
}
|
|
|
|
func WithCache(cache cache.Cache) Option {
|
|
return func(u *Urbac) {
|
|
u.cache = cache
|
|
}
|
|
}
|