Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONTime ¶
JSONTime represent an timestamp
func (JSONTime) MarshalJSON ¶
MarshalJSON will mashall an timestamp
func (*JSONTime) UnmarshalJSON ¶
UnmarshalJSON unmashall the timestapm
type Message ¶
type Message struct { // SendAsJSON will send this message as json to the Topic SendAsJSON bool `json:"o,omitempty"` // ReqID [OPTIONAL] represents the current request ReqID string `json:"r,omitempty"` // The topic Timestamp JSONTime `json:"s,omitempty"` // The topic Topic string `json:"t,omitempty"` // TopicReply [OPTIONAL] - the request should reply with this topic TopicReply string `json:"tr,omitempty"` // payload Payload string `json:"v"` // contains filtered or unexported fields }
Message represent a single message from/to SSE
func (*Message) JSONString ¶
JSONString will convert an message to an json string
func (Message) MarshalZerologObject ¶
MarshalZerologObject implementation to use it with Object()
Click to show internal directories.
Click to hide internal directories.