Documentation
¶
Index ¶
- Constants
- type Client
- type Config
- type Event
- func (e *Event) Broadcast(event render.SSEvent)
- func (e *Event) Close() error
- func (e *Event) Handler(c wool.Ctx) error
- func (e *Event) Middleware(next wool.Handler) wool.Handler
- func (e *Event) Notify(clientID string, event render.SSEvent)
- func (e *Event) Subscribe(cl Client)
- func (e *Event) Unsubscribe(clientID string)
- type MetricsConfig
Constants ¶
View Source
const ( ClientKey = "sse_client" EventConnected = "connected" EventClosing = "closing" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ClientIdle time.Duration `mapstructure:"client_idle"`
Metrics *MetricsConfig `mapstructure:"metrics"`
}
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) Unsubscribe ¶
type MetricsConfig ¶
Click to show internal directories.
Click to hide internal directories.