Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocWriter ¶
type DocWriter struct { Ssn *mgo.Session // Session to db instance Meta *database.MetaDBHandle // Handle to metadata Databases []string // Track the db states // contains filtered or unexported fields }
DocWriter writes documents to a database
func New ¶
func New(cfg *config.Resources, mdb *database.MetaDBHandle) *DocWriter
New generates a new DocWriter
func (*DocWriter) Flush ¶
func (d *DocWriter) Flush()
Flush writes the final documents to the db and exits docwriter
Click to show internal directories.
Click to hide internal directories.