You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
589 B
23 lines
589 B
//go:build !(js && wasm) |
|
|
|
package acl |
|
|
|
import ( |
|
"context" |
|
|
|
"next.orly.dev/pkg/database" |
|
) |
|
|
|
func init() { |
|
// Register the Follows driver with the driver registry. |
|
RegisterDriver("follows", "Whitelist based on admin follow lists", followsFactory) |
|
} |
|
|
|
// followsFactory creates a new Follows ACL instance. |
|
func followsFactory(ctx context.Context, db database.Database, cfg *DriverConfig) (I, error) { |
|
// Create a new Follows instance |
|
f := new(Follows) |
|
// The Follows ACL will be configured via the Configure method |
|
// which is called by the ACL server after creation. |
|
return f, nil |
|
}
|
|
|