mongo

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OplogPrefix = "oplog_"
	OplogPath   = "oplog_" + utility.VersionStr + "/"
	OplogEndTs  = "WALG_MONGO_OPLOG_END_TS"
	OplogDst    = "WALG_MONGO_OPLOG_DST"
)

Variables

This section is empty.

Functions

func FetchLogs added in v0.2.12

func FetchLogs(folder storage.Folder, backup *internal.Backup) error

func HandleOplogPush

func HandleOplogPush(uploader *Uploader)

func HandleStreamPush

func HandleStreamPush(uploader *Uploader, command []string)

Types

type OpLogFetchHandlers added in v0.2.12

type OpLogFetchHandlers struct {
	// contains filtered or unexported fields
}

func (OpLogFetchHandlers) DownloadLogTo added in v0.2.12

func (handlers OpLogFetchHandlers) DownloadLogTo(logFolder storage.Folder, logName string, dstLogFilePath string) error

func (OpLogFetchHandlers) GetLogFilePath added in v0.2.12

func (handlers OpLogFetchHandlers) GetLogFilePath(pathToLog string) (string, error)

func (OpLogFetchHandlers) HandleAbortFetch added in v0.2.12

func (handlers OpLogFetchHandlers) HandleAbortFetch(logFilePath string) error

func (OpLogFetchHandlers) ShouldBeAborted added in v0.2.12

func (handlers OpLogFetchHandlers) ShouldBeAborted(pathToLog string) (bool, error)

type OpLogFetchSettings added in v0.2.12

type OpLogFetchSettings struct{}

func (OpLogFetchSettings) GetDstEnv added in v0.2.12

func (settings OpLogFetchSettings) GetDstEnv() string

func (OpLogFetchSettings) GetEndTsEnv added in v0.2.12

func (settings OpLogFetchSettings) GetEndTsEnv() string

func (OpLogFetchSettings) GetLogFolderPath added in v0.2.12

func (settings OpLogFetchSettings) GetLogFolderPath() string

type StreamSentinelDto

type StreamSentinelDto struct {
	StartLocalTime  time.Time   `json:"StartLocalTime,omitempty"`
	FinishLocalTime time.Time   `json:"FinishLocalTime,omitempty"`
	UserData        interface{} `json:"UserData,omitempty"`
}

type Uploader

type Uploader struct {
	*internal.Uploader
}

func (*Uploader) UploadStream

func (uploader *Uploader) UploadStream(stream io.Reader) error

TODO : unit tests UploadStream compresses a stream and uploads it.

Jump to

Keyboard shortcuts

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