Skip to content

Commit

Permalink
Merge pull request #591 from nats-io/js_stream_list
Browse files Browse the repository at this point in the history
[ADDED] JetStream: Stream infos/names list
  • Loading branch information
kozlovic authored Sep 22, 2022
2 parents 0db15b9 + 17ef0c9 commit aa14c1a
Show file tree
Hide file tree
Showing 4 changed files with 718 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ extern const int64_t jsDefaultRequestWait;
// jsApiDirectMsgGetLastBySubjectT is the endpoint to perform a direct get of a message by subject.
#define jsApiDirectMsgGetLastBySubjectT "%.*s.DIRECT.GET.%s.%s"

// jsApiStreamListT is the endpoint to get the list of stream infos.
#define jsApiStreamListT "%.*s.STREAM.LIST"

// jsApiStreamNamesT is the endpoint to get the list of stream names.
#define jsApiStreamNamesT "%.*s.STREAM.NAMES"

// Creates a subject based on the option's prefix, the subject format and its values.
#define js_apiSubj(s, o, f, ...) (nats_asprintf((s), (f), (o)->Prefix, __VA_ARGS__) < 0 ? NATS_NO_MEMORY : NATS_OK)

Expand Down
Loading

0 comments on commit aa14c1a

Please sign in to comment.