pipeline

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SmartConfiguring = true
	/*DirtyConfiguring - flag*/
	DirtyConfiguring = false

	EmptyAdditionalPrefix = ""
)

Variables

This section is empty.

Functions

func Configure

func Configure(

	structure interface{},

	fileName string,

	pipelineChains []infra.FuncType,

	prefix string,

	smartConfigure bool) (result interface{}, err error)

Configure - main configurer

Types

type Chain

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

type DefaultConfig

type DefaultConfig struct {
}

DefaultConfig - one of most configuring source functions that should preparing fields in structures of data by default values setuped by special tag name

func (DefaultConfig) GetBaseType

func (config DefaultConfig) GetBaseType(context *structContext) infra.GoStructorValue

GetBaseType - get base type from default values.

func (DefaultConfig) GetComplexType

func (config DefaultConfig) GetComplexType(context *structContext) infra.GoStructorValue

GetComplexType - get slices, maps, arrays or anything else hard types

type EnvironmentConfig

type EnvironmentConfig struct {
}

EnvironmentConfig - configuring structures from environment

func (EnvironmentConfig) GetBaseType

func (config EnvironmentConfig) GetBaseType(context *structContext) infra.GoStructorValue

GetBaseType - getting base type values

func (EnvironmentConfig) GetComplexType

func (config EnvironmentConfig) GetComplexType(context *structContext) infra.GoStructorValue

GetComplexType - getting complex types like slices from environment variable

type HoconConfig

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

func (*HoconConfig) GetBaseType

func (config *HoconConfig) GetBaseType(context *structContext) infra.GoStructorValue

func (HoconConfig) GetComplexType

func (config HoconConfig) GetComplexType(context *structContext) infra.GoStructorValue

type IConfigure

type IConfigure interface {
	GetComplexType(*structContext) infra.GoStructorValue
	GetBaseType(*structContext) infra.GoStructorValue
}

IConfigure - configurer interface for chain pipeline configuration

type IMiddleware

type IMiddleware interface {
	ActionConfigure(*structContext) error
}

type JsonConfig

type JsonConfig struct {
}

func (JsonConfig) GetBaseType

func (json JsonConfig) GetBaseType(context *structContext) infra.GoStructorValue

func (JsonConfig) GetComplexType

func (json JsonConfig) GetComplexType(context *structContext) infra.GoStructorValue

type Pipeline

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

Pipeline -

type YamlConfig

type YamlConfig struct {
}

func (YamlConfig) GetBaseType

func (yaml YamlConfig) GetBaseType(context *structContext) infra.GoStructorValue

func (YamlConfig) GetComplexType

func (yaml YamlConfig) GetComplexType(context *structContext) infra.GoStructorValue

Jump to

Keyboard shortcuts

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