decorator

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyStringReplacerDecoratorReader

type KeyStringReplacerDecoratorReader struct {
	Reader    reader.Reader
	OldString string
	NewString string
}

KeyStringReplacerDecoratorReader a decorator that perfoms string substitution in a property value

func (*KeyStringReplacerDecoratorReader) Read

type PlaceholderReplacerDecoratorReader

type PlaceholderReplacerDecoratorReader struct {
	Reader                         reader.Reader
	StartDelimiter                 string
	EndDelimiter                   string
	DefaultValueSeparator          string
	IgnoreUnresolvablePlaceholders bool
}

PlaceholderReplacerDecoratorReader a decorator that resolves property placeholders

func (*PlaceholderReplacerDecoratorReader) Read

type PriorityQueueDecoratorReader

type PriorityQueueDecoratorReader struct {
	ReadersMap map[int][]reader.Reader
}

PriorityQueueDecoratorReader A Reader that wraps a prioritized list of other Readers. Each Reader in the list has a priority that is used to resolve conflicts when a key is defined more than once. If two or more Readers have the same priority, the one added by last has the highest priority

func NewPriorityQueueDecoratorReader

func NewPriorityQueueDecoratorReader() *PriorityQueueDecoratorReader

NewPriorityQueueDecoratorReader creats a new PriorityQueueDecoratorReader instance

func (*PriorityQueueDecoratorReader) Add

Add adds a new Reader

func (*PriorityQueueDecoratorReader) Read

type ToLowerCaseKeyDecoratorReader

type ToLowerCaseKeyDecoratorReader struct {
	Reader reader.Reader
}

ToLowerCaseKeyDecoratorReader transforms all property keys to lowercase

func (*ToLowerCaseKeyDecoratorReader) Read

Jump to

Keyboard shortcuts

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