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 Follows driver with the driver registry.
13 RegisterDriver("follows", "Whitelist based on admin follow lists", followsFactory)
14 }
15 16 // followsFactory creates a new Follows ACL instance.
17 func followsFactory(ctx context.Context, db database.Database, cfg *DriverConfig) (I, error) {
18 // Create a new Follows instance
19 f := new(Follows)
20 // The Follows ACL will be configured via the Configure method
21 // which is called by the ACL server after creation.
22 return f, nil
23 }
24