transform

package
v0.0.0-...-b6f2496 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TransformDBRef

func TransformDBRef(doc *bson.Raw, db string, nsTrans *NamespaceTransform) *bson.Raw

func TransformDBRefByDocD

func TransformDBRefByDocD(docD bson.D, db string, nsTrans *NamespaceTransform) bson.D

Types

type DBTransform

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

func NewDBTransform

func NewDBTransform(transRule []string) *DBTransform

func (*DBTransform) Transform

func (transform *DBTransform) Transform(db string) []string

type NamespaceTransform

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

func NewNamespaceTransform

func NewNamespaceTransform(transRule []string) *NamespaceTransform

func (*NamespaceTransform) Transform

func (transform *NamespaceTransform) Transform(namespace string) string

Jump to

Keyboard shortcuts

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