Documentation ¶
Index ¶
- Variables
- func RegisterTestPlanServiceHandler(r http.Router, srv TestPlanServiceHandler, opts ...http.HandleOption)
- func RegisterTestPlanServiceImp(regester transport.Register, srv TestPlanServiceServer, ...)
- func RegisterTestPlanServiceServer(s grpc1.ServiceRegistrar, srv TestPlanServiceServer, ...)
- func ServiceNames(svr ...string) []string
- func TestPlanServiceClientType() reflect.Type
- func TestPlanServiceHandlerType() reflect.Type
- func TestPlanServiceServerType() reflect.Type
- func Types() []reflect.Type
- type Content
- func (*Content) Descriptor() ([]byte, []int)deprecated
- func (x *Content) GetApiExecNum() int64
- func (x *Content) GetApiSuccessNum() int64
- func (x *Content) GetApiTotalNum() int64
- func (x *Content) GetCostTimeSec() int64
- func (x *Content) GetCreatorID() string
- func (x *Content) GetExecuteDuration() string
- func (x *Content) GetExecuteRate() float64
- func (x *Content) GetExecuteTime() string
- func (x *Content) GetIterationID() uint64
- func (x *Content) GetParentID() uint64
- func (x *Content) GetPassRate() float64
- func (x *Content) GetPipelineID() uint64
- func (x *Content) GetPipelineYml() string
- func (x *Content) GetProjectID() uint64
- func (x *Content) GetSceneID() uint64
- func (x *Content) GetSceneSetID() uint64
- func (x *Content) GetStatus() string
- func (x *Content) GetStepAPIType() string
- func (x *Content) GetStepID() uint64
- func (x *Content) GetTestPlanID() uint64
- func (x *Content) GetTimeBegin() string
- func (x *Content) GetTimeEnd() string
- func (m *Content) MarshalJSON() ([]byte, error)
- func (*Content) ProtoMessage()
- func (x *Content) ProtoReflect() protoreflect.Message
- func (x *Content) Reset()
- func (x *Content) String() string
- func (m *Content) UnmarshalJSON(b []byte) error
- func (m *Content) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *Content) Validate() error
- type TestPlanServiceClient
- type TestPlanServiceHandler
- type TestPlanServiceServer
- type TestPlanUpdateByHookRequest
- func (*TestPlanUpdateByHookRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestPlanUpdateByHookRequest) GetAction() string
- func (x *TestPlanUpdateByHookRequest) GetApplicationID() string
- func (x *TestPlanUpdateByHookRequest) GetContent() *Content
- func (x *TestPlanUpdateByHookRequest) GetEnv() string
- func (x *TestPlanUpdateByHookRequest) GetEvent() string
- func (x *TestPlanUpdateByHookRequest) GetOrgID() string
- func (x *TestPlanUpdateByHookRequest) GetProjectID() string
- func (x *TestPlanUpdateByHookRequest) GetTimestamp() string
- func (m *TestPlanUpdateByHookRequest) MarshalJSON() ([]byte, error)
- func (*TestPlanUpdateByHookRequest) ProtoMessage()
- func (x *TestPlanUpdateByHookRequest) ProtoReflect() protoreflect.Message
- func (x *TestPlanUpdateByHookRequest) Reset()
- func (x *TestPlanUpdateByHookRequest) String() string
- func (m *TestPlanUpdateByHookRequest) UnmarshalJSON(b []byte) error
- func (m *TestPlanUpdateByHookRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *TestPlanUpdateByHookRequest) Validate() error
- type TestPlanUpdateByHookResponse
- func (*TestPlanUpdateByHookResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TestPlanUpdateByHookResponse) GetData() uint64
- func (m *TestPlanUpdateByHookResponse) MarshalJSON() ([]byte, error)
- func (*TestPlanUpdateByHookResponse) ProtoMessage()
- func (x *TestPlanUpdateByHookResponse) ProtoReflect() protoreflect.Message
- func (x *TestPlanUpdateByHookResponse) Reset()
- func (x *TestPlanUpdateByHookResponse) String() string
- func (m *TestPlanUpdateByHookResponse) UnmarshalJSON(b []byte) error
- func (m *TestPlanUpdateByHookResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *TestPlanUpdateByHookResponse) Validate() error
- type UnimplementedTestPlanServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_autotest_plan_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTestPlanServiceHandler ¶
func RegisterTestPlanServiceHandler(r http.Router, srv TestPlanServiceHandler, opts ...http.HandleOption)
RegisterTestPlanServiceHandler register TestPlanServiceHandler to http.Router.
func RegisterTestPlanServiceImp ¶
func RegisterTestPlanServiceImp(regester transport.Register, srv TestPlanServiceServer, opts ...transport.ServiceOption)
RegisterTestPlanServiceImp autotest-plan.proto
func RegisterTestPlanServiceServer ¶
func RegisterTestPlanServiceServer(s grpc1.ServiceRegistrar, srv TestPlanServiceServer, opts ...grpc1.HandleOption)
func TestPlanServiceClientType ¶
TestPlanServiceClientType .
func TestPlanServiceHandlerType ¶
TestPlanServiceHandlerType .
func TestPlanServiceServerType ¶
TestPlanServiceServerType .
Types ¶
type Content ¶
type Content struct { TestPlanID uint64 `protobuf:"varint,1,opt,name=testPlanID,proto3" json:"testPlanID,omitempty"` ExecuteTime string `protobuf:"bytes,2,opt,name=executeTime,proto3" json:"executeTime,omitempty"` PassRate float64 `protobuf:"fixed64,3,opt,name=passRate,proto3" json:"passRate,omitempty"` ApiTotalNum int64 `protobuf:"varint,4,opt,name=apiTotalNum,proto3" json:"apiTotalNum,omitempty"` CostTimeSec int64 `protobuf:"varint,5,opt,name=costTimeSec,proto3" json:"costTimeSec,omitempty"` ApiSuccessNum int64 `protobuf:"varint,6,opt,name=apiSuccessNum,proto3" json:"apiSuccessNum,omitempty"` ApiExecNum int64 `protobuf:"varint,7,opt,name=apiExecNum,proto3" json:"apiExecNum,omitempty"` PipelineYml string `protobuf:"bytes,8,opt,name=pipelineYml,proto3" json:"pipelineYml,omitempty"` StepAPIType string `protobuf:"bytes,9,opt,name=stepAPIType,proto3" json:"stepAPIType,omitempty"` Status string `protobuf:"bytes,10,opt,name=status,proto3" json:"status,omitempty"` SceneID uint64 `protobuf:"varint,11,opt,name=sceneID,proto3" json:"sceneID,omitempty"` SceneSetID uint64 `protobuf:"varint,12,opt,name=sceneSetID,proto3" json:"sceneSetID,omitempty"` ParentID uint64 `protobuf:"varint,13,opt,name=parentID,proto3" json:"parentID,omitempty"` ProjectID uint64 `protobuf:"varint,14,opt,name=projectID,proto3" json:"projectID,omitempty"` CreatorID string `protobuf:"bytes,15,opt,name=creatorID,proto3" json:"creatorID,omitempty"` IterationID uint64 `protobuf:"varint,16,opt,name=iterationID,proto3" json:"iterationID,omitempty"` StepID uint64 `protobuf:"varint,17,opt,name=stepID,proto3" json:"stepID,omitempty"` ExecuteRate float64 `protobuf:"fixed64,18,opt,name=ExecuteRate,proto3" json:"ExecuteRate,omitempty"` ExecuteDuration string `protobuf:"bytes,19,opt,name=executeDuration,proto3" json:"executeDuration,omitempty"` TimeBegin string `protobuf:"bytes,20,opt,name=timeBegin,proto3" json:"timeBegin,omitempty"` TimeEnd string `protobuf:"bytes,21,opt,name=timeEnd,proto3" json:"timeEnd,omitempty"` PipelineID uint64 `protobuf:"varint,22,opt,name=pipelineID,proto3" json:"pipelineID,omitempty"` // contains filtered or unexported fields }
func (*Content) Descriptor
deprecated
func (*Content) GetApiExecNum ¶ added in v1.4.0
func (*Content) GetApiSuccessNum ¶ added in v1.4.0
func (*Content) GetApiTotalNum ¶
func (*Content) GetCostTimeSec ¶ added in v1.4.0
func (*Content) GetCreatorID ¶ added in v1.4.0
func (*Content) GetExecuteDuration ¶
func (*Content) GetExecuteRate ¶ added in v1.4.0
func (*Content) GetExecuteTime ¶
func (*Content) GetIterationID ¶ added in v1.4.0
func (*Content) GetParentID ¶ added in v1.4.0
func (*Content) GetPassRate ¶
func (*Content) GetPipelineID ¶ added in v1.4.0
func (*Content) GetPipelineYml ¶ added in v1.4.0
func (*Content) GetProjectID ¶ added in v1.4.0
func (*Content) GetSceneID ¶ added in v1.4.0
func (*Content) GetSceneSetID ¶ added in v1.4.0
func (*Content) GetStepAPIType ¶ added in v1.4.0
func (*Content) GetTestPlanID ¶
func (*Content) GetTimeBegin ¶ added in v1.4.0
func (*Content) GetTimeEnd ¶ added in v1.4.0
func (*Content) MarshalJSON ¶
Content implement json.Marshaler.
func (*Content) ProtoMessage ¶
func (*Content) ProtoMessage()
func (*Content) ProtoReflect ¶
func (x *Content) ProtoReflect() protoreflect.Message
func (*Content) UnmarshalJSON ¶
Content implement json.Marshaler.
func (*Content) UnmarshalURLValues ¶
Content implement urlenc.URLValuesUnmarshaler.
type TestPlanServiceClient ¶
type TestPlanServiceClient interface {
UpdateTestPlanByHook(ctx context.Context, in *TestPlanUpdateByHookRequest, opts ...grpc.CallOption) (*TestPlanUpdateByHookResponse, error)
}
TestPlanServiceClient is the client API for TestPlanService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTestPlanServiceClient ¶
func NewTestPlanServiceClient(cc grpc1.ClientConnInterface) TestPlanServiceClient
type TestPlanServiceHandler ¶
type TestPlanServiceHandler interface { // POST /api/autotests/actions/plan-execute-callback UpdateTestPlanByHook(context.Context, *TestPlanUpdateByHookRequest) (*TestPlanUpdateByHookResponse, error) }
TestPlanServiceHandler is the server API for TestPlanService service.
type TestPlanServiceServer ¶
type TestPlanServiceServer interface {
UpdateTestPlanByHook(context.Context, *TestPlanUpdateByHookRequest) (*TestPlanUpdateByHookResponse, error)
}
TestPlanServiceServer is the server API for TestPlanService service. All implementations should embed UnimplementedTestPlanServiceServer for forward compatibility
type TestPlanUpdateByHookRequest ¶
type TestPlanUpdateByHookRequest struct { Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty"` OrgID string `protobuf:"bytes,3,opt,name=orgID,proto3" json:"orgID,omitempty"` ProjectID string `protobuf:"bytes,4,opt,name=projectID,proto3" json:"projectID,omitempty"` ApplicationID string `protobuf:"bytes,5,opt,name=applicationID,proto3" json:"applicationID,omitempty"` Env string `protobuf:"bytes,6,opt,name=env,proto3" json:"env,omitempty"` Timestamp string `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Content *Content `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
TestPlanUpdateByHooksRequest update testPlan by hook (post /api/autotests/actions/plan-execute-callback )
func (*TestPlanUpdateByHookRequest) Descriptor
deprecated
func (*TestPlanUpdateByHookRequest) Descriptor() ([]byte, []int)
Deprecated: Use TestPlanUpdateByHookRequest.ProtoReflect.Descriptor instead.
func (*TestPlanUpdateByHookRequest) GetAction ¶
func (x *TestPlanUpdateByHookRequest) GetAction() string
func (*TestPlanUpdateByHookRequest) GetApplicationID ¶
func (x *TestPlanUpdateByHookRequest) GetApplicationID() string
func (*TestPlanUpdateByHookRequest) GetContent ¶
func (x *TestPlanUpdateByHookRequest) GetContent() *Content
func (*TestPlanUpdateByHookRequest) GetEnv ¶
func (x *TestPlanUpdateByHookRequest) GetEnv() string
func (*TestPlanUpdateByHookRequest) GetEvent ¶
func (x *TestPlanUpdateByHookRequest) GetEvent() string
func (*TestPlanUpdateByHookRequest) GetOrgID ¶
func (x *TestPlanUpdateByHookRequest) GetOrgID() string
func (*TestPlanUpdateByHookRequest) GetProjectID ¶
func (x *TestPlanUpdateByHookRequest) GetProjectID() string
func (*TestPlanUpdateByHookRequest) GetTimestamp ¶
func (x *TestPlanUpdateByHookRequest) GetTimestamp() string
func (*TestPlanUpdateByHookRequest) MarshalJSON ¶
func (m *TestPlanUpdateByHookRequest) MarshalJSON() ([]byte, error)
TestPlanUpdateByHookRequest implement json.Marshaler.
func (*TestPlanUpdateByHookRequest) ProtoMessage ¶
func (*TestPlanUpdateByHookRequest) ProtoMessage()
func (*TestPlanUpdateByHookRequest) ProtoReflect ¶
func (x *TestPlanUpdateByHookRequest) ProtoReflect() protoreflect.Message
func (*TestPlanUpdateByHookRequest) Reset ¶
func (x *TestPlanUpdateByHookRequest) Reset()
func (*TestPlanUpdateByHookRequest) String ¶
func (x *TestPlanUpdateByHookRequest) String() string
func (*TestPlanUpdateByHookRequest) UnmarshalJSON ¶
func (m *TestPlanUpdateByHookRequest) UnmarshalJSON(b []byte) error
TestPlanUpdateByHookRequest implement json.Marshaler.
func (*TestPlanUpdateByHookRequest) UnmarshalURLValues ¶
func (m *TestPlanUpdateByHookRequest) UnmarshalURLValues(prefix string, values url.Values) error
TestPlanUpdateByHookRequest implement urlenc.URLValuesUnmarshaler.
func (*TestPlanUpdateByHookRequest) Validate ¶
func (this *TestPlanUpdateByHookRequest) Validate() error
type TestPlanUpdateByHookResponse ¶
type TestPlanUpdateByHookResponse struct { Data uint64 `protobuf:"varint,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*TestPlanUpdateByHookResponse) Descriptor
deprecated
func (*TestPlanUpdateByHookResponse) Descriptor() ([]byte, []int)
Deprecated: Use TestPlanUpdateByHookResponse.ProtoReflect.Descriptor instead.
func (*TestPlanUpdateByHookResponse) GetData ¶
func (x *TestPlanUpdateByHookResponse) GetData() uint64
func (*TestPlanUpdateByHookResponse) MarshalJSON ¶
func (m *TestPlanUpdateByHookResponse) MarshalJSON() ([]byte, error)
TestPlanUpdateByHookResponse implement json.Marshaler.
func (*TestPlanUpdateByHookResponse) ProtoMessage ¶
func (*TestPlanUpdateByHookResponse) ProtoMessage()
func (*TestPlanUpdateByHookResponse) ProtoReflect ¶
func (x *TestPlanUpdateByHookResponse) ProtoReflect() protoreflect.Message
func (*TestPlanUpdateByHookResponse) Reset ¶
func (x *TestPlanUpdateByHookResponse) Reset()
func (*TestPlanUpdateByHookResponse) String ¶
func (x *TestPlanUpdateByHookResponse) String() string
func (*TestPlanUpdateByHookResponse) UnmarshalJSON ¶
func (m *TestPlanUpdateByHookResponse) UnmarshalJSON(b []byte) error
TestPlanUpdateByHookResponse implement json.Marshaler.
func (*TestPlanUpdateByHookResponse) UnmarshalURLValues ¶
func (m *TestPlanUpdateByHookResponse) UnmarshalURLValues(prefix string, values url.Values) error
TestPlanUpdateByHookResponse implement urlenc.URLValuesUnmarshaler.
func (*TestPlanUpdateByHookResponse) Validate ¶
func (this *TestPlanUpdateByHookResponse) Validate() error
type UnimplementedTestPlanServiceServer ¶
type UnimplementedTestPlanServiceServer struct { }
UnimplementedTestPlanServiceServer should be embedded to have forward compatible implementations.
func (*UnimplementedTestPlanServiceServer) UpdateTestPlanByHook ¶
func (*UnimplementedTestPlanServiceServer) UpdateTestPlanByHook(context.Context, *TestPlanUpdateByHookRequest) (*TestPlanUpdateByHookResponse, error)