mgosd

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package mgosd provides types and main functionality of mgosd software.

Index

Constants

View Source
const (
	LOCALHOST    = "127.0.0.1"
	DEFAULT_PORT = 27017
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dumper

type Dumper struct {
	DatabaseConfig MongoDBConfig
	OutputPath     string
	// contains filtered or unexported fields
}

func NewDumper

func NewDumper(dbConfig MongoDBConfig, interval time.Duration, output string) (*Dumper, error)

func (*Dumper) Start

func (d *Dumper) Start(mutex *sync.Mutex, collection string) error

func (*Dumper) Stop

func (d *Dumper) Stop()

type MongoDBConfig

type MongoDBConfig struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	Auth     bool
	Login    string `json:"login"`
	Password string `json:"password"`
	Database string `json:"database"`
	Timeout  time.Duration
}

Jump to

Keyboard shortcuts

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