mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-24 00:40:40 +00:00
Deploying to gh-pages from @ GreptimeTeam/greptimedb@fcb77fd025 🚀
This commit is contained in:
25
meta_srv/utils/postgres/fn.build_postgres_election.html
Normal file
25
meta_srv/utils/postgres/fn.build_postgres_election.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Builds a Postgres-backed election implementation."><title>build_postgres_election in meta_srv::utils::postgres - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="meta_srv" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (ac7f9ec7d 2026-03-20)" data-channel="nightly" data-search-js="search-63369b7b.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../../static.files/storage-41dd4d93.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">build_postgres_election</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../meta_srv/index.html">meta_<wbr>srv</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In meta_<wbr>srv::<wbr>utils::<wbr>postgres</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">meta_srv</a>::<wbr><a href="../index.html">utils</a>::<wbr><a href="index.html">postgres</a></div><h1>Function <span class="fn">build_<wbr>postgres_<wbr>election</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/meta_srv/utils/postgres.rs.html#124-152">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn build_postgres_election(
|
||||
store_addrs: &[<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>],
|
||||
cfg: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Config>,
|
||||
tls_config: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../servers/tls/struct.TlsOption.html" title="struct servers::tls::TlsOption">TlsOption</a>>,
|
||||
leader_value: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
store_key_prefix: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>,
|
||||
candidate_lease_ttl: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
meta_lease_ttl: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>,
|
||||
schema_name: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>,
|
||||
table_name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||||
lock_id: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
|
||||
) -> <a class="type" href="../../error/type.Result.html" title="type meta_srv::error::Result">Result</a><<a class="type" href="../../metasrv/type.ElectionRef.html" title="type meta_srv::metasrv::ElectionRef">ElectionRef</a>></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Builds a Postgres-backed election implementation.</p>
|
||||
<ul>
|
||||
<li><code>store_addrs</code> - Postgres connection URLs; only the first address is used.</li>
|
||||
<li><code>cfg</code> - optional deadpool config to customize pool/session behavior.</li>
|
||||
<li><code>tls_config</code> - optional TLS settings for the Postgres connection.</li>
|
||||
<li><code>leader_value</code> - advertised address of this election candidate.</li>
|
||||
<li><code>store_key_prefix</code> - prefix for election and candidate keys.</li>
|
||||
<li><code>candidate_lease_ttl</code> - TTL for registered candidate metadata.</li>
|
||||
<li><code>meta_lease_ttl</code> - TTL for the elected leader metadata.</li>
|
||||
<li><code>schema_name</code> - optional schema containing the metadata table.</li>
|
||||
<li><code>table_name</code> - metadata KV table name used for election records.</li>
|
||||
<li><code>lock_id</code> - Postgres advisory lock id used by the election.</li>
|
||||
</ul>
|
||||
</div></details></section></div></main></body></html>
|
||||
19
meta_srv/utils/postgres/fn.build_postgres_kv_backend.html
Normal file
19
meta_srv/utils/postgres/fn.build_postgres_kv_backend.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Builds a Postgres-backed metadata `KvBackendRef`."><title>build_postgres_kv_backend in meta_srv::utils::postgres - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="meta_srv" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (ac7f9ec7d 2026-03-20)" data-channel="nightly" data-search-js="search-63369b7b.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../../static.files/storage-41dd4d93.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">build_postgres_kv_backend</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../meta_srv/index.html">meta_<wbr>srv</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In meta_<wbr>srv::<wbr>utils::<wbr>postgres</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">meta_srv</a>::<wbr><a href="../index.html">utils</a>::<wbr><a href="index.html">postgres</a></div><h1>Function <span class="fn">build_<wbr>postgres_<wbr>kv_<wbr>backend</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/meta_srv/utils/postgres.rs.html#90-109">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn build_postgres_kv_backend(
|
||||
store_addrs: &[<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>],
|
||||
cfg: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Config>,
|
||||
tls_config: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../servers/tls/struct.TlsOption.html" title="struct servers::tls::TlsOption">TlsOption</a>>,
|
||||
schema_name: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>,
|
||||
table_name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||||
max_txn_ops: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
||||
auto_create_schema: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||||
) -> <a class="type" href="../../error/type.Result.html" title="type meta_srv::error::Result">Result</a><KvBackendRef></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Builds a Postgres-backed metadata [<code>KvBackendRef</code>].</p>
|
||||
<ul>
|
||||
<li><code>store_addrs</code> - Postgres connection URLs; only the first address is used.</li>
|
||||
<li><code>cfg</code> - optional deadpool config to customize pool/session behavior.</li>
|
||||
<li><code>tls_config</code> - optional TLS settings for the Postgres connection.</li>
|
||||
<li><code>schema_name</code> - optional schema containing the metadata table.</li>
|
||||
<li><code>table_name</code> - metadata KV table name.</li>
|
||||
<li><code>max_txn_ops</code> - maximum operations allowed in one metadata transaction.</li>
|
||||
<li><code>auto_create_schema</code> - whether to create <code>schema_name</code> when it is missing.</li>
|
||||
</ul>
|
||||
</div></details></section></div></main></body></html>
|
||||
2
meta_srv/utils/postgres/fn.convert_tls_option.html
Normal file
2
meta_srv/utils/postgres/fn.convert_tls_option.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Converts `TlsOption` to `PgTlsOption` to avoid circular dependencies"><title>convert_tls_option in meta_srv::utils::postgres - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="meta_srv" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (ac7f9ec7d 2026-03-20)" data-channel="nightly" data-search-js="search-63369b7b.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../../static.files/storage-41dd4d93.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">convert_tls_option</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../meta_srv/index.html">meta_<wbr>srv</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In meta_<wbr>srv::<wbr>utils::<wbr>postgres</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">meta_srv</a>::<wbr><a href="../index.html">utils</a>::<wbr><a href="index.html">postgres</a></div><h1>Function <span class="fn">convert_<wbr>tls_<wbr>option</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/meta_srv/utils/postgres.rs.html#31-47">Source</a> </span></div><pre class="rust item-decl"><code>fn convert_tls_option(tls_option: &<a class="struct" href="../../../servers/tls/struct.TlsOption.html" title="struct servers::tls::TlsOption">TlsOption</a>) -> TlsOption</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Converts <a href="../../../servers/tls/struct.TlsOption.html" title="struct servers::tls::TlsOption"><code>TlsOption</code></a> to [<code>PgTlsOption</code>] to avoid circular dependencies</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
7
meta_srv/utils/postgres/fn.create_postgres_pool.html
Normal file
7
meta_srv/utils/postgres/fn.create_postgres_pool.html
Normal file
@@ -0,0 +1,7 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Creates a pool for the Postgres backend with config and optional TLS."><title>create_postgres_pool in meta_srv::utils::postgres - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="meta_srv" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (ac7f9ec7d 2026-03-20)" data-channel="nightly" data-search-js="search-63369b7b.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../../static.files/storage-41dd4d93.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">create_postgres_pool</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../meta_srv/index.html">meta_<wbr>srv</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In meta_<wbr>srv::<wbr>utils::<wbr>postgres</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">meta_srv</a>::<wbr><a href="../index.html">utils</a>::<wbr><a href="index.html">postgres</a></div><h1>Function <span class="fn">create_<wbr>postgres_<wbr>pool</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/meta_srv/utils/postgres.rs.html#52-78">Source</a> </span></div><pre class="rust item-decl"><code>pub async fn create_postgres_pool(
|
||||
store_addrs: &[<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>],
|
||||
cfg: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Config>,
|
||||
tls_config: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../../servers/tls/struct.TlsOption.html" title="struct servers::tls::TlsOption">TlsOption</a>>,
|
||||
) -> <a class="type" href="../../error/type.Result.html" title="type meta_srv::error::Result">Result</a><Pool></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a pool for the Postgres backend with config and optional TLS.</p>
|
||||
<p>It only use first store addr to create a pool, and use the given config to create a pool.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
1
meta_srv/utils/postgres/index.html
Normal file
1
meta_srv/utils/postgres/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `postgres` mod in crate `meta_srv`."><title>meta_srv::utils::postgres - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="meta_srv" data-themes="" data-resource-suffix="" data-rustdoc-version="1.96.0-nightly (ac7f9ec7d 2026-03-20)" data-channel="nightly" data-search-js="search-63369b7b.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../../static.files/storage-41dd4d93.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-5013f961.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module postgres</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../meta_srv/index.html">meta_<wbr>srv</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module postgres</a></h2><h3><a href="#functions">Module Items</a></h3><ul class="block"><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In meta_<wbr>srv::<wbr>utils</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">meta_srv</a>::<wbr><a href="../index.html">utils</a></div><h1>Module <span>postgres</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/meta_srv/utils/postgres.rs.html#15-152">Source</a> </span></div><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.build_postgres_election.html" title="fn meta_srv::utils::postgres::build_postgres_election">build_<wbr>postgres_<wbr>election</a></dt><dd>Builds a Postgres-backed election implementation.</dd><dt><a class="fn" href="fn.build_postgres_kv_backend.html" title="fn meta_srv::utils::postgres::build_postgres_kv_backend">build_<wbr>postgres_<wbr>kv_<wbr>backend</a></dt><dd>Builds a Postgres-backed metadata [<code>KvBackendRef</code>].</dd><dt><a class="fn" href="fn.convert_tls_option.html" title="fn meta_srv::utils::postgres::convert_tls_option">convert_<wbr>tls_<wbr>option</a><span title="Restricted Visibility"> 🔒</span> </dt><dd>Converts <a href="../../../servers/tls/struct.TlsOption.html" title="struct servers::tls::TlsOption"><code>TlsOption</code></a> to [<code>PgTlsOption</code>] to avoid circular dependencies</dd><dt><a class="fn" href="fn.create_postgres_pool.html" title="fn meta_srv::utils::postgres::create_postgres_pool">create_<wbr>postgres_<wbr>pool</a></dt><dd>Creates a pool for the Postgres backend with config and optional TLS.</dd></dl></section></div></main></body></html>
|
||||
1
meta_srv/utils/postgres/sidebar-items.js
Normal file
1
meta_srv/utils/postgres/sidebar-items.js
Normal file
@@ -0,0 +1 @@
|
||||
window.SIDEBAR_ITEMS = {"fn":["build_postgres_election","build_postgres_kv_backend","convert_tls_option","create_postgres_pool"]};
|
||||
Reference in New Issue
Block a user