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

#include <nats.h>

Public Attributes

const char * Type
 Response type. Always "io.nats.micro.v1.info_response". More...
 
const char * Name
 The name of the service. More...
 
const char * Version
 The semantic version of the service. More...
 
const char * Description
 The description of the service. More...
 
const char * Id
 The ID of the service instance responding to the request. More...
 
natsMetadata Metadata
 Metadata for the service, a JSON-encoded user-provided object, e.g. {"key":"value"} More...
 
microEndpointInfoEndpoints
 Endpoints. More...
 
int EndpointsLen
 The number of endpoints in the Endpoints array. More...
 

Detailed Description

microServiceInfo is the struct returned by microService_GetInfo function. It is also accessible by sending a $SRV.INFO.<service-name>[.<id>] request to the service.

Member Data Documentation

◆ Type

const char* micro_service_info_s::Type

◆ Name

const char* micro_service_info_s::Name

◆ Version

const char* micro_service_info_s::Version

◆ Description

const char* micro_service_info_s::Description

◆ Id

const char* micro_service_info_s::Id

◆ Metadata

natsMetadata micro_service_info_s::Metadata

◆ Endpoints

microEndpointInfo* micro_service_info_s::Endpoints

◆ EndpointsLen

int micro_service_info_s::EndpointsLen

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