Documentation ¶
Overview ¶
Package writer provides message writer concept definitions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Channel string Publisher string Protocol string Version int `json:"bver,omitempty"` Name string `json:"n,omitempty"` Unit string `json:"u,omitempty"` Value float64 `json:"v,omitempty"` StringValue string `json:"vs,omitempty"` BoolValue bool `json:"vb,omitempty"` DataValue string `json:"vd,omitempty"` ValueSum float64 `json:"s,omitempty"` Time float64 `json:"t,omitempty"` UpdateTime float64 `json:"ut,omitempty"` Link string `json:"l,omitempty"` }
Message represents a resolved (normalized) raw message.
type MessageRepository ¶
type MessageRepository interface { // Save persists the message. A non-nil error is returned to indicate // operation failure. Save(RawMessage) error }
MessageRepository specifies a message persistence API.
Click to show internal directories.
Click to hide internal directories.