Topic class
- Inheritance
Properties
Methods
-
allow(
List< TopicPermission> permissions) → Topic -
Set the function's required
permissions
for the topic. -
asRequest(
) → ResourceDeclareRequest -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
permissionsToActions(
List< TopicPermission> permissions) → List<Action> -
Convert a list of permissions to gRPC actions.
override
-
register(
) → Future< void> -
Register the resource with the Nitric server.
inherited
-
registerPolicy(
List< TopicPermission> permissions) → Future<void> -
Register a policy with the Nitric server to secure the resource with least-privilege. Handles shutting down the channel.
inherited
-
subscribe(
MessageHandler handler, {List< MessageHandler> middlewares = const []}) → Future<void> -
Register a
handler
to subscribe to messages sent to the topic. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited