Discover Packages
github.com/compose/transporter
message
package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Mar 24, 2017
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 50
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package message provides wrapper structs and helper methods to pipe
actual database documents throughout transporter.
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.
Data returns the internal representation of the document as the data.Data type
ID will attempt to convert the _id field into a string representation
Namespace returns the combination of database/table/colleciton for the underlying adaptor.
OP returns the type of operation the message is associated with (i.e. insert/update/delete).
Timestamp returns the time the object was created in transporter (i.e. it has no correlation
with any time in the database).
A Msg serves to wrap the actual document to
provide additional metadata about the document
being transported.
From builds a message.Msg specific to an elasticsearch document
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.