settings

package
v0.0.0-...-5fa7609 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvMongoSync = "SOAJS_MONGO_SYNC_OPTIONS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoColInfo

type MongoColInfo struct {
	DbName  string `json:"dbName"`
	ColName string `json:"colName"`
}

type MongoCollections

type MongoCollections struct {
	S    MongoColInfo `json:"s"`
	D    MongoColInfo `json:"d"`
	Copy bool         `json:"copy"`
	Drop bool         `json:"drop"`
}

type MongoSource

type MongoSource struct {
	Uri    string   `json:"uri"`
	Stream []string `json:"stream"`
}

type MongoSync

type MongoSync struct {
	FirstOpTime string             `json:"firstOpTime"`
	Token       MongoUri           `json:"token"`
	Source      MongoSource        `json:"source"`
	Destination MongoUri           `json:"destination"`
	Collections []MongoCollections `json:"collections"`
}

func GetMongoSync

func GetMongoSync() (*MongoSync, error)

func (*MongoSync) Validate

func (o *MongoSync) Validate() error

type MongoUri

type MongoUri struct {
	Uri string `json:"uri"`
}

Jump to

Keyboard shortcuts

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