Documentation ¶
Index ¶
Constants ¶
View Source
const ( MethodGet Method = "GET" MethodPut = "PUT" MethodHead = "HEAD" MethodPost = "POST" MethodPatch = "PATCH" // RFC 5789 MethodDelete = "DELETE" MethodOptions = "OPTIONS" MethodTrace = "TRACE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BodySegment ¶
type BodySegment struct { Normal bool Missing bool Type SegmentType ValueType SegmentValueType Key string Value *BodySegment String string Number float64 Bool bool Array []BodySegment }
type Dependency ¶
type Dependency struct { Name string `json:"name" bson:"name,omitempty"` Type DependencyType `json:"type" bson:"type,omitempty"` Meta map[string]string `json:"meta" bson:"meta,omitempty"` Data [][]byte `json:"data" bson:"data,omitempty"` }
type DependencyType ¶
type DependencyType string
const ( NoSqlDB DependencyType = "NO_SQL_DB" SqlDB DependencyType = "SQL_DB" GRPC DependencyType = "GRPC" HttpClient DependencyType = "HTTP_CLIENT" )
type Event ¶ added in v0.3.5
type HttpReq ¶
type HttpReq struct { Method Method `json:"method" bson:"method,omitempty"` ProtoMajor int `json:"proto_major" bson:"proto_major,omitempty"` // e.g. 1 ProtoMinor int `json:"proto_minor" bson:"proto_minor,omitempty"` // e.g. 0 URL string `json:"url" bson:"url,omitempty"` URLParams map[string]string `json:"url_params" bson:"url_params,omitempty"` Header http.Header `json:"header" bson:"header,omitempty"` Body string `json:"body" bson:"body,omitempty"` }
type SegmentType ¶
type SegmentType string
const ( ROOT SegmentType = "ROOT" KEY SegmentType = "KEY" VALUE SegmentType = "VALUE" )
type SegmentValueType ¶
type SegmentValueType string
const ( STRING SegmentValueType = "STRING" NUMBER SegmentValueType = "NUMBER" BOOL SegmentValueType = "BOOL" NULL SegmentValueType = "NULL" ARRAY SegmentValueType = "ARRAY" OBJECT SegmentValueType = "OBJECT" )
type TestCase ¶
type TestCase struct { ID string `json:"id" bson:"_id"` Created int64 `json:"created" bson:"created,omitempty"` Updated int64 `json:"updated" bson:"updated,omitempty"` Captured int64 `json:"captured" bson:"captured,omitempty"` CID string `json:"cid" bson:"cid,omitempty"` AppID string `json:"app_id" bson:"app_id,omitempty"` URI string `json:"uri" bson:"uri,omitempty"` HttpReq HttpReq `json:"http_req" bson:"http_req,omitempty"` HttpResp HttpResp `json:"http_resp" bson:"http_resp,omitempty"` Deps []Dependency `json:"deps" bson:"deps,omitempty"` AllKeys map[string][]string `json:"all_keys" bson:"all_keys,omitempty"` Anchors map[string][]string `json:"anchors" bson:"anchors,omitempty"` Noise []string `json:"noise" bson:"noise,omitempty"` }
type TestCaseDB ¶
type TestCaseDB interface { Upsert(context.Context, TestCase) error UpdateTC(context.Context, TestCase) error Get(ctx context.Context, cid, id string) (TestCase, error) Delete(ctx context.Context, id string) error GetAll(ctx context.Context, cid, app string, anchors bool, offset int, limit int) ([]TestCase, error) GetKeys(ctx context.Context, cid, app, uri string) ([]TestCase, error) Exists(context.Context, TestCase) (bool, error) DeleteByAnchor(ctx context.Context, cid, app, uri string, filterKeys map[string][]string) error GetApps(ctx context.Context, cid string) ([]string, error) }
Click to show internal directories.
Click to hide internal directories.