Documentation ¶
Index ¶
- Variables
- type App
- type BodyResult
- type BodyType
- type DepMetaResult
- type DepResult
- type Dependency
- type DependencyInput
- type DependencyType
- type HTTPReq
- type HTTPReqInput
- type HTTPResp
- type HTTPRespInput
- type Header
- type HeaderInput
- type HeaderResult
- type IntResult
- type JSONError
- type KVInput
- type Kv
- type Method
- type Result
- type Test
- type TestCase
- type TestCaseInput
- type TestRun
- type TestRunStatus
- type TestStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var AllBodyType = []BodyType{ BodyTypePlain, BodyTypeJSON, }
View Source
var AllDependencyType = []DependencyType{ DependencyTypeNoSQLDb, DependencyTypeSQLDb, DependencyTypeHTTPClient, }
View Source
var AllMethod = []Method{ MethodGet, MethodPut, MethodHead, MethodPost, MethodPatch, MethodDelete, MethodOptions, MethodTrace, }
View Source
var AllTestRunStatus = []TestRunStatus{ TestRunStatusRunning, TestRunStatusFailed, TestRunStatusPassed, }
View Source
var AllTestStatus = []TestStatus{ TestStatusPending, TestStatusRunning, TestStatusFailed, TestStatusPassed, }
Functions ¶
This section is empty.
Types ¶
type BodyResult ¶
type DepMetaResult ¶
type DepResult ¶
type DepResult struct { Name string `json:"name"` Type DependencyType `json:"type"` Meta []*DepMetaResult `json:"meta"` }
type Dependency ¶
type Dependency struct { Name string `json:"name"` Type DependencyType `json:"type"` Meta []*Kv `json:"meta"` }
type DependencyInput ¶
type DependencyInput struct { Name string `json:"name"` Type DependencyType `json:"type"` Meta []*KVInput `json:"meta"` }
type DependencyType ¶
type DependencyType string
const ( DependencyTypeNoSQLDb DependencyType = "NO_SQL_DB" DependencyTypeSQLDb DependencyType = "SQL_DB" DependencyTypeHTTPClient DependencyType = "HTTP_CLIENT" )
func (DependencyType) IsValid ¶
func (e DependencyType) IsValid() bool
func (DependencyType) MarshalGQL ¶
func (e DependencyType) MarshalGQL(w io.Writer)
func (DependencyType) String ¶
func (e DependencyType) String() string
func (*DependencyType) UnmarshalGQL ¶
func (e *DependencyType) UnmarshalGQL(v interface{}) error
type HTTPReqInput ¶
type HTTPRespInput ¶
type HTTPRespInput struct { StatusCode *int `json:"statusCode"` Header []*HeaderInput `json:"header"` Body *string `json:"body"` }
type HeaderInput ¶
type HeaderResult ¶
type Result ¶
type Result struct { StatusCode *IntResult `json:"statusCode"` HeadersResult []*HeaderResult `json:"headersResult"` BodyResult *BodyResult `json:"bodyResult"` DepResult []*DepResult `json:"depResult"` }
type Test ¶
type Test struct { ID string `json:"id"` Status TestStatus `json:"status"` Started time.Time `json:"started"` Completed *time.Time `json:"completed"` Result *Result `json:"result"` TestCaseID string `json:"testCaseID"` URI *string `json:"uri"` Req *HTTPReq `json:"req"` Deps []*Dependency `json:"deps"` Noise []string `json:"noise"` }
type TestCase ¶
type TestCase struct { ID string `json:"id"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` Captured time.Time `json:"captured"` Cid string `json:"cid"` App string `json:"app"` URI string `json:"uri"` HTTPReq *HTTPReq `json:"httpReq"` HTTPResp *HTTPResp `json:"httpResp"` Deps []*Dependency `json:"deps"` Anchors []string `json:"anchors"` Noise []string `json:"noise"` }
type TestCaseInput ¶
type TestCaseInput struct { ID string `json:"id"` Created *time.Time `json:"created"` Updated *time.Time `json:"updated"` Captured *time.Time `json:"captured"` Cid *string `json:"cid"` App *string `json:"app"` URI *string `json:"uri"` HTTPReq *HTTPReqInput `json:"httpReq"` HTTPResp *HTTPRespInput `json:"httpResp"` Deps []*DependencyInput `json:"deps"` Anchors []string `json:"anchors"` Noise []string `json:"noise"` }
type TestRun ¶
type TestRun struct { ID string `json:"id"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` Status TestRunStatus `json:"status"` App string `json:"app"` User string `json:"user"` Success int `json:"success"` Failure int `json:"failure"` Total int `json:"total"` Tests []*Test `json:"tests"` }
type TestRunStatus ¶
type TestRunStatus string
const ( TestRunStatusRunning TestRunStatus = "RUNNING" TestRunStatusFailed TestRunStatus = "FAILED" TestRunStatusPassed TestRunStatus = "PASSED" )
func (TestRunStatus) IsValid ¶
func (e TestRunStatus) IsValid() bool
func (TestRunStatus) MarshalGQL ¶
func (e TestRunStatus) MarshalGQL(w io.Writer)
func (TestRunStatus) String ¶
func (e TestRunStatus) String() string
func (*TestRunStatus) UnmarshalGQL ¶
func (e *TestRunStatus) UnmarshalGQL(v interface{}) error
type TestStatus ¶
type TestStatus string
const ( TestStatusPending TestStatus = "PENDING" TestStatusRunning TestStatus = "RUNNING" TestStatusFailed TestStatus = "FAILED" TestStatusPassed TestStatus = "PASSED" )
func (TestStatus) IsValid ¶
func (e TestStatus) IsValid() bool
func (TestStatus) MarshalGQL ¶
func (e TestStatus) MarshalGQL(w io.Writer)
func (TestStatus) String ¶
func (e TestStatus) String() string
func (*TestStatus) UnmarshalGQL ¶
func (e *TestStatus) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.