add return nats client

This commit is contained in:
Nam Huynh 2021-12-02 10:01:01 +07:00
parent 38aaf70405
commit 7c944a9897
1 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,11 @@ func Connect(cfg Config) error {
return nil
}
// GetClient ...
func GetClient() *nats.Conn {
return natsClient
}
// GetJetStream ...
func GetJetStream() nats.JetStreamContext {
return natsJS