|
NATS C Client with JetStream and Streaming support
3.11.0
The nats.io C Client, Supported by Synadia Communications Inc.
|
#include <nats.h>
Public Attributes | |
| const char * | Bucket |
| Bucket is the name of the object store. | |
| const char * | Description |
| Description is an optional description for the object store. | |
| int64_t | TTL |
| TTL is the maximum age (expressed in milliseconds) of objects in the store. | |
| int64_t | MaxBytes |
| MaxBytes is the maximum size of the object store. | |
| jsStorageType | Storage |
| Storage is the type of storage to use for the object store. | |
| int | Replicas |
| Replicas is the number of replicas to keep for the object store in clustered jetstream. | |
| jsPlacement * | Placement |
| Placement is used to declare where the object store should be placed. | |
| bool | Compression |
| Compression enables the underlying stream compression. | |
| natsMetadata | Metadata |
Object store configuration object.
In order to create an object store, a configuration needs to be set. The typical usage would be to initialize all required objects on the stack and configure them, then pass the pointer to the configuration to js_CreateObjectStore.
| const char* objStoreConfig::Bucket |
Bucket name has to be unique and can only contain alphanumeric characters, dashes, and underscores.
| const char* objStoreConfig::Description |
| int64_t objStoreConfig::TTL |
If an object is not updated within this time, it will be removed from the store. By default, objects do not expire.
| int64_t objStoreConfig::MaxBytes |
If not specified, the default is -1 (unlimited).
| jsStorageType objStoreConfig::Storage |
If not specified, the default is FileStorage.
| int objStoreConfig::Replicas |
Defaults to 1, maximum is 5.
| jsPlacement* objStoreConfig::Placement |
Placement is used to declare where the object store should be placed via tags and/or an explicit cluster name.
| bool objStoreConfig::Compression |
| natsMetadata objStoreConfig::Metadata |