mongobatch

package
v0.9.29 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

View Source
const Name = "mongo-batch"

Variables

This section is empty.

Functions

func Decode

func Decode(s string) (interface{}, error)

func Encode

func Encode(v interface{}) (string, error)

func SetupInitialPosition

func SetupInitialPosition(cache position_store.PositionCacheInterface, session *mgo.Session, router core.Router, cfg Config) error

Types

type Config

type Config struct {
	Source         *config.MongoConnConfig `mapstructure:"source" toml:"source" json:"source"`
	BatchSize      int                     `mapstructure:"batch-size"  toml:"batch-size" json:"batch-size"`
	WorkerCnt      int                     `mapstructure:"worker-cnt" toml:"worker-cnt" json:"worker-cnt"`
	ChunkThreshold int                     `mapstructure:"chunk-threshold"  toml:"chunk-threshold"  json:"chunk-threshold"`
}

type PositionValue

type PositionValue struct {
	Start  bson.MongoTimestamp `bson:"start" json:"start"`
	Chunks []chunk             `bson:"chunks"  json:"chunks"`
}

Jump to

Keyboard shortcuts

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