Skip to content

feat(nats): adding nats clients#13

Merged
Jacobbrewer1 merged 3 commits intomainfrom
feat/nats
Mar 31, 2025
Merged

feat(nats): adding nats clients#13
Jacobbrewer1 merged 3 commits intomainfrom
feat/nats

Conversation

@Jacobbrewer1
Copy link
Owner

Describe your changes

This pull request adds support for NATS and JetStream to the application. The changes include new dependencies, initialization options, and methods to interact with NATS and JetStream.

Integration with NATS and JetStream:

  • Added nats.go and jetstream dependencies to go.mod and imported them in app.go and options.go. [1] [2]
  • Introduced new fields natsClient and natsStream in the App struct to manage NATS connection and JetStream stream.
  • Added WithNatsClient, WithInClusterNatsClient, and WithNatsJetStream start options to initialize NATS and JetStream.
  • Implemented methods to access NATS and JetStream (NatsClient, NatsJetStream, CreateNatsJetStreamConsumer).

Additional Methods for App Struct:

  • Added several new methods to the App struct for better encapsulation and access to internal components (Logger, VaultClient, Viper, DBConn, KubeClient, Done, IsLeader, LeaderChange, StartServer, RedisPool, WorkerPool). [1] [2]

These changes enhance the application's capabilities by integrating with NATS and JetStream, providing more flexible initialization options, and improving the encapsulation of internal components.

@Jacobbrewer1 Jacobbrewer1 enabled auto-merge (squash) March 31, 2025 09:56
@Jacobbrewer1 Jacobbrewer1 merged commit 3cb5432 into main Mar 31, 2025
5 checks passed
@Jacobbrewer1 Jacobbrewer1 deleted the feat/nats branch March 31, 2025 09:59
@github-actions
Copy link

github-actions bot commented May 1, 2025

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant