Versions in this module Expand all Collapse all v0 v0.1.1 Jul 5, 2022 Changes in this version + const ArgumentLabelNameClashErrCode + const CodeGenErrCode + const FileNotFoundErrCode + const FileNotReadableErrCode + const InvalidDatasourceErrCode + const InvalidDefinitionsErrCode + const InvalidSyntaxErrCode + const MarkdownRenderingErrCode + const ServeMethodNotAllowedErrCode + const ServeSearchIndexErrCode + const ServeSearchMissingTermErrCode + const ServeUnknownCodeErrCode + const ServeUnknownRouteErrCode + const ServeWebUiErrCode + const TemplateExecutionErrCode + func Generate(data CodeGenConfig, w io.Writer) error + func LogError(err error, args ...interface{}) + func Serve(srv *Server) error + type ArgumentLabelNameClashErr struct + func NewArgumentLabelNameClashErr(wrapped error, key string) *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 struct + Package string + Source string + Template string + type CodeGenErr struct + func NewCodeGenErr(wrapped error) *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 interface + FindByCode func(code string) (errorDefinition, bool) + Hash func() string + List func() map[string]errorDefinition + Options func() errorOptions + SchemaVersion func() string + Validate func() error + func NewHCLDatasource(path string) (DataSource, error) + type Erratum interface + Args func() map[string]interface{} + Categories func() []string + Code func() string + Guide func() string + HelpURL func() string + Labels func() map[string]string + Message func() string + UUID func() string + Unwrap func() error + type FileNotFoundErr struct + func NewFileNotFoundErr(wrapped error, path string) *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 struct + func NewFileNotReadableErr(wrapped error, path string) *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 interface + GetHttpStatusCode func() string + type InvalidDatasourceErr struct + func NewInvalidDatasourceErr(wrapped error, path string) *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 struct + func NewInvalidDefinitionsErr(wrapped error, path string) *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 struct + func NewInvalidSyntaxErr(wrapped error, path string) *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 interface + GetLogLevel func() string + type MarkdownRenderingErr struct + func NewMarkdownRenderingErr(wrapped error) *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 struct + func NewServeMethodNotAllowedErr(wrapped error, route string, method string) *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 struct + func NewServeSearchIndexErr(wrapped error) *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 struct + func NewServeSearchMissingTermErr(wrapped error) *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 struct + func NewServeUnknownCodeErr(wrapped error, code string) *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 struct + func NewServeUnknownRouteErr(wrapped error, route string) *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 struct + func NewServeWebUiErr(wrapped error, path string) *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 struct + File string + func NewServer(cfg WebUIConfig) (*Server, error) + 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 struct + func NewTemplateExecutionErr(wrapped error) *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 struct + BindAddr string + Source string