Versions in this module Expand all Collapse all v0 v0.1.0 Jun 17, 2021 Changes in this version + const NonOptionArgsPropertyName + const ProcyonAppFilePath + const ProcyonAppFilePrefix + const ProcyonAppFilePropertySource + const ProcyonAppFileSuffix + const ProcyonApplicationCommandLinePropertySource + const ProcyonDefaultProfile + const ProcyonSystemEnvironmentPropertySource + func BytesToStr(bytes []byte) string + func FlatMap(m map[string]interface{}) map[string]interface + func ForEachComponentProcessor(callback func(string, goo.Type) error) (err error) + func ForEachComponentType(callback func(string, goo.Type) error) (err error) + func GenerateUUID(uuidBuffer []byte) + func GetComponentTypes(requestedType goo.Type) ([]goo.Type, error) + func GetComponentTypesWithParam(requestedType goo.Type, paramTypes []goo.Type) ([]goo.Type, error) + func Register(components ...Component) + type AppFileParser struct + func NewAppFileParser() *AppFileParser + func (parser *AppFileParser) Parse(filePaths []string) (map[string]interface{}, error) + type AppFilePropertySource struct + func NewAppFilePropertySource(profiles string) *AppFilePropertySource + func (propertySource *AppFilePropertySource) ContainsProperty(name string) bool + func (propertySource *AppFilePropertySource) GetName() string + func (propertySource *AppFilePropertySource) GetProperty(name string) interface{} + func (propertySource *AppFilePropertySource) GetPropertyNames() []string + func (propertySource *AppFilePropertySource) GetSource() interface{} + type BooleanToStringConverter struct + func NewBooleanToStringConverter() BooleanToStringConverter + func (converter BooleanToStringConverter) Convert(source interface{}, sourceTyp goo.Type, targetTyp goo.Type) (interface{}, error) + func (converter BooleanToStringConverter) Support(sourceTyp goo.Type, targetTyp goo.Type) bool + type CommandLineArgs struct + func NewCommandLineArgs() CommandLineArgs + type CommandLinePropertySource interface + ContainsOption func(name string) bool + GetNonOptionArgs func() []string + GetOptionValues func(name string) []string + type Component interface + type ComponentProcessor interface + ProcessComponent func(typ goo.Type) error + SupportsComponent func(typ goo.Type) bool + type ConfigurableEnvironment interface + GetPropertySources func() *PropertySources + GetSystemEnvironment func() []string + GetTypeConverterService func() TypeConverterService + type DefaultTypeConverterService struct + func NewDefaultTypeConverterService() *DefaultTypeConverterService + func (cs *DefaultTypeConverterService) CanConvert(sourceTyp goo.Type, targetTyp goo.Type) bool + func (cs *DefaultTypeConverterService) Convert(source interface{}, sourceTyp goo.Type, targetTyp goo.Type) (result interface{}, err error) + func (cs *DefaultTypeConverterService) RegisterConverter(converter TypeConverter) + type Environment interface + type NumberToStringConverter struct + func NewNumberToStringConverter() NumberToStringConverter + func (converter NumberToStringConverter) Convert(source interface{}, sourceTyp goo.Type, targetTyp goo.Type) (interface{}, error) + func (converter NumberToStringConverter) Support(sourceTyp goo.Type, targetTyp goo.Type) bool + type Priority interface + GetPriority func() PriorityValue + type PriorityValue int32 + const PriorityHighest + const PriorityLowest + type PropertyResolver interface + ContainsProperty func(name string) bool + GetProperty func(name string, defaultValue string) interface{} + type PropertySource interface + ContainsProperty func(name string) bool + GetName func() string + GetProperty func(name string) interface{} + GetPropertyNames func() []string + GetSource func() interface{} + type PropertySources struct + func NewPropertySources() *PropertySources + func (o *PropertySources) Add(propertySource PropertySource) + func (o *PropertySources) Get(name string) (PropertySource, bool) + func (o *PropertySources) GetPropertyResources() []PropertySource + func (o *PropertySources) GetSize() int + func (o *PropertySources) Remove(name string) PropertySource + func (o *PropertySources) RemoveIfPresent(propertySource PropertySource) + func (o *PropertySources) Replace(name string, propertySource PropertySource) + type SimpleCommandLineArgsParser struct + func NewCommandLineArgsParser() SimpleCommandLineArgsParser + func (parser SimpleCommandLineArgsParser) Parse(args []string) (CommandLineArgs, error) + type SimpleCommandLinePropertySource struct + func NewSimpleCommandLinePropertySource(args []string) SimpleCommandLinePropertySource + func (cmdLineSource SimpleCommandLinePropertySource) ContainsOption(name string) bool + func (cmdLineSource SimpleCommandLinePropertySource) ContainsProperty(name string) bool + func (cmdLineSource SimpleCommandLinePropertySource) GetName() string + func (cmdLineSource SimpleCommandLinePropertySource) GetNonOptionArgs() []string + func (cmdLineSource SimpleCommandLinePropertySource) GetOptionValues(name string) []string + func (cmdLineSource SimpleCommandLinePropertySource) GetProperty(name string) interface{} + func (cmdLineSource SimpleCommandLinePropertySource) GetPropertyNames() []string + func (cmdLineSource SimpleCommandLinePropertySource) GetSource() interface{} + type SimplePropertyResolver struct + func NewSimplePropertyResolver(sources *PropertySources) *SimplePropertyResolver + func (resolver *SimplePropertyResolver) ContainsProperty(name string) bool + func (resolver *SimplePropertyResolver) GetProperty(name string, defaultValue string) interface{} + type StandardEnvironment struct + func NewStandardEnvironment() StandardEnvironment + func (env StandardEnvironment) ContainsProperty(name string) bool + func (env StandardEnvironment) GetProperty(name string, defaultValue string) interface{} + func (env StandardEnvironment) GetPropertySources() *PropertySources + func (env StandardEnvironment) GetSystemEnvironment() []string + func (env StandardEnvironment) GetTypeConverterService() TypeConverterService + type StringToBooleanConverter struct + func NewStringToBooleanConverter() StringToBooleanConverter + func (converter StringToBooleanConverter) Convert(source interface{}, sourceTyp goo.Type, targetTyp goo.Type) (result interface{}, err error) + func (converter StringToBooleanConverter) Support(sourceTyp goo.Type, targetTyp goo.Type) bool + type StringToNumberConverter struct + func NewStringToNumberConverter() StringToNumberConverter + func (converter StringToNumberConverter) Convert(source interface{}, sourceTyp goo.Type, targetTyp goo.Type) (interface{}, error) + func (converter StringToNumberConverter) Support(sourceTyp goo.Type, targetTyp goo.Type) bool + type SystemEnvironmentPropertySource struct + func NewSystemEnvironmentPropertySource() SystemEnvironmentPropertySource + func (propertySource SystemEnvironmentPropertySource) ContainsProperty(name string) bool + func (propertySource SystemEnvironmentPropertySource) GetName() string + func (propertySource SystemEnvironmentPropertySource) GetProperty(name string) interface{} + func (propertySource SystemEnvironmentPropertySource) GetPropertyNames() []string + func (propertySource SystemEnvironmentPropertySource) GetSource() interface{} + type TaskWatch struct + func NewTaskWatch() *TaskWatch + func NewTaskWatchWithName(taskName string) *TaskWatch + func (watch *TaskWatch) GetTotalTime() int64 + func (watch *TaskWatch) IsRunning() bool + func (watch *TaskWatch) Start() error + func (watch *TaskWatch) Stop() error + type TypeConverter interface + Convert func(source interface{}, sourceTyp goo.Type, targetTyp goo.Type) (interface{}, error) + Support func(sourceTyp goo.Type, targetTyp goo.Type) bool + type TypeConverterRegistry interface + RegisterConverter func(converter TypeConverter) + type TypeConverterService interface + CanConvert func(sourceTyp goo.Type, targetTyp goo.Type) bool + Convert func(source interface{}, sourceTyp goo.Type, targetTyp goo.Type) (interface{}, error)