Documentation
¶
Overview ¶
Package sse SSE 的服务端实现
Index ¶
Constants ¶
View Source
const Mimetype = "text/event-stream"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSE ¶
type SSE[T comparable] struct { // contains filtered or unexported fields }
SSE sse 事件管理
T 表示用于区分不同事件源的 ID,比如按用户区分, 那么该类型可能是 int64 类型的用户 ID 值。
Click to show internal directories.
Click to hide internal directories.