k911/swoole-bundle

View on GitHub
src/Server/Api/ApiServerInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

declare(strict_types=1);

namespace K911\Swoole\Server\Api;

interface ApiServerInterface
{
    /**
     * Get Swoole HTTP Server status.
     */
    public function status(): array;

    /**
     * Shutdown Swoole HTTP Server.
     */
    public function shutdown(): void;

    /**
     * Reload Swoole HTTP Server workers.
     */
    public function reload(): void;

    /**
     * Get Swoole HTTP Server metrics.
     */
    public function metrics(): array;
}