register_curating.go raw
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 Curating driver with the driver registry.
13 RegisterDriver("curating", "Rate-limited trust tier system", curatingFactory)
14 }
15
16 // curatingFactory creates a new Curating ACL instance.
17 func curatingFactory(ctx context.Context, db database.Database, cfg *DriverConfig) (I, error) {
18 // Create a new Curating instance
19 c := new(Curating)
20 // The Curating ACL will be configured via the Configure method
21 // which is called by the ACL server after creation.
22 return c, nil
23 }
24