easy-swoole / component Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
thrown in /data/php-src/automan/EasySwooleEvent.php on line 29
[2020-09-05 09:38:06][debug][error]:[Uncaught Error: Class 'EasySwoole\Component\Pool\PoolManager' not found in /data/php-src/automan/EasySwooleEvent.php:29
是否可以变更ext-swoole版本到>=4.4
版本3.1.18 提示
EasySwoole\Component\Openssl is deprecated ,use EasySwoole\Component\Crypto instead
实际上Crypto 这里面是空类, 还没达到可用状态。
(由于在开发环境里安装的早期的3.1.18版本, 当部署到服务器时拉取3.1.18版本貌似内容有变,
版本定在了3.1.18,所以暂不升级ES。)
clear和clearAll函数均不能清除delay生成的定时任务,而用原生swoole_timer_clear则可以清除
/**
* @param $name
* @param array $columns ['col'=>['type'=>Table::TYPE_STRING,'size'=>1]]
* @param int $size
*/
public function add($name,array $columns,$size = 1024):self
{
if(!isset($this->list[$name])){
$table = new Table($size);
foreach ($columns as $column => $item){
$table->column($column,$item['type'],$item['size']);
}
$table->create();
$this->list[$name] = $table;
}
return $this;
}
TableManager::getInstance()
->add('user',
[
'token' => ['type' => Table::TYPE_STRING, 'size' => 32],
'user_id' => ['type' => Table::TYPE_STRING, 'size' => 32],
'fd' => ['type' => Table::TYPE_INT, 'size' => 10],
])
->add('message', [
'send_msg' => ['type' => Table::TYPE_STRING, 'size' => 200],
'take_msg' => ['type' => Table::TYPE_STRING, 'size' => 200],
'send_user_id' => ['type' => Table::TYPE_INT, 'size' => 1]
]);
不太建议过多使用Swoole Table,或在 component 作出一些限制
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.