Documentation ¶
Index ¶
Constants ¶
const ( // FailTestSetup is the FailureID used to represent an error that is part of the setup for tests FailTestSetup f.FailureID = -1 // FailParseURL is the FailureID used to represent failing to parse the service URL FailParseURL f.FailureID = -2 // FailServiceInit is the FailureID used to represent failure of a service.Initialize method FailServiceInit f.FailureID = -3 // FailUnknown is the default FailureID FailUnknown f.FailureID = iota )
Variables ¶
This section is empty.
Functions ¶
func Failure ¶
Failure creates a Failure instance corresponding to the provided failureID, wrapping the provided error
func IsTestSetupFailure ¶
IsTestSetupFailure checks whether the given failure is due to the test setup being broken
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 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