maplistmerge

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MODE_DEFAULT = defaultmerge.MODE_DEFAULT
	MODE_NONE    = defaultmerge.MODE_NONE
	MODE_LOCAL   = defaultmerge.MODE_LOCAL
	MODE_INBOUND = defaultmerge.MODE_INBOUND
)
View Source
const ALGORITHM = "mapListMerge"

Variables

This section is empty.

Functions

func New

func New() hpi.Handler

Types

type Config

type Config struct {
	defaultmerge.Config
	KeyField string             `json:"keyField"`
	Entries  *hpi.Specification `json:"entries,omitempty"`
}

func NewConfig

func NewConfig(field string, overwrite Mode, entries ...*hpi.Specification) *Config

func (*Config) Complete

func (c *Config) Complete(ctx hpi.Context) error

type Entry

type Entry = map[string]interface{}

type Mode

type Mode = defaultmerge.Mode

type Value

type Value = []Entry

Value is the minimal structure of values usable with the merge algorithm.

Jump to

Keyboard shortcuts

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