Crate chimes_utils

Crate chimes_utils 

Source

Macros§

error
impl From<&str> for ChimesError { fn from(e: &str) -> Self { Self::msg(e) } } impl From for ChimesError { fn from(e: String) -> Self { Self::msg(e) } } impl From<::std::io::Error> for ChimesError { fn from(e: ::std::io::Error) -> Self { Self { kind: ErrorKind::Io(e), source: None, } } }

Structs§

APP_DATA
ApiResult
AppConfig
CUSTOM_PERFORMANCE_COUNTER
ChimesClient
请求客户端
ChimesError
The WechatError type
ChimesPerformanceInfo
ChimesWebSocketClient
CommonSearch
CustomCounter
CustomCounterInfo
DatabaseConfig
Dummy
DynamicWrapper
The packing/Wrapper of the SQL SQL passed into the Wrapper keep the keyword uppercase
EmailBody
EmailSendingQueue
EmailServerConfig
FUNCTION_TRANSLATE_DICT
FaceDbConfig
GatewayProxyInfo
GatewayProxyManagement
GatewayRegisterInfo
HANDLER_FUNC_REGISTRY
HealthCheckInfo
MAP_GATEWAY_PROXY
MPTemplateMessage
MultipleDatabaseIntercepter
ProcessQueue
ProcessTask
RedisConfig
RedisConnectionManager
RedisPoolConfig
SearchField
TokioAccessToken
Access Token对象
TokioToken
Token信息
Translation
UniformMessage
ValuePaire
WECHAT_CONFIG_CACHES_ATT
WeappTemplateMessage
WebServerConfig
WechatConfig
微信sdk配置
WechatError
The WechatError type

Enums§

ErrorKind
InstanceType
PlatformType
微们接口平台类型
RedisClient
RedisConnection
WechatErrorKind

Constants§

API_DOMAIN
微信接口域名
DEFAULT_USER_AGENT
WECHAT_DEFAULT_USER_AGENT

Statics§

GLOBAL_REDIS_POOL

Traits§

DictTranslate

Functions§

bool_from_str
build_health_info
build_register_info
calc_file_hash
config_task_queue_max_tasks
config_task_queue_wait_timeout
count_queue_tasks
current_timestamp
current_timestamp_secs
获取当前时间戮
custom_performance_counter_add
custom_performance_counter_increase
custom_performance_counter_reset
datetime_diff
datetime_to_date
decimal_add
decimal_compare
decimal_mult_decimal
decimal_plus_decimal
decimal_to_f32
decimal_to_f64
f32_from_str
f32_to_decimal
f64_from_str
f64_to_decimal
f64_to_decimal_v2
file_size_format
format_date_string
gen_redis_conn_pool
generate_rand_numberstring
generate_rand_string
generate_rand_string_v2
get_custom_performance_counter
get_date_string
get_email_queue
get_hash_value
get_local_timestamp
get_multiple_rbatis
get_multiple_rbatis_async
get_rbatis
get_redis_connection
get_task_queue
get_translate_dict_fn
get_url_encode
get_url_encode2
ggp_add_health_check_task
ggp_delay_register
ggp_health_check
Global Gateway Proxy Server 代理服务器的健康检查 时不时的向代理服务器自己的健康情况
ggp_register_proxy
Global Gateway Proxy Server 向代理服务器进行注册 或向Gateway进行注册
global_app_data_get
global_app_data_insert
global_app_data_insert_with_expire
global_app_data_remove
global_app_data_resizing
当这个APP_DATA的大小太大了后,就需要进行resizing操作
i32_from_str
i64_from_str
init_global_redis
int_to_decimal
json_decode
make_decimal_negative
notify_queue_process
num_to_string
num_to_string_v2
number_to_string
parse_query
parse_query_as_value
pure_datetime_to_date
queue_registry_handler
rbatis_compatible_sql
根据数据库类型来产生,对应的兼容的SQL查询语句 原始参考SQL是MySQL 如目标数据库类型是PostgreSQL,就将其转换成为$1这样的参数
redis_del
redis_get
redis_set
redis_set_expire
reload_translate_dicts
rsa_decrypt_by_private_key
rsa_encrypt_by_public_key
script_eval
set_file_permission
set_translate_dict_fn
start_email_queue_thread
start_task_queue_thread
stop_email_queue_thread
stop_task_queue_thread
task_queue_is_full
template_eval
text_insert_br
translate_dict
u64_from_str
write_file

Type Aliases§

ChimesResult
Result
WechatResult