Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnumlessConfig ¶
type EnumlessConfig struct{}
EnumlessConfig implements the ServiceConfig interface for services that does not use Enum fields
func (*EnumlessConfig) Enums ¶
func (ec *EnumlessConfig) Enums() map[string]types.EnumFormatter
Enums returns an empty map
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides the utility methods Log* that maps to Logger.Print*
func (*Logger) Log ¶
func (sl *Logger) Log(v ...interface{})
Log maps to the service loggers Logger.Print function
type QuerylessConfig ¶
type QuerylessConfig struct{}
QuerylessConfig implements the ServiceConfig interface for services that does not use Query fields
func (*QuerylessConfig) Get ¶
func (qc *QuerylessConfig) Get(string) (string, error)
Get is a dummy function that will return an error if called
func (*QuerylessConfig) QueryFields ¶
func (qc *QuerylessConfig) QueryFields() []string
QueryFields returns an empty list of Query fields
type Templater ¶
type Templater struct {
// contains filtered or unexported fields
}
Templater is the standard implementation of ApplyTemplate using the "text/template" library
func (*Templater) GetTemplate ¶
GetTemplate attempts to retrieve the template identified with id
func (*Templater) SetTemplateFile ¶
SetTemplateFile creates a new template from the file and assigning it the id