1 //go:build !(js && wasm)
2 3 package acl
4 5 import (
6 "context"
7 8 "next.orly.dev/pkg/database"
9 )
10 11 func init() {
12 // Register the Managed driver with the driver registry.
13 RegisterDriver("managed", "NIP-86 fine-grained access control", managedFactory)
14 }
15 16 // managedFactory creates a new Managed ACL instance.
17 func managedFactory(ctx context.Context, db database.Database, cfg *DriverConfig) (I, error) {
18 // Create a new Managed instance
19 m := new(Managed)
20 // The Managed ACL will be configured via the Configure method
21 // which is called by the ACL server after creation.
22 return m, nil
23 }
24