Replies: 3 comments 3 replies
-
My plan for a NATS integration is to create a new provider just for NATS in a new module at The built-in kv provider is intended to give a really simple way to get values from a static map defined at start time. You could use this to turn features on/off in templates, or set any kind of start-time configuration for templates to consume. One of the main reasons why I added kv is because it serves as a good example of how to implement a provider because it's so simple. :) You can see a very simple example at: https://github.com/infogulch/xtemplate/blob/master/test/templates/kv/index.html https://github.com/infogulch/xtemplate/blob/master/test/tests/kv.hurl https://github.com/infogulch/xtemplate/blob/master/test/config.json |
Beta Was this translation helpful? Give feedback.
-
Do you have any particular configuration and API in mind for nats KV? Perhaps:
|
Beta Was this translation helpful? Give feedback.
-
Nats KV getting done significant upgrades soon too. Cant remember the issue right now.. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/infogulch/xtemplate/blob/wip/providers/kv.go caught me eye.
Would you be open to adding some examples so that I can get a feel for file, kv and sql providers ?
I could write a NATS KV feed for this ?
SO then when the data changes in NATS Jetstream, the KV values would be exposed to this system ?
For reference there is a NATS / CADDY integration here: https://github.com/sandstorm/caddy-nats-bridge
I have the idea of using the two Caddy Modules together in some way.
Beta Was this translation helpful? Give feedback.
All reactions