MCPcopy
hub / github.com/nats-io/nats.go / apiSubject

Method apiSubject

jetstream/api.go:153–161  ·  view source on GitHub ↗
(subj string)

Source from the content-addressed store, hash-verified

151}
152
153func (js *jetStream) apiSubject(subj string) string {
154 if js.opts.apiPrefix == "" {
155 return subj
156 }
157 var b strings.Builder
158 b.WriteString(js.opts.apiPrefix)
159 b.WriteString(subj)
160 return b.String()
161}

Callers 4

apiRequestMethod · 0.95
ConsumeMethod · 0.80
MessagesMethod · 0.80
fetchMethod · 0.80

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected