From 0b22d129b3abc6867f13726169226d329d406687 Mon Sep 17 00:00:00 2001 From: Nam Huynh Date: Fri, 8 Oct 2021 11:40:59 +0700 Subject: [PATCH] add func get stream info --- stream.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stream.go b/stream.go index fb8d395..95a0fb3 100644 --- a/stream.go +++ b/stream.go @@ -7,6 +7,11 @@ import ( "github.com/nats-io/nats.go" ) +// GetStreamInfo ... +func GetStreamInfo(name string) (*nats.StreamInfo, error) { + return natsJS.StreamInfo(name) +} + // AddStream add new stream, with default config func AddStream(name string, subjects []string) error { // Get info about the stream