| 1 |
|
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 6 |
<meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 7 |
<meta name="generator" content="Doxygen 1.9.8"/> |
| 8 |
<title>NATS C Client with JetStream and Streaming support: microGroup</title> |
| 9 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 |
<script type="text/javascript" src="jquery.js"></script> |
| 11 |
<script type="text/javascript" src="dynsections.js"></script> |
| 12 |
<link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 |
<script type="text/javascript" src="resize.js"></script> |
| 14 |
<script type="text/javascript" src="navtreedata.js"></script> |
| 15 |
<script type="text/javascript" src="navtree.js"></script> |
| 16 |
<link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 17 |
<script type="text/javascript" src="search/searchdata.js"></script> |
| 18 |
<script type="text/javascript" src="search/search.js"></script> |
| 19 |
<link href="customdoxygen.css" rel="stylesheet" type="text/css" /> |
| 20 |
</head> |
| 21 |
<body> |
| 22 |
<div id="top"> |
| 23 |
<div id="titlearea"> |
| 24 |
<table cellspacing="0" cellpadding="0"> |
| 25 |
<tbody> |
| 26 |
<tr style="height: 56px;"> |
| 27 |
<td id="projectalign" style="padding-left: 0.5em;" > |
| 28 |
<div id="projectname">NATS C Client with JetStream and Streaming support |
| 29 |
 <span id="projectnumber">3.12.0</span> |
