Documentation ¶
Overview ¶
Package message provides wrapper structs and helper methods to pipe actual database documents throughout transporter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶ added in v0.1.2
Base represents a standard message format for transporter data if it does not meet your need, you can embed the struct and override whatever methods needed to accurately represent the data structure.
func (*Base) Data ¶ added in v0.1.2
Data returns the internal representation of the document as the data.Data type
func (*Base) ID ¶ added in v0.1.2
ID will attempt to convert the _id field into a string representation
func (*Base) Namespace ¶ added in v0.1.2
Namespace returns the combination of database/table/colleciton for the underlying adaptor.
Click to show internal directories.
Click to hide internal directories.