Documentation ¶
Index ¶
Constants ¶
View Source
const ( IndexTopic = 0 IndexContentType = 1 IndexContent = 2 )
Variables ¶
This section is empty.
Functions ¶
func Unserialize ¶
func Unserialize(data []byte, target interface{})
Types ¶
type Message ¶
type Message struct { Topic string ContentType string Content SerializedValue }
func NewMessage ¶
func NewMessageFromFrames ¶
type SerializedValue ¶
type SerializedValue []byte
func Serialize ¶
func Serialize(data any) SerializedValue
func (SerializedValue) To ¶
func (d SerializedValue) To(target interface{})
func (SerializedValue) ToInt ¶
func (d SerializedValue) ToInt() int
func (SerializedValue) ToString ¶
func (d SerializedValue) ToString() string
Click to show internal directories.
Click to hide internal directories.