Documentation
¶
Index ¶
- type APICall
- type App
- func (app *App) ConfigureLogging(logging Log)
- func (app *App) HandleError(err error, errorType string, msg ...string)
- func (app *App) HandleErrorWithFields(err error, errorType string, msg string, fields map[string]interface{})
- func (app *App) LoadHelp(data []byte)
- func (app *App) Log(data string, level string, replacements ...interface{})
- type Command
- type Help
- type HelpMessage
- type Log
- type Platform
- type Version
- func (v *Version) DotNet() (bool, error)
- func (v *Version) DotNetGlobal(content string) error
- func (v *Version) DotNetSplit() error
- func (v *Version) Init(version string, pattern string)
- func (v *Version) IsEmpty() bool
- func (v *Version) Semver() (bool, error)
- func (v *Version) Set(name string, value interface{})
- func (v *Version) SetSemverConstraint(comparator string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App contains the objects from which the application will work, such as the application logger
func (*App) ConfigureLogging ¶
ConfigureLogging sets up the logging for the application When running Debug Mode is will be configured to add the caller to the message
func (*App) HandleError ¶
HandleError handles errors from the application This is to ensure that all errors are handled in the same way
func (*App) HandleErrorWithFields ¶
type Help ¶ added in v0.4.17
type Help struct {
Help []HelpMessage `mapstructure:"help"`
}
func (*Help) GetMessage ¶ added in v0.4.17
type HelpMessage ¶ added in v0.4.17
type Log ¶
type Log struct { // Level for the logging, ERROR, WARN, INFO, DEBUG Level string `mapstructure:"level" json:",omitempty"` // Format for the logging, TEXT or JSON Format string `mapstructure:"format" json:",omitempty"` // If the logging is in TEXT then should colour be used Colour bool `mapstructure:"colour"` // File that all logs should be saved to File string `mapstructure:"file" json:",omitempty"` }
type Version ¶ added in v0.4.17
type Version struct { Empty bool Original string Major int Minor int Feature int Patch int // contains filtered or unexported fields }
func (*Version) DotNetGlobal ¶ added in v0.4.17
func (*Version) DotNetSplit ¶ added in v0.4.17
func (*Version) SetSemverConstraint ¶ added in v0.4.17
Source Files
¶
Click to show internal directories.
Click to hide internal directories.