Documentation ¶
Index ¶
Constants ¶
View Source
const ( SmartConfiguring = true /*DirtyConfiguring - flag*/ DirtyConfiguring = false EmptyAdditionalPrefix = "" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 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
Click to show internal directories.
Click to hide internal directories.