summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2023-01-16 17:10:43 +0800
committerfengweihao <[email protected]>2023-01-16 17:10:43 +0800
commit40f5ca926572ee4089e16db73d232237fe2e5547 (patch)
tree46bf5e1620dacb66ec101e14a7c793a8bfa7339e /include
parent4421f72a523dae5c357fb8db5cd97460f3c3c5ea (diff)
Support specifying the address of the consul agent
Diffstat (limited to 'include')
-rw-r--r--include/swarmkv/swarmkv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/swarmkv/swarmkv.h b/include/swarmkv/swarmkv.h
index c48e2bd..47117af 100644
--- a/include/swarmkv/swarmkv.h
+++ b/include/swarmkv/swarmkv.h
@@ -45,12 +45,14 @@ void swarmkv_reply_print(const struct swarmkv_reply *reply, FILE* stream);
struct swarmkv_options;
struct swarmkv_options* swarmkv_options_new(void);
int swarmkv_options_set_p2p_port(struct swarmkv_options *opts, unsigned int p2p_port);
+int swarmkv_options_set_p2p_listen_port(struct swarmkv_options *opts, unsigned int p2p_port);
int swarmkv_options_set_health_check_port(struct swarmkv_options *opts, unsigned int health_check_port);
int swarmkv_options_set_p2p_timeout_us(struct swarmkv_options *opts, unsigned int timeout_us);
int swarmkv_options_set_sync_interval_us(struct swarmkv_options *opts, unsigned int interval_us);
int swarmkv_options_set_bind_address(struct swarmkv_options *opts, const char* ip_addr);
int swarmkv_options_set_logger(struct swarmkv_options *opts, void *logger);
int swarmkv_options_set_consul_port(struct swarmkv_options *opts, unsigned int consul_port);
+int swarmkv_options_set_consul_host(struct swarmkv_options *opts, const char* ip_addr);
int swarmkv_options_set_dryrun(struct swarmkv_options *opts);
int swarmkv_options_set_disable_run_for_leader(struct swarmkv_options *opts);
int swarmkv_options_set_worker_thread_number(struct swarmkv_options *opts, size_t nr_worker_threads);