mapper

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

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

func (*Field) Name

func (f *Field) Name() string

func (*Field) Type

func (f *Field) Type() types.Type

type FieldPair

type FieldPair struct {
	Source      Field
	Destination Field
}

type MapConfiguration

type MapConfiguration struct {
	Pairs   []FieldPair
	NoMatch []Field
}

type StructMapper

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

func NewStructMapper

func NewStructMapper(src, dst types.Type) *StructMapper

func (*StructMapper) IgnoreFields

func (m *StructMapper) IgnoreFields(dstFields ...string) *StructMapper

func (*StructMapper) Map

func (m *StructMapper) Map() MapConfiguration

func (*StructMapper) MapField

func (m *StructMapper) MapField(srcField, dstField string) *StructMapper

func (*StructMapper) RecognizePrefixes

func (m *StructMapper) RecognizePrefixes(prefixes ...string) *StructMapper

Jump to

Keyboard shortcuts

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