LemonChannels.Capabilities.Registry (lemon_channels v0.1.0)

View Source

Registry for capability sets and lookups.

Summary

Functions

Returns a predefined capability set.

Registers a custom capability set.

Functions

get_set(name)

Returns a predefined capability set.

register_set(name, capabilities)

@spec register_set(atom(), [LemonChannels.Capabilities.Capability.t()]) :: :ok

Registers a custom capability set.

Note: Custom sets are not persisted and only exist for the current process.