Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainParser ¶
type ChainParser struct {
// contains filtered or unexported fields
}
ChainParser parsing environment params from parsers chain. Last parser will override all previously defined values with the same name.
func NewChainParser ¶
func NewChainParser(parser ...Parser) *ChainParser
func (*ChainParser) IsNil ¶
func (p *ChainParser) IsNil() bool
type EnvOsParser ¶
type EnvOsParser struct{}
EnvOsParser parses OS environment params
func NewEnvOsParser ¶
func NewEnvOsParser() *EnvOsParser
func (*EnvOsParser) IsNil ¶
func (p *EnvOsParser) IsNil() bool
type EnvParser ¶
type EnvParser struct {
}
EnvParser parsing environment params from string
func NewEnvParser ¶
func NewEnvParser() *EnvParser
NewEnvParser creates parser and parses raw data string
type JSONParser ¶
type JSONParser struct{}
JSONParser parses environment params
func NewJSONParser ¶
func NewJSONParser() *JSONParser
NewJSONParser creates parser and parses raw data string
func (*JSONParser) IsNil ¶
func (p *JSONParser) IsNil() bool
type Parser ¶
type Parser interface {
core.Nillable
// Parse parses input string
Parse(in string) (core.Params, error)
}
Parser is a common interface for data parsers
type TemplateBuilder ¶
type TemplateBuilder struct {
Name string
Vars core.Params
Template string
// contains filtered or unexported fields
}
func NewTemplate ¶
func NewTemplate(name string, tpl string, vars core.Params) *TemplateBuilder
Click to show internal directories.
Click to hide internal directories.