摘要:
一,什么是context? 1,context是什么? context是 goroutine(协程) 的上下文,包含 goroutine 的运行状态、环境、现场等信息。context 主要用来在 goroutine 之间传递上下文信息,包括:取消信号、超时时间、截止时间、k-v 等。 2,conte 阅读全文
posted @ 2025-02-09 19:16
刘宏缔的架构森林
阅读(221)
评论(0)
推荐(0)
摘要:
一,创建middleware $ php bin/hyperf.php gen:middleware AccesslogMiddleware App\Middleware\AccesslogMiddleware created successfully. 二,配置一个日志 config/autolo 阅读全文
posted @ 2025-02-09 19:16
刘宏缔的架构森林
阅读(130)
评论(0)
推荐(0)
摘要:
一,配置 config/autoload/exceptions.php <?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document http 阅读全文
posted @ 2025-02-09 19:15
刘宏缔的架构森林
阅读(143)
评论(1)
推荐(0)
浙公网安备 33010602011771号