Skip to content

Commit

Permalink
feat: add Nitric.queue resource (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
HomelessDinosaur authored Mar 12, 2024
1 parent 5e6c21f commit 8023977
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/nitric.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ class Nitric {
static BucketResource bucket(String name) =>
_makeResource(name, BucketResource.new) as BucketResource;

/// Create a [name]d queue for enqueuing and dequeuing messages.
static QueueResource queue(String name) =>
_makeResource(name, QueueResource.new) as QueueResource;

/// Create a [name]d api for registering HTTP handlers.
static Api api(String name, {ApiOptions? opts}) =>
_makeResource(name, (name) => Api(name, opts: opts)) as Api;
Expand Down

0 comments on commit 8023977

Please sign in to comment.