2020-10-09 16:34:33 +08:00
|
|
|
<?php
|
2020-10-29 18:17:25 +08:00
|
|
|
declare(strict_types=1);
|
2020-10-09 16:34:33 +08:00
|
|
|
|
|
|
|
|
namespace Kafka;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Interface ConsumerInterface
|
|
|
|
|
* @package App\Kafka
|
|
|
|
|
*/
|
|
|
|
|
interface ConsumerInterface
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2020-10-09 18:43:35 +08:00
|
|
|
* @param Struct $struct
|
2020-10-09 16:34:33 +08:00
|
|
|
* @return mixed
|
|
|
|
|
*/
|
2020-12-23 16:28:40 +08:00
|
|
|
public function onHandler(Struct $struct): void;
|
2020-10-09 16:34:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|