NATS C Client with JetStream and Streaming support
3.9.1
The nats.io C Client, Supported by Synadia Communications Inc.
|
#include <nats.h>
Public Attributes | |
const char * | Name |
The name of the endpoint. More... | |
const char * | Subject |
The NATS subject the endpoint will listen on. More... | |
const char * | QueueGroup |
Overrides the default queue group for the service. More... | |
bool | NoQueueGroup |
Disables the use of a queue group for the service. More... | |
natsMetadata | Metadata |
Metadata for the endpoint, a JSON-encoded user-provided object, e.g. {"key":"value"} More... | |
microRequestHandler | Handler |
The request handler for the endpoint. More... | |
void * | State |
A user-provided pointer to store with the endpoint (state/closure). More... | |
The Microservice endpoint configuration object.
const char* micro_endpoint_config_s::Name |
Used in the service stats to list endpoints by name. Must not be empty.
const char* micro_endpoint_config_s::Subject |
Wildcards are allowed. If Subject
is empty, it attempts to default to Name
, provided it is a valid subject.
For endpoints added to a group, the subject is automatically prefixed with the group's prefix.
const char* micro_endpoint_config_s::QueueGroup |
bool micro_endpoint_config_s::NoQueueGroup |
natsMetadata micro_endpoint_config_s::Metadata |
microRequestHandler micro_endpoint_config_s::Handler |
void* micro_endpoint_config_s::State |