class

Mangrullo::SSE::Event

Inherits Reference < Object

Event data structure

Constructors

new(type : EventType, container_id : String, container_name : String, message : String, data : Hash(String, Int32 | Bool | String) = {} of String => Int32 | Bool | String)
Source

Instance methods

container_id
Source
container_id=(container_id : String)
Source
container_name
Source
container_name=(container_name : String)
Source
data
Source
data=(data : Hash(String, Int32 | Bool | String))
Source
message
Source
message=(message : String)
Source
to_sse_json

Convert event to JSON string for SSE

Source
type
Source
type=(type : EventType)
Source