diff --git a/events/nats_config.go b/events/nats_config.go index 4a19d06..e769ccb 100644 --- a/events/nats_config.go +++ b/events/nats_config.go @@ -66,6 +66,9 @@ type NatsOptions struct { // Setting Stream parameters will cause a NATS stream to be added. Stream *NatsStreamOptions `mapstructure:"stream"` + + // KVReplicationFactor sets the number of copies in a NATS clustered environment + KVReplicationFactor int `mapstructure:"kv_replication"` } // NatsConsumerOptions is the parameters for the NATS consumer configuration.