omit

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: BSD-3-Clause Imports: 2 Imported by: 0

README

omit function

omit() will remove any fields specified from the message and then send down the pipeline. It currently only works for top level fields (i.e. address.street would not work).

configuration
omit({"fields": ["name"]})
example

message in

{
    "_id": 0,
    "name": "transporter",
    "type": "function"
}

config

omit({"fields":["type"]})

message out

{
    "_id": 0,
    "name": "transporter"
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Omitter

type Omitter struct {
	Fields []string `json:"fields"`
}

func (*Omitter) Apply

func (o *Omitter) Apply(msg message.Msg) (message.Msg, error)

Jump to

Keyboard shortcuts

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