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

Method AccountInfo

jetstream/jetstream.go:51–51  ·  view source on GitHub ↗

AccountInfo fetches account information from the server, containing details about the account associated with this JetStream connection. If account is not enabled for JetStream, ErrJetStreamNotEnabledForAccount is returned. If the server does not have JetStream enabled, ErrJetStreamNotEnabled is ret

(ctx context.Context)

Source from the content-addressed store, hash-verified

49 // the server does not have JetStream enabled, ErrJetStreamNotEnabled is
50 // returned.
51 AccountInfo(ctx context.Context) (*AccountInfo, error)
52
53 // Conn returns the underlying NATS connection.
54 Conn() *nats.Conn

Callers 5

TestJetStreamErrorsFunction · 0.65
TestNewWithDomainFunction · 0.65
TestAccountInfoFunction · 0.65
waitForJSReadyFunction · 0.65
withJSClusterAndStreamFunction · 0.65

Calls

no outgoing calls

Tested by 5

TestJetStreamErrorsFunction · 0.52
TestNewWithDomainFunction · 0.52
TestAccountInfoFunction · 0.52
waitForJSReadyFunction · 0.52
withJSClusterAndStreamFunction · 0.52