NATS C Client with JetStream and Streaming support  3.9.1
The nats.io C Client, Supported by Synadia Communications Inc.
micro_endpoint_config_s Struct Reference

#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...
 

Detailed Description

The Microservice endpoint configuration object.

Member Data Documentation

◆ Name

const char* micro_endpoint_config_s::Name

Used in the service stats to list endpoints by name. Must not be empty.

◆ Subject

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.

◆ QueueGroup

const char* micro_endpoint_config_s::QueueGroup

◆ NoQueueGroup

bool micro_endpoint_config_s::NoQueueGroup

◆ Metadata

natsMetadata micro_endpoint_config_s::Metadata

◆ Handler

microRequestHandler micro_endpoint_config_s::Handler

◆ State

void* micro_endpoint_config_s::State

The documentation for this struct was generated from the following file: