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.
28 lines
512 B
28 lines
512 B
package acl |
|
|
|
import ( |
|
"lol.mleku.dev/log" |
|
) |
|
|
|
type None struct{} |
|
|
|
func (n None) Configure(cfg ...any) (err error) { return } |
|
|
|
func (n None) GetAccessLevel(pub []byte, address string) (level string) { |
|
return "write" |
|
} |
|
|
|
func (n None) GetACLInfo() (name, description, documentation string) { |
|
return "none", "no ACL", "blanket write access for all clients" |
|
} |
|
|
|
func (n None) Type() string { |
|
return "none" |
|
} |
|
|
|
func (n None) Syncer() {} |
|
|
|
func init() { |
|
log.T.F("registering none ACL") |
|
Registry.Register(new(None)) |
|
}
|
|
|