entry

package
v0.0.0-...-02c3ccb Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package entry implements a simple replacement strategy as a mapper.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct{}

Entry defines mutations to simply replace the current map value with the contents of the mutation.

func New

func New() *Entry

New creates a new entry mutator.

func (*Entry) CheckMutation

func (*Entry) CheckMutation(oldValue, mutation []byte) error

CheckMutation verifies that this is a valid mutation for this item.

func (*Entry) Mutate

func (*Entry) Mutate(value, mutation []byte) ([]byte, error)

Mutate applies mutation to value.

Jump to

Keyboard shortcuts

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