更新fs2和hos_client_create接口

This commit is contained in:
彭宣正
2020-12-01 16:12:41 +08:00
parent 34d03a35f0
commit a9bbbc320c
7 changed files with 355 additions and 181 deletions

View File

@@ -77,13 +77,14 @@ typedef void (*put_finished_callback)(bool, const char *, const char *, const ch
/*************************************************************************************
* 函数名: hos_client_init
* 参数: const char *endpoint 目的地址,如”http://192.168.44.12:9098/hos“
* 参数: const char *serverip 目的地址,如"192.168.44.12"
* size_t port 端口号
* const char *accesskeyid AWS access key ID如”default“
* const char *secretkey AWS secret key如”default“
* size_t thread_sum 线程总数
* 返回值: 成功返回一个非空句柄失败返回NULL。失败原因都是因为输入参数不合法
*************************************************************************************/
hos_client_handle hos_client_create(const char *endpoint, const char *accesskeyid, const char *secretkey, size_t pool_size);
hos_client_handle hos_client_create(const char *serverip, size_t port, const char *accesskeyid, const char *secretkey, size_t pool_size);
/*************************************************************************************
* 函数名: hos_create_bucket
* 参数: hos_client_handle handle 非空句柄
@@ -105,11 +106,11 @@ int hos_create_bucket(hos_client_handle handle, const char *bucket);
*************************************************************************************/
void hos_set_cache_size(hos_client_handle handle, size_t cache_size);
/*************************************************************************************
* 函数名: hos_set_cache_times
* 函数名: hos_set_cache_count
* 参数: hos_client_handle handle 非空句柄
* size_t cache_times append 模式追加次数
* size_t cache_count append 模式追加次数
*************************************************************************************/
void hos_set_cache_times(hos_client_handle handle, size_t cache_times);
void hos_set_cache_count(hos_client_handle handle, size_t cache_count);
/*************************************************************************************
* 函数名: hos_set_thread_sum
* 参数: hos_client_handle handle 非空句柄