mongooplog

package
v0.0.0-...-462fb9d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mongooplog polls operations from the replication oplog of one server, and applies them to another.

Index

Constants

This section is empty.

Variables

View Source
var Usage = `` /* 204-byte string literal not displayed */

Functions

This section is empty.

Types

type MongoOplog

type MongoOplog struct {
	// standard tool options
	ToolOptions *options.ToolOptions

	// mongooplog-specific options
	SourceOptions *SourceOptions

	// session provider for the source server
	SessionProviderFrom *db.SessionProvider

	// session provider for the destination server
	SessionProviderTo *db.SessionProvider
}

MongoOplog is a container for the user-specified options for running mongooplog.

func (*MongoOplog) Run

func (mo *MongoOplog) Run() error

Run executes the mongooplog program.

type SourceOptions

type SourceOptions struct {
	From    string              `long:"from" value-name:"<hostname>" description:"specify the host for mongooplog to retrive operations from"`
	OplogNS string              `` /* 186-byte string literal not displayed */
	Seconds bson.MongoTimestamp `` /* 167-byte string literal not displayed */
}

SourceOptions defines the set of options to use in retrieving oplog data from the source server.

func (*SourceOptions) Name

func (_ *SourceOptions) Name() string

Name returns a human-readable group name for source options.

Directories

Path Synopsis
Main package for the mongooplog tool.
Main package for the mongooplog tool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL