Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
e02a30d8
Commit
e02a30d8
authored
Nov 06, 2019
by
xmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:物流接受通知rpc
parent
f27a27c6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
123 additions
and
0 deletions
+123
-0
src/Common/Pool/Config/LogisticsPoolConfig.php
+105
-0
src/Logistics/Lib/LogisticsInterface.php
+18
-0
No files found.
src/Common/Pool/Config/LogisticsPoolConfig.php
0 → 100644
View file @
e02a30d8
<?php
/**
* This file is part of Swoft.
*
* @link https://swoft.org
* @document https://doc.swoft.org
* @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace
Hdll\Services\Common\Pool\Config
;
use
Swoft\Bean\Annotation\Bean
;
use
Swoft\Bean\Annotation\Value
;
use
Swoft\Pool\PoolProperties
;
/**
* the config of service user
*
* @Bean()
*/
class
LogisticsPoolConfig
extends
PoolProperties
{
public
function
__construct
()
{
// 区别本地和线上的RPC服务地址
$this
->
uri
=
explode
(
','
,
env
(
'RPC_LOGISTICS_URI'
,
'buyer:8099'
));
}
/**
* the name of pool
*
*/
protected
$name
=
'logistics'
;
/**
* Minimum active number of connections
*
*/
protected
$minActive
=
5
;
/**
* the maximum number of active connections
*
*/
protected
$maxActive
=
300
;
/**
* the maximum number of wait connections
*
*/
protected
$maxWait
=
400
;
/**
* Maximum waiting time
*
*/
protected
$maxWaitTime
=
3
;
/**
* Maximum idle time
*
*/
protected
$maxIdleTime
=
60
;
/**
* the time of connect timeout
*
*/
protected
$timeout
=
200
;
/**
* the addresses of connection
*
* <pre>
* [
* '127.0.0.1:88',
* '127.0.0.1:88'
* ]
* </pre>
*
*/
protected
$uri
=
[
"buyer:8099"
,
];
/**
* whether to user provider(consul/etcd/zookeeper)
*
*/
protected
$useProvider
=
false
;
/**
* the default balancer is random balancer
*
*/
protected
$balancer
=
''
;
/**
* the default provider is consul provider
*
*/
protected
$provider
=
''
;
}
src/Logistics/Lib/LogisticsInterface.php
0 → 100644
View file @
e02a30d8
<?php
namespace
Hdll\Services\Logistics\Lib
;
use
Swoft\Core\ResultInterface
;
/**
* @method ResultInterface deferOnPath(array $param)
* Class LotteryInterface
* @package Hdll\Services\Logistics\Lib
*/
interface
LogisticsInterface
{
public
function
onPath
(
array
$param
);
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment