Documentation ¶
Index ¶
- Constants
- type ConfigParam
- type ConfigParser
- func (p *ConfigParser) ParseConfig(data map[string]interface{}, config *types.Config, configPath string) error
- func (p *ConfigParser) ParseStruct(data map[string]interface{}, structure interface{}, configPath string) error
- func (p *ConfigParser) ParseTag(tag string) (map[ConfigParam]string, error)
- func (p *ConfigParser) Pos() string
- type Parser
Constants ¶
View Source
const ( ConfigParamName ConfigParam = "name" ConfigParamLoadable = "loadable" ConfigParamDefault = "default" ConfigParamFactory = "factory" ConfigParamEnum = "enum" ConfigParamKeys = "keys" ConfigParamPath = "path" ConfigParamString = "string" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigParam ¶
type ConfigParam string
type ConfigParser ¶
type ConfigParser struct {
// contains filtered or unexported fields
}
func (*ConfigParser) ParseConfig ¶
func (*ConfigParser) ParseStruct ¶
func (p *ConfigParser) ParseStruct( data map[string]interface{}, structure interface{}, configPath string, ) error
ParseStruct parses a struct into a map of Fields
func (*ConfigParser) ParseTag ¶
func (p *ConfigParser) ParseTag(tag string) (map[ConfigParam]string, error)
ParseTag parses the 'wst' struct tag into a Field
func (*ConfigParser) Pos ¶
func (p *ConfigParser) Pos() string
type Parser ¶
type Parser interface { ParseConfig(data map[string]interface{}, config *types.Config, configPath string) error ParseStruct(data map[string]interface{}, structure interface{}, configPath string) error ParseTag(tag string) (map[ConfigParam]string, error) }
func CreateParser ¶
func CreateParser(fnd app.Foundation, loader loader.Loader) Parser
Click to show internal directories.
Click to hide internal directories.