mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
Merge pull request #3221 from nats-io/direct
Made direct get from a stream part of the $JS.API hierarchy vs separate.
This commit is contained in:
@@ -121,8 +121,11 @@ const (
|
||||
// JSDirectMsgGet is the template for non-api layer direct requests for a message by its stream sequence number or last by subject.
|
||||
// Will return the message similar to how a consumer receives the message, no JSON processing.
|
||||
// If the message can not be found we will use a status header of 404. If the stream does not exist the client will get a no-responders or timeout.
|
||||
JSDirectMsgGet = "$JS.DS.GET.*"
|
||||
JSDirectMsgGetT = "$JS.DS.GET.%s"
|
||||
JSDirectMsgGet = "$JS.API.DIRECT.GET.*"
|
||||
JSDirectMsgGetT = "$JS.API.DIRECT.GET.%s"
|
||||
|
||||
// jsDirectGetPre
|
||||
jsDirectGetPre = "$JS.API.DIRECT.GET"
|
||||
|
||||
// JSApiConsumerCreate is the endpoint to create ephemeral consumers for streams.
|
||||
// Will return JSON response.
|
||||
|
||||
Reference in New Issue
Block a user