errors.go 633 B

1234567891011121314
  1. package performance
  2. import "github.com/uozi-tech/cosy"
  3. var (
  4. e = cosy.NewErrorScope("performance")
  5. ErrStubStatusDisabled = e.New(51000, "stub_status is not enabled")
  6. ErrStubStatusRequest = e.New(51001, "failed to get stub status: {0}")
  7. ErrResponseRead = e.New(51002, "failed to read response body: {0}")
  8. ErrTemplateParseError = e.New(51003, "failed to parse template: {0}")
  9. ErrTemplateExecError = e.New(51004, "failed to execute template: {0}")
  10. ErrConfigParseError = e.New(51005, "failed to parse nginx config: {0}")
  11. ErrConfigBuildError = e.New(51006, "failed to build nginx config: {0}")
  12. )