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 return nil
} }
// GetClient ...
func GetClient() *nats.Conn {
return natsClient
}
// GetJetStream ... // GetJetStream ...
func GetJetStream() nats.JetStreamContext { func GetJetStream() nats.JetStreamContext {
return natsJS return natsJS