regression

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrInvalidRequest

func ErrInvalidRequest(err error) render.Renderer

func New

func New(r chi.Router, logger *zap.Logger, svc regression2.Service, tc tcSvc.Service, testExport bool, testReportPath string)

Types

type ErrResponse

type ErrResponse struct {
	Err            error `json:"-"` // low-level runtime error
	HTTPStatusCode int   `json:"-"` // http response status code

	StatusText string `json:"status"`          // ddb-level status message
	AppCode    int64  `json:"code,omitempty"`  // application-specific error code
	ErrorText  string `json:"error,omitempty"` // application-level error message, for debugging
}

func (*ErrResponse) Render

func (e *ErrResponse) Render(w http.ResponseWriter, r *http.Request) error

type TestCaseReq deprecated

type TestCaseReq = models.TestCaseReq

TestCaseReq is a struct for Http API request JSON body.

Deprecated: TestCaseReq is shifted to "pkg/models" pkg. This struct is not removed from "http/regression" package because of backward compatibilty. Since, earlier versions before v0.8.3 of go-sdk depends on regression package.

type TestReq deprecated

type TestReq = models.TestReq

TestReq is a struct for Http API request JSON body.

Deprecated: TestReq is shifted to "pkg/models" pkg. This struct is not removed from "http/regression" package because of backward compatibilty. Since, earlier versions before v0.8.3 of go-sdk depends on regression package

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL