Documentation ¶
Overview ¶
Package errata is auto-generated by errata Errata Schema Version: 0.1 Hash: 9f2e70162ab7eeef16b15ac74b8f1ad2
Index ¶
- Constants
- func Generate(data CodeGenConfig, w io.Writer) error
- func LogError(err error, args ...interface{})
- func Serve(srv *Server) error
- type ArgumentLabelNameClashErr
- func (e *ArgumentLabelNameClashErr) Args() map[string]interface{}
- func (e *ArgumentLabelNameClashErr) Categories() []string
- func (e *ArgumentLabelNameClashErr) Code() string
- func (e *ArgumentLabelNameClashErr) Error() string
- func (e *ArgumentLabelNameClashErr) File() string
- func (e *ArgumentLabelNameClashErr) Format(f fmt.State, verb rune)
- func (e *ArgumentLabelNameClashErr) GetKey() interface{}
- func (e *ArgumentLabelNameClashErr) GetSeverity() string
- func (e *ArgumentLabelNameClashErr) Guide() string
- func (e *ArgumentLabelNameClashErr) HelpURL() string
- func (e *ArgumentLabelNameClashErr) Labels() map[string]string
- func (e *ArgumentLabelNameClashErr) Line() int
- func (e *ArgumentLabelNameClashErr) Message() string
- func (e *ArgumentLabelNameClashErr) UUID() string
- func (e *ArgumentLabelNameClashErr) Unwrap() error
- type CodeGenConfig
- type CodeGenErr
- func (e *CodeGenErr) Args() map[string]interface{}
- func (e *CodeGenErr) Categories() []string
- func (e *CodeGenErr) Code() string
- func (e *CodeGenErr) Error() string
- func (e *CodeGenErr) File() string
- func (e *CodeGenErr) Format(f fmt.State, verb rune)
- func (e *CodeGenErr) GetSeverity() string
- func (e *CodeGenErr) Guide() string
- func (e *CodeGenErr) HelpURL() string
- func (e *CodeGenErr) Labels() map[string]string
- func (e *CodeGenErr) Line() int
- func (e *CodeGenErr) Message() string
- func (e *CodeGenErr) UUID() string
- func (e *CodeGenErr) Unwrap() error
- type DataSource
- type Erratum
- type FileNotFoundErr
- func (e *FileNotFoundErr) Args() map[string]interface{}
- func (e *FileNotFoundErr) Categories() []string
- func (e *FileNotFoundErr) Code() string
- func (e *FileNotFoundErr) Error() string
- func (e *FileNotFoundErr) File() string
- func (e *FileNotFoundErr) Format(f fmt.State, verb rune)
- func (e *FileNotFoundErr) GetPath() interface{}
- func (e *FileNotFoundErr) GetSeverity() string
- func (e *FileNotFoundErr) Guide() string
- func (e *FileNotFoundErr) HelpURL() string
- func (e *FileNotFoundErr) Labels() map[string]string
- func (e *FileNotFoundErr) Line() int
- func (e *FileNotFoundErr) Message() string
- func (e *FileNotFoundErr) UUID() string
- func (e *FileNotFoundErr) Unwrap() error
- type FileNotReadableErr
- func (e *FileNotReadableErr) Args() map[string]interface{}
- func (e *FileNotReadableErr) Categories() []string
- func (e *FileNotReadableErr) Code() string
- func (e *FileNotReadableErr) Error() string
- func (e *FileNotReadableErr) File() string
- func (e *FileNotReadableErr) Format(f fmt.State, verb rune)
- func (e *FileNotReadableErr) GetPath() interface{}
- func (e *FileNotReadableErr) GetSeverity() string
- func (e *FileNotReadableErr) Guide() string
- func (e *FileNotReadableErr) HelpURL() string
- func (e *FileNotReadableErr) Labels() map[string]string
- func (e *FileNotReadableErr) Line() int
- func (e *FileNotReadableErr) Message() string
- func (e *FileNotReadableErr) UUID() string
- func (e *FileNotReadableErr) Unwrap() error
- type HTTPStatusCodeExtractor
- type InvalidDatasourceErr
- func (e *InvalidDatasourceErr) Args() map[string]interface{}
- func (e *InvalidDatasourceErr) Categories() []string
- func (e *InvalidDatasourceErr) Code() string
- func (e *InvalidDatasourceErr) Error() string
- func (e *InvalidDatasourceErr) File() string
- func (e *InvalidDatasourceErr) Format(f fmt.State, verb rune)
- func (e *InvalidDatasourceErr) GetPath() interface{}
- func (e *InvalidDatasourceErr) GetSeverity() string
- func (e *InvalidDatasourceErr) Guide() string
- func (e *InvalidDatasourceErr) HelpURL() string
- func (e *InvalidDatasourceErr) Labels() map[string]string
- func (e *InvalidDatasourceErr) Line() int
- func (e *InvalidDatasourceErr) Message() string
- func (e *InvalidDatasourceErr) UUID() string
- func (e *InvalidDatasourceErr) Unwrap() error
- type InvalidDefinitionsErr
- func (e *InvalidDefinitionsErr) Args() map[string]interface{}
- func (e *InvalidDefinitionsErr) Categories() []string
- func (e *InvalidDefinitionsErr) Code() string
- func (e *InvalidDefinitionsErr) Error() string
- func (e *InvalidDefinitionsErr) File() string
- func (e *InvalidDefinitionsErr) Format(f fmt.State, verb rune)
- func (e *InvalidDefinitionsErr) GetPath() interface{}
- func (e *InvalidDefinitionsErr) GetSeverity() string
- func (e *InvalidDefinitionsErr) Guide() string
- func (e *InvalidDefinitionsErr) HelpURL() string
- func (e *InvalidDefinitionsErr) Labels() map[string]string
- func (e *InvalidDefinitionsErr) Line() int
- func (e *InvalidDefinitionsErr) Message() string
- func (e *InvalidDefinitionsErr) UUID() string
- func (e *InvalidDefinitionsErr) Unwrap() error
- type InvalidSyntaxErr
- func (e *InvalidSyntaxErr) Args() map[string]interface{}
- func (e *InvalidSyntaxErr) Categories() []string
- func (e *InvalidSyntaxErr) Code() string
- func (e *InvalidSyntaxErr) Error() string
- func (e *InvalidSyntaxErr) File() string
- func (e *InvalidSyntaxErr) Format(f fmt.State, verb rune)
- func (e *InvalidSyntaxErr) GetPath() interface{}
- func (e *InvalidSyntaxErr) GetSeverity() string
- func (e *InvalidSyntaxErr) Guide() string
- func (e *InvalidSyntaxErr) HelpURL() string
- func (e *InvalidSyntaxErr) Labels() map[string]string
- func (e *InvalidSyntaxErr) Line() int
- func (e *InvalidSyntaxErr) Message() string
- func (e *InvalidSyntaxErr) UUID() string
- func (e *InvalidSyntaxErr) Unwrap() error
- type LogLevel
- type MarkdownRenderingErr
- func (e *MarkdownRenderingErr) Args() map[string]interface{}
- func (e *MarkdownRenderingErr) Categories() []string
- func (e *MarkdownRenderingErr) Code() string
- func (e *MarkdownRenderingErr) Error() string
- func (e *MarkdownRenderingErr) File() string
- func (e *MarkdownRenderingErr) Format(f fmt.State, verb rune)
- func (e *MarkdownRenderingErr) GetSeverity() string
- func (e *MarkdownRenderingErr) Guide() string
- func (e *MarkdownRenderingErr) HelpURL() string
- func (e *MarkdownRenderingErr) Labels() map[string]string
- func (e *MarkdownRenderingErr) Line() int
- func (e *MarkdownRenderingErr) Message() string
- func (e *MarkdownRenderingErr) UUID() string
- func (e *MarkdownRenderingErr) Unwrap() error
- type ServeMethodNotAllowedErr
- func (e *ServeMethodNotAllowedErr) Args() map[string]interface{}
- func (e *ServeMethodNotAllowedErr) Categories() []string
- func (e *ServeMethodNotAllowedErr) Code() string
- func (e *ServeMethodNotAllowedErr) Error() string
- func (e *ServeMethodNotAllowedErr) File() string
- func (e *ServeMethodNotAllowedErr) Format(f fmt.State, verb rune)
- func (e *ServeMethodNotAllowedErr) GetMethod() interface{}
- func (e *ServeMethodNotAllowedErr) GetRoute() interface{}
- func (e *ServeMethodNotAllowedErr) GetSeverity() string
- func (e *ServeMethodNotAllowedErr) Guide() string
- func (e *ServeMethodNotAllowedErr) HelpURL() string
- func (e *ServeMethodNotAllowedErr) Labels() map[string]string
- func (e *ServeMethodNotAllowedErr) Line() int
- func (e *ServeMethodNotAllowedErr) Message() string
- func (e *ServeMethodNotAllowedErr) UUID() string
- func (e *ServeMethodNotAllowedErr) Unwrap() error
- type ServeSearchIndexErr
- func (e *ServeSearchIndexErr) Args() map[string]interface{}
- func (e *ServeSearchIndexErr) Categories() []string
- func (e *ServeSearchIndexErr) Code() string
- func (e *ServeSearchIndexErr) Error() string
- func (e *ServeSearchIndexErr) File() string
- func (e *ServeSearchIndexErr) Format(f fmt.State, verb rune)
- func (e *ServeSearchIndexErr) GetSeverity() string
- func (e *ServeSearchIndexErr) Guide() string
- func (e *ServeSearchIndexErr) HelpURL() string
- func (e *ServeSearchIndexErr) Labels() map[string]string
- func (e *ServeSearchIndexErr) Line() int
- func (e *ServeSearchIndexErr) Message() string
- func (e *ServeSearchIndexErr) UUID() string
- func (e *ServeSearchIndexErr) Unwrap() error
- type ServeSearchMissingTermErr
- func (e *ServeSearchMissingTermErr) Args() map[string]interface{}
- func (e *ServeSearchMissingTermErr) Categories() []string
- func (e *ServeSearchMissingTermErr) Code() string
- func (e *ServeSearchMissingTermErr) Error() string
- func (e *ServeSearchMissingTermErr) File() string
- func (e *ServeSearchMissingTermErr) Format(f fmt.State, verb rune)
- func (e *ServeSearchMissingTermErr) GetSeverity() string
- func (e *ServeSearchMissingTermErr) Guide() string
- func (e *ServeSearchMissingTermErr) HelpURL() string
- func (e *ServeSearchMissingTermErr) Labels() map[string]string
- func (e *ServeSearchMissingTermErr) Line() int
- func (e *ServeSearchMissingTermErr) Message() string
- func (e *ServeSearchMissingTermErr) UUID() string
- func (e *ServeSearchMissingTermErr) Unwrap() error
- type ServeUnknownCodeErr
- func (e *ServeUnknownCodeErr) Args() map[string]interface{}
- func (e *ServeUnknownCodeErr) Categories() []string
- func (e *ServeUnknownCodeErr) Code() string
- func (e *ServeUnknownCodeErr) Error() string
- func (e *ServeUnknownCodeErr) File() string
- func (e *ServeUnknownCodeErr) Format(f fmt.State, verb rune)
- func (e *ServeUnknownCodeErr) GetCode() interface{}
- func (e *ServeUnknownCodeErr) GetHttpStatusCode() string
- func (e *ServeUnknownCodeErr) GetSeverity() string
- func (e *ServeUnknownCodeErr) Guide() string
- func (e *ServeUnknownCodeErr) HelpURL() string
- func (e *ServeUnknownCodeErr) Labels() map[string]string
- func (e *ServeUnknownCodeErr) Line() int
- func (e *ServeUnknownCodeErr) Message() string
- func (e *ServeUnknownCodeErr) UUID() string
- func (e *ServeUnknownCodeErr) Unwrap() error
- type ServeUnknownRouteErr
- func (e *ServeUnknownRouteErr) Args() map[string]interface{}
- func (e *ServeUnknownRouteErr) Categories() []string
- func (e *ServeUnknownRouteErr) Code() string
- func (e *ServeUnknownRouteErr) Error() string
- func (e *ServeUnknownRouteErr) File() string
- func (e *ServeUnknownRouteErr) Format(f fmt.State, verb rune)
- func (e *ServeUnknownRouteErr) GetRoute() interface{}
- func (e *ServeUnknownRouteErr) GetSeverity() string
- func (e *ServeUnknownRouteErr) Guide() string
- func (e *ServeUnknownRouteErr) HelpURL() string
- func (e *ServeUnknownRouteErr) Labels() map[string]string
- func (e *ServeUnknownRouteErr) Line() int
- func (e *ServeUnknownRouteErr) Message() string
- func (e *ServeUnknownRouteErr) UUID() string
- func (e *ServeUnknownRouteErr) Unwrap() error
- type ServeWebUiErr
- func (e *ServeWebUiErr) Args() map[string]interface{}
- func (e *ServeWebUiErr) Categories() []string
- func (e *ServeWebUiErr) Code() string
- func (e *ServeWebUiErr) Error() string
- func (e *ServeWebUiErr) File() string
- func (e *ServeWebUiErr) Format(f fmt.State, verb rune)
- func (e *ServeWebUiErr) GetPath() interface{}
- func (e *ServeWebUiErr) GetSeverity() string
- func (e *ServeWebUiErr) Guide() string
- func (e *ServeWebUiErr) HelpURL() string
- func (e *ServeWebUiErr) Labels() map[string]string
- func (e *ServeWebUiErr) Line() int
- func (e *ServeWebUiErr) Message() string
- func (e *ServeWebUiErr) UUID() string
- func (e *ServeWebUiErr) Unwrap() error
- type Server
- func (s *Server) Item(w http.ResponseWriter, req *http.Request)
- func (s *Server) List(w http.ResponseWriter, _ *http.Request)
- func (s *Server) MethodNotAllowed(w http.ResponseWriter, r *http.Request)
- func (s *Server) NotFound(w http.ResponseWriter, r *http.Request)
- func (s *Server) Search(w http.ResponseWriter, req *http.Request)
- type TemplateExecutionErr
- func (e *TemplateExecutionErr) Args() map[string]interface{}
- func (e *TemplateExecutionErr) Categories() []string
- func (e *TemplateExecutionErr) Code() string
- func (e *TemplateExecutionErr) Error() string
- func (e *TemplateExecutionErr) File() string
- func (e *TemplateExecutionErr) Format(f fmt.State, verb rune)
- func (e *TemplateExecutionErr) GetSeverity() string
- func (e *TemplateExecutionErr) Guide() string
- func (e *TemplateExecutionErr) HelpURL() string
- func (e *TemplateExecutionErr) Labels() map[string]string
- func (e *TemplateExecutionErr) Line() int
- func (e *TemplateExecutionErr) Message() string
- func (e *TemplateExecutionErr) UUID() string
- func (e *TemplateExecutionErr) Unwrap() error
- type WebUIConfig
Constants ¶
const ( ArgumentLabelNameClashErrCode string = "errata-argument-label-name-clash" CodeGenErrCode string = "errata-code-gen" FileNotFoundErrCode string = "errata-file-not-found" FileNotReadableErrCode string = "errata-file-not-readable" InvalidDatasourceErrCode string = "errata-invalid-datasource" InvalidDefinitionsErrCode string = "errata-invalid-definitions" InvalidSyntaxErrCode string = "errata-invalid-syntax" MarkdownRenderingErrCode string = "errata-markdown-rendering" ServeMethodNotAllowedErrCode string = "errata-serve-method-not-allowed" ServeSearchIndexErrCode string = "errata-serve-search-index" ServeSearchMissingTermErrCode string = "errata-serve-search-missing-term" ServeUnknownCodeErrCode string = "errata-serve-unknown-code" ServeUnknownRouteErrCode string = "errata-serve-unknown-route" ServeWebUiErrCode string = "errata-serve-web-ui" TemplateExecutionErrCode string = "errata-template-execution" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArgumentLabelNameClashErr ¶
type ArgumentLabelNameClashErr struct {
// contains filtered or unexported fields
}
func NewArgumentLabelNameClashErr ¶
func NewArgumentLabelNameClashErr(wrapped error, key string) *ArgumentLabelNameClashErr
func (*ArgumentLabelNameClashErr) Args ¶
func (e *ArgumentLabelNameClashErr) Args() map[string]interface{}
func (*ArgumentLabelNameClashErr) Categories ¶
func (e *ArgumentLabelNameClashErr) Categories() []string
func (*ArgumentLabelNameClashErr) GetKey ¶
func (e *ArgumentLabelNameClashErr) GetKey() interface{}
GetKey returns the "key" argument for a ArgumentLabelNameClashErr instance.
func (*ArgumentLabelNameClashErr) GetSeverity ¶
func (e *ArgumentLabelNameClashErr) GetSeverity() string
GetSeverity returns the "severity" label for a ArgumentLabelNameClashErr instance.
type CodeGenConfig ¶
type CodeGenErr ¶
type CodeGenErr struct {
// contains filtered or unexported fields
}
func NewCodeGenErr ¶
func NewCodeGenErr(wrapped error) *CodeGenErr
func (*CodeGenErr) Categories ¶
func (e *CodeGenErr) Categories() []string
func (*CodeGenErr) GetSeverity ¶
func (e *CodeGenErr) GetSeverity() string
GetSeverity returns the "severity" label for a CodeGenErr instance.
type DataSource ¶
type DataSource interface { List() map[string]errorDefinition Options() errorOptions // FindByCode looks up an Erratum by a given code and is guaranteed to return an errorDefinition. // However, if the code cannot be found, an errorDefinition will be crated with just the given code // and false will be returned as the second return value FindByCode(code string) (errorDefinition, bool) Validate() error // Hash returns the hashed contents of the given datasource, to detect drift Hash() string // SchemaVersion returns the schema version of the given datasource SchemaVersion() string }
func NewHCLDatasource ¶
func NewHCLDatasource(path string) (DataSource, error)
type Erratum ¶
type Erratum interface { // behave like a regular error error Unwrap() error Code() string Message() string Categories() []string Args() map[string]interface{} Guide() string Labels() map[string]string UUID() string HelpURL() string }
Erratum is the public interface which indicates that a given error is an Erratum.
type FileNotFoundErr ¶
type FileNotFoundErr struct {
// contains filtered or unexported fields
}
func NewFileNotFoundErr ¶
func NewFileNotFoundErr(wrapped error, path string) *FileNotFoundErr
func (*FileNotFoundErr) Categories ¶
func (e *FileNotFoundErr) Categories() []string
func (*FileNotFoundErr) GetPath ¶
func (e *FileNotFoundErr) GetPath() interface{}
GetPath returns the "path" argument for a FileNotFoundErr instance.
func (*FileNotFoundErr) GetSeverity ¶
func (e *FileNotFoundErr) GetSeverity() string
GetSeverity returns the "severity" label for a FileNotFoundErr instance.
type FileNotReadableErr ¶
type FileNotReadableErr struct {
// contains filtered or unexported fields
}
func NewFileNotReadableErr ¶
func NewFileNotReadableErr(wrapped error, path string) *FileNotReadableErr
func (*FileNotReadableErr) Categories ¶
func (e *FileNotReadableErr) Categories() []string
func (*FileNotReadableErr) GetPath ¶
func (e *FileNotReadableErr) GetPath() interface{}
GetPath returns the "path" argument for a FileNotReadableErr instance.
func (*FileNotReadableErr) GetSeverity ¶
func (e *FileNotReadableErr) GetSeverity() string
GetSeverity returns the "severity" label for a FileNotReadableErr instance.
type HTTPStatusCodeExtractor ¶
type HTTPStatusCodeExtractor interface {
GetHttpStatusCode() string
}
type InvalidDatasourceErr ¶
type InvalidDatasourceErr struct {
// contains filtered or unexported fields
}
func NewInvalidDatasourceErr ¶
func NewInvalidDatasourceErr(wrapped error, path string) *InvalidDatasourceErr
func (*InvalidDatasourceErr) Categories ¶
func (e *InvalidDatasourceErr) Categories() []string
func (*InvalidDatasourceErr) GetPath ¶
func (e *InvalidDatasourceErr) GetPath() interface{}
GetPath returns the "path" argument for a InvalidDatasourceErr instance.
func (*InvalidDatasourceErr) GetSeverity ¶
func (e *InvalidDatasourceErr) GetSeverity() string
GetSeverity returns the "severity" label for a InvalidDatasourceErr instance.
type InvalidDefinitionsErr ¶
type InvalidDefinitionsErr struct {
// contains filtered or unexported fields
}
func NewInvalidDefinitionsErr ¶
func NewInvalidDefinitionsErr(wrapped error, path string) *InvalidDefinitionsErr
func (*InvalidDefinitionsErr) Categories ¶
func (e *InvalidDefinitionsErr) Categories() []string
func (*InvalidDefinitionsErr) GetPath ¶
func (e *InvalidDefinitionsErr) GetPath() interface{}
GetPath returns the "path" argument for a InvalidDefinitionsErr instance.
func (*InvalidDefinitionsErr) GetSeverity ¶
func (e *InvalidDefinitionsErr) GetSeverity() string
GetSeverity returns the "severity" label for a InvalidDefinitionsErr instance.
type InvalidSyntaxErr ¶
type InvalidSyntaxErr struct {
// contains filtered or unexported fields
}
func NewInvalidSyntaxErr ¶
func NewInvalidSyntaxErr(wrapped error, path string) *InvalidSyntaxErr
func (*InvalidSyntaxErr) Categories ¶
func (e *InvalidSyntaxErr) Categories() []string
func (*InvalidSyntaxErr) GetPath ¶
func (e *InvalidSyntaxErr) GetPath() interface{}
GetPath returns the "path" argument for a InvalidSyntaxErr instance.
func (*InvalidSyntaxErr) GetSeverity ¶
func (e *InvalidSyntaxErr) GetSeverity() string
GetSeverity returns the "severity" label for a InvalidSyntaxErr instance.
type MarkdownRenderingErr ¶
type MarkdownRenderingErr struct {
// contains filtered or unexported fields
}
func NewMarkdownRenderingErr ¶
func NewMarkdownRenderingErr(wrapped error) *MarkdownRenderingErr
func (*MarkdownRenderingErr) Categories ¶
func (e *MarkdownRenderingErr) Categories() []string
func (*MarkdownRenderingErr) GetSeverity ¶
func (e *MarkdownRenderingErr) GetSeverity() string
GetSeverity returns the "severity" label for a MarkdownRenderingErr instance.
type ServeMethodNotAllowedErr ¶
type ServeMethodNotAllowedErr struct {
// contains filtered or unexported fields
}
func NewServeMethodNotAllowedErr ¶
func NewServeMethodNotAllowedErr(wrapped error, route string, method string) *ServeMethodNotAllowedErr
func (*ServeMethodNotAllowedErr) Args ¶
func (e *ServeMethodNotAllowedErr) Args() map[string]interface{}
func (*ServeMethodNotAllowedErr) Categories ¶
func (e *ServeMethodNotAllowedErr) Categories() []string
func (*ServeMethodNotAllowedErr) GetMethod ¶
func (e *ServeMethodNotAllowedErr) GetMethod() interface{}
GetMethod returns the "method" argument for a ServeMethodNotAllowedErr instance.
func (*ServeMethodNotAllowedErr) GetRoute ¶
func (e *ServeMethodNotAllowedErr) GetRoute() interface{}
GetRoute returns the "route" argument for a ServeMethodNotAllowedErr instance.
func (*ServeMethodNotAllowedErr) GetSeverity ¶
func (e *ServeMethodNotAllowedErr) GetSeverity() string
GetSeverity returns the "severity" label for a ServeMethodNotAllowedErr instance.
type ServeSearchIndexErr ¶
type ServeSearchIndexErr struct {
// contains filtered or unexported fields
}
func NewServeSearchIndexErr ¶
func NewServeSearchIndexErr(wrapped error) *ServeSearchIndexErr
func (*ServeSearchIndexErr) Categories ¶
func (e *ServeSearchIndexErr) Categories() []string
func (*ServeSearchIndexErr) GetSeverity ¶
func (e *ServeSearchIndexErr) GetSeverity() string
GetSeverity returns the "severity" label for a ServeSearchIndexErr instance.
type ServeSearchMissingTermErr ¶
type ServeSearchMissingTermErr struct {
// contains filtered or unexported fields
}
func NewServeSearchMissingTermErr ¶
func NewServeSearchMissingTermErr(wrapped error) *ServeSearchMissingTermErr
func (*ServeSearchMissingTermErr) Args ¶
func (e *ServeSearchMissingTermErr) Args() map[string]interface{}
func (*ServeSearchMissingTermErr) Categories ¶
func (e *ServeSearchMissingTermErr) Categories() []string
func (*ServeSearchMissingTermErr) GetSeverity ¶
func (e *ServeSearchMissingTermErr) GetSeverity() string
GetSeverity returns the "severity" label for a ServeSearchMissingTermErr instance.
type ServeUnknownCodeErr ¶
type ServeUnknownCodeErr struct {
// contains filtered or unexported fields
}
func NewServeUnknownCodeErr ¶
func NewServeUnknownCodeErr(wrapped error, code string) *ServeUnknownCodeErr
func (*ServeUnknownCodeErr) Categories ¶
func (e *ServeUnknownCodeErr) Categories() []string
func (*ServeUnknownCodeErr) GetCode ¶
func (e *ServeUnknownCodeErr) GetCode() interface{}
GetCode returns the "code" argument for a ServeUnknownCodeErr instance.
func (*ServeUnknownCodeErr) GetHttpStatusCode ¶
func (e *ServeUnknownCodeErr) GetHttpStatusCode() string
GetHttpStatusCode returns the "http_status_code" label for a ServeUnknownCodeErr instance.
func (*ServeUnknownCodeErr) GetSeverity ¶
func (e *ServeUnknownCodeErr) GetSeverity() string
GetSeverity returns the "severity" label for a ServeUnknownCodeErr instance.
type ServeUnknownRouteErr ¶
type ServeUnknownRouteErr struct {
// contains filtered or unexported fields
}
func NewServeUnknownRouteErr ¶
func NewServeUnknownRouteErr(wrapped error, route string) *ServeUnknownRouteErr
func (*ServeUnknownRouteErr) Categories ¶
func (e *ServeUnknownRouteErr) Categories() []string
func (*ServeUnknownRouteErr) GetRoute ¶
func (e *ServeUnknownRouteErr) GetRoute() interface{}
GetRoute returns the "route" argument for a ServeUnknownRouteErr instance.
func (*ServeUnknownRouteErr) GetSeverity ¶
func (e *ServeUnknownRouteErr) GetSeverity() string
GetSeverity returns the "severity" label for a ServeUnknownRouteErr instance.
type ServeWebUiErr ¶
type ServeWebUiErr struct {
// contains filtered or unexported fields
}
func NewServeWebUiErr ¶
func NewServeWebUiErr(wrapped error, path string) *ServeWebUiErr
func (*ServeWebUiErr) Categories ¶
func (e *ServeWebUiErr) Categories() []string
func (*ServeWebUiErr) GetPath ¶
func (e *ServeWebUiErr) GetPath() interface{}
GetPath returns the "path" argument for a ServeWebUiErr instance.
func (*ServeWebUiErr) GetSeverity ¶
func (e *ServeWebUiErr) GetSeverity() string
GetSeverity returns the "severity" label for a ServeWebUiErr instance.
type Server ¶
type Server struct { File string // contains filtered or unexported fields }
func NewServer ¶
func NewServer(cfg WebUIConfig) (*Server, error)
func (*Server) MethodNotAllowed ¶
func (s *Server) MethodNotAllowed(w http.ResponseWriter, r *http.Request)
type TemplateExecutionErr ¶
type TemplateExecutionErr struct {
// contains filtered or unexported fields
}
func NewTemplateExecutionErr ¶
func NewTemplateExecutionErr(wrapped error) *TemplateExecutionErr
func (*TemplateExecutionErr) Categories ¶
func (e *TemplateExecutionErr) Categories() []string
func (*TemplateExecutionErr) GetSeverity ¶
func (e *TemplateExecutionErr) GetSeverity() string
GetSeverity returns the "severity" label for a TemplateExecutionErr instance.