auth_client
简介
做为客户端接入authserver服务器
组件接口
auth_client.gs
| 函数原型 | 函数作用 |
|---|---|
| object create_client(map para) | 创建一个authserver客户端连接对象 |
| void start(map para) | 初始化authserver客户端连接对象 |
| bool send(string op, map args = ) | 发送指令到authserver服务器,不等待指令处理结果 |
| array send_request(string op, map args = , int timeout = DEFAULT_REQUEST_TIMEOUT) | 发送指令到authserver服务器,并且等待指令处理结果 |
| mixed auth_token(string type, map args) | 向authserver服务器请求验证token |
| void shutdown_auth_server() | 向authserver服务器发送关机指令 |