| 30 |
</div> |
| 31 |
<div id="projectbrief">The nats.io C Client, Supported by Synadia Communications Inc.</div> |
| 32 |
</td> |
| 33 |
</tr> |
| 34 |
</tbody> |
| 35 |
</table> |
| 36 |
</div> |
| 37 |
|
| 38 |
|
| 39 |
<script type="text/javascript"> |
| 40 |
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ |
| 41 |
var searchBox = new SearchBox("searchBox", "search/",'.html'); |
| 42 |
/* @license-end */ |
| 43 |
</script> |
| 44 |
<script type="text/javascript" src="menudata.js"></script> |
| 45 |
<script type="text/javascript" src="menu.js"></script> |
| 46 |
<script type="text/javascript"> |
| 47 |
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ |
| 48 |
$(function() { |
| 49 |
initMenu('',true,false,'search.php','Search'); |
| 50 |
$(document).ready(function() { init_search(); }); |
| 51 |
}); |
| 52 |
/* @license-end */ |
| 53 |
</script> |
| 54 |
<div id="main-nav"></div> |
| 55 |
</div> |
| 56 |
<div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 57 |
<div id="nav-tree"> |
| 58 |
<div id="nav-tree-contents"> |
| 59 |
<div id="nav-sync" class="sync"></div> |
| 60 |
</div> |
| 61 |
</div> |
| 62 |
<div id="splitbar" style="-moz-user-select:none;" |
| 63 |
class="ui-resizable-handle"> |
| 64 |
</div> |
| 65 |
</div> |
| 66 |
<script type="text/javascript"> |
| 67 |
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ |
| 68 |
$(document).ready(function(){initNavTree('group__micro_group_functions.html',''); initResizable(); }); |
| 69 |
/* @license-end */ |
| 70 |
</script> |
| 71 |
<div id="doc-content"> |
| 72 |
|
| 73 |
<div id="MSearchSelectWindow" |
| 74 |
onmouseover="return searchBox.OnSearchSelectShow()" |
| 75 |
onmouseout="return searchBox.OnSearchSelectHide()" |
| 76 |
onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 77 |
</div> |
| 78 |
|
| 79 |
|
| 80 |
<div id="MSearchResultsWindow"> |
| 81 |
<div id="MSearchResults"> |
| 82 |
<div class="SRPage"> |
| 83 |
<div id="SRIndex"> |
| 84 |
<div id="SRResults"></div> |
| 85 |
<div class="SRStatus" id="Loading">Loading...</div> |
| 86 |
<div class="SRStatus" id="Searching">Searching...</div> |
| 87 |
<div class="SRStatus" id="NoMatches">No Matches</div> |
| 88 |
</div> |
| 89 |
</div> |
| 90 |
</div> |
| 91 |
</div> |
| 92 |
|
| 93 |
<div class="header"> |
| 94 |
<div class="summary"> |
| 95 |
<a href="#func-members">Functions</a> </div> |
| 96 |
<div class="headertitle"><div class="title">microGroup<div class="ingroups"><a class="el" href="group__micro_group.html">Microservices</a> » <a class="el" href="group__micro_functions.html">Functions</a></div></div></div> |
| 97 |
</div> |
| 98 |
<div class="contents"> |
| 99 |
<table class="memberdecls"> |
| 100 |
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a> |
| 101 |
Functions</h2></td></tr> |
| 102 |
<tr class="memitem:gade7fd0f2080a2e647b79c20a5019394d" id="r_gade7fd0f2080a2e647b79c20a5019394d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="group__micro_types.html#ga41ae4121cf2f8e326369bbc2e44e20d7">microError</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__micro_group_functions.html#gade7fd0f2080a2e647b79c20a5019394d">microGroup_AddGroup</a> (<a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133">microGroup</a> **new_group, <a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133">microGroup</a> *parent, <a class="el" href="group__micro_types.html#ga8ea3d2aa37d1e89fb9c6d87c10dfe603">microGroupConfig</a> *config)</td></tr> |
| 103 |
<tr class="memdesc:gade7fd0f2080a2e647b79c20a5019394d"><td class="mdescLeft"> </td><td class="mdescRight">Adds a sub-group to <a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133" title="a collection of endpoints and other groups, with a common prefix to their subjects and names.">microGroup</a>. <br /></td></tr> |
| 104 |
<tr class="separator:gade7fd0f2080a2e647b79c20a5019394d"><td class="memSeparator" colspan="2"> </td></tr> |
| 105 |
<tr class="memitem:gabc9641ad7ee7775c388c864f2ffa6883" id="r_gabc9641ad7ee7775c388c864f2ffa6883"><td class="memItemLeft" align="right" valign="top"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="group__micro_types.html#ga41ae4121cf2f8e326369bbc2e44e20d7">microError</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__micro_group_functions.html#gabc9641ad7ee7775c388c864f2ffa6883">microGroup_AddEndpoint</a> (<a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133">microGroup</a> *g, <a class="el" href="group__micro_types.html#ga7718d2f2c911e4cf677788f4ffe048cd">microEndpointConfig</a> *config)</td></tr> |
| 106 |
<tr class="memdesc:gabc9641ad7ee7775c388c864f2ffa6883"><td class="mdescLeft"> </td><td class="mdescRight">Adds an endpoint to a <a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133" title="a collection of endpoints and other groups, with a common prefix to their subjects and names.">microGroup</a> and starts listening for messages. <br /></td></tr> |
| 107 |
<tr class="separator:gabc9641ad7ee7775c388c864f2ffa6883"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 |
</table> |
| 109 |
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 110 |
<p>Functions that operate with <a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133" title="a collection of endpoints and other groups, with a common prefix to their subjects and names.">microGroup</a>. </p> |
| 111 |
<h2 class="groupheader">Function Documentation</h2> |
| 112 |
<a id="gade7fd0f2080a2e647b79c20a5019394d" name="gade7fd0f2080a2e647b79c20a5019394d"></a> |
| 113 |
<h2 class="memtitle"><span class="permalink"><a href="#gade7fd0f2080a2e647b79c20a5019394d">◆ </a></span>microGroup_AddGroup()</h2> |
| 114 |
|
| 115 |
<div class="memitem"> |
| 116 |
<div class="memproto"> |
| 117 |
<table class="memname"> |
| 118 |
<tr> |
| 119 |
<td class="memname"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="group__micro_types.html#ga41ae4121cf2f8e326369bbc2e44e20d7">microError</a> * microGroup_AddGroup </td> |
| 120 |
<td>(</td> |
| 121 |
<td class="paramtype"><a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133">microGroup</a> ** </td> |
| 122 |
<td class="paramname"><em>new_group</em>, </td> |
| 123 |
</tr> |
| 124 |
<tr> |
| 125 |
<td class="paramkey"></td> |
| 126 |
<td></td> |
| 127 |
<td class="paramtype"><a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133">microGroup</a> * </td> |
| 128 |
<td class="paramname"><em>parent</em>, </td> |
| 129 |
</tr> |
| 130 |
<tr> |
| 131 |
<td class="paramkey"></td> |
| 132 |
<td></td> |
| 133 |
<td class="paramtype"><a class="el" href="group__micro_types.html#ga8ea3d2aa37d1e89fb9c6d87c10dfe603">microGroupConfig</a> * </td> |
| 134 |
<td class="paramname"><em>config</em> </td> |
| 135 |
</tr> |
| 136 |
<tr> |
| 137 |
<td></td> |
| 138 |
<td>)</td> |
| 139 |
<td></td><td></td> |
| 140 |
</tr> |
| 141 |
</table> |
| 142 |
</div><div class="memdoc"> |
| 143 |
<p>The new subgroup will be prefixed as "parent_prefix.prefix.". Groups are associated with a service, and are destroyed when the service is destroyed.</p> |
| 144 |
<dl class="params"><dt>Parameters</dt><dd> |
| 145 |
<table class="params"> |
| 146 |
<tr><td class="paramname">new_group</td><td>the location where to store the pointer to the new <a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133" title="a collection of endpoints and other groups, with a common prefix to their subjects and names.">microGroup</a> object. </td></tr> |
| 147 |
<tr><td class="paramname">parent</td><td>the <a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133" title="a collection of endpoints and other groups, with a common prefix to their subjects and names.">microGroup</a> that the new group will be added to. </td></tr> |
| 148 |
<tr><td class="paramname">config</td><td>group parameters.</td></tr> |
| 149 |
</table> |
| 150 |
</dd> |
| 151 |
</dl> |
| 152 |
<dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="group__micro_types.html#ga41ae4121cf2f8e326369bbc2e44e20d7" title="the Microservice error object.">microError</a> if an error occurred.</dd></dl> |
| 153 |
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__micro_group_functions.html#gade7fd0f2080a2e647b79c20a5019394d" title="Adds a sub-group to microGroup.">microGroup_AddGroup</a>, <a class="el" href="group__micro_group_functions.html#gabc9641ad7ee7775c388c864f2ffa6883" title="Adds an endpoint to a microGroup and starts listening for messages.">microGroup_AddEndpoint</a> </dd></dl> |
| 154 |
|
| 155 |
</div> |
| 156 |
</div> |
| 157 |
<a id="gabc9641ad7ee7775c388c864f2ffa6883" name="gabc9641ad7ee7775c388c864f2ffa6883"></a> |
| 158 |
<h2 class="memtitle"><span class="permalink"><a href="#gabc9641ad7ee7775c388c864f2ffa6883">◆ </a></span>microGroup_AddEndpoint()</h2> |
| 159 |
|
| 160 |
<div class="memitem"> |
| 161 |
<div class="memproto"> |
| 162 |
<table class="memname"> |
| 163 |
<tr> |
| 164 |
<td class="memname"><a class="el" href="nats_8h.html#a3bc1b3fe7f64083e60c7c3b93f205bad">NATS_EXTERN</a> <a class="el" href="group__micro_types.html#ga41ae4121cf2f8e326369bbc2e44e20d7">microError</a> * microGroup_AddEndpoint </td> |
| 165 |
<td>(</td> |
| 166 |
<td class="paramtype"><a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133">microGroup</a> * </td> |
| 167 |
<td class="paramname"><em>g</em>, </td> |
| 168 |
</tr> |
| 169 |
<tr> |
| 170 |
<td class="paramkey"></td> |
| 171 |
<td></td> |
| 172 |
<td class="paramtype"><a class="el" href="group__micro_types.html#ga7718d2f2c911e4cf677788f4ffe048cd">microEndpointConfig</a> * </td> |
| 173 |
<td class="paramname"><em>config</em> </td> |
| 174 |
</tr> |
| 175 |
<tr> |
| 176 |
<td></td> |
| 177 |
<td>)</td> |
| 178 |
<td></td><td></td> |
| 179 |
</tr> |
| 180 |
</table> |
| 181 |
</div><div class="memdoc"> |
| 182 |
<p>This is a convenience method to add an endpoint with its <code>Subject</code> and <code>Name</code> prefixed with the group's prefix.</p> |
| 183 |
<dl class="params"><dt>Parameters</dt><dd> |
| 184 |
<table class="params"> |
| 185 |
<tr><td class="paramname">g</td><td>the <a class="el" href="group__micro_types.html#ga2681ea21e9f5f6681b972bbb67e32133" title="a collection of endpoints and other groups, with a common prefix to their subjects and names.">microGroup</a> that the endpoint will be added to. </td></tr> |
| 186 |
<tr><td class="paramname">config</td><td>a <a class="el" href="group__micro_types.html#ga7718d2f2c911e4cf677788f4ffe048cd" title="The Microservice endpoint configuration object.">microEndpointConfig</a> object with the configuration of the endpoint. See <a class="el" href="structmicro__endpoint__config__s.html">micro_endpoint_config_s</a> for descriptions of the fields.</td></tr> |
| 187 |
</table> |
| 188 |
</dd> |
| 189 |
</dl> |
| 190 |
<dl class="section return"><dt>Returns</dt><dd>a <a class="el" href="group__micro_types.html#ga41ae4121cf2f8e326369bbc2e44e20d7" title="the Microservice error object.">microError</a> if an error occurred.</dd></dl> |
| 191 |
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__micro_service_functions.html#ga32ff6b2fb38eafb4df8e6b1039ee5984" title="Destroys a microservice, stopping it first if needed.">microService_Destroy</a>, <a class="el" href="group__micro_service_functions.html#gadcab5687b72ec24ef7ae647ea844ebc7" title="Adds an endpoint to a microservice and starts listening for messages.">microService_AddEndpoint</a>, <a class="el" href="group__micro_types.html#ga7718d2f2c911e4cf677788f4ffe048cd" title="The Microservice endpoint configuration object.">microEndpointConfig</a> </dd></dl> |
| 192 |
|
| 193 |
</div> |
| 194 |
</div> |
| 195 |
</div> |
| 196 |
</div> |
| 197 |
|
| 198 |
|
| 199 |
<div id="nav-path" class="navpath"> |
| 200 |
<ul> |
| 201 |
<li class="footer">NATS.IO Supported By Synadia Communications Inc. |
| 202 |
<a href="http://www.nats.io"> |
| 203 |
</a></li> |
| 204 |
</ul> |
| 205 |
</div> |
| 206 |
</body> |
| 207 |
</html> |