remap

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

README

remap function

remap() will replace existing namespaces with new ones based on the provided configuration.

configuration
remap({"ns_map": {"foo":"bar"}})
example

message in

{
    "namespace": "foo",
    {
        "_id": 0,
        "name": "transporter",
        "type": "function",
        "count": 10
    }
}

config

remap({"ns_map": {"foo":"bar"}})

message out

{
    "namespace": "bar",
    {
        "_id": 0,
        "name": "transporter",
        "type": "function",
        "count": 10
    }
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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