pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 25 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 ServiceNames

func ServiceNames(svr ...string) []string

ServiceNames return all service names

func TestPlanServiceClientType

func TestPlanServiceClientType() reflect.Type

TestPlanServiceClientType .

func TestPlanServiceHandlerType

func TestPlanServiceHandlerType() reflect.Type

TestPlanServiceHandlerType .

func TestPlanServiceServerType

func TestPlanServiceServerType() reflect.Type

TestPlanServiceServerType .

func Types

func Types() []reflect.Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetApiExecNum added in v1.4.0

func (x *Content) GetApiExecNum() int64

func (*Content) GetApiSuccessNum added in v1.4.0

func (x *Content) GetApiSuccessNum() int64

func (*Content) GetApiTotalNum

func (x *Content) GetApiTotalNum() int64

func (*Content) GetCostTimeSec added in v1.4.0

func (x *Content) GetCostTimeSec() int64

func (*Content) GetCreatorID added in v1.4.0

func (x *Content) GetCreatorID() string

func (*Content) GetExecuteDuration

func (x *Content) GetExecuteDuration() string

func (*Content) GetExecuteRate added in v1.4.0

func (x *Content) GetExecuteRate() float64

func (*Content) GetExecuteTime

func (x *Content) GetExecuteTime() string

func (*Content) GetIterationID added in v1.4.0

func (x *Content) GetIterationID() uint64

func (*Content) GetParentID added in v1.4.0

func (x *Content) GetParentID() uint64

func (*Content) GetPassRate

func (x *Content) GetPassRate() float64

func (*Content) GetPipelineID added in v1.4.0

func (x *Content) GetPipelineID() uint64

func (*Content) GetPipelineYml added in v1.4.0

func (x *Content) GetPipelineYml() string

func (*Content) GetProjectID added in v1.4.0

func (x *Content) GetProjectID() uint64

func (*Content) GetSceneID added in v1.4.0

func (x *Content) GetSceneID() uint64

func (*Content) GetSceneSetID added in v1.4.0

func (x *Content) GetSceneSetID() uint64

func (*Content) GetStatus added in v1.4.0

func (x *Content) GetStatus() string

func (*Content) GetStepAPIType added in v1.4.0

func (x *Content) GetStepAPIType() string

func (*Content) GetStepID added in v1.4.0

func (x *Content) GetStepID() uint64

func (*Content) GetTestPlanID

func (x *Content) GetTestPlanID() uint64

func (*Content) GetTimeBegin added in v1.4.0

func (x *Content) GetTimeBegin() string

func (*Content) GetTimeEnd added in v1.4.0

func (x *Content) GetTimeEnd() string

func (*Content) MarshalJSON

func (m *Content) MarshalJSON() ([]byte, error)

Content implement json.Marshaler.

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

func (x *Content) ProtoReflect() protoreflect.Message

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

func (*Content) UnmarshalJSON

func (m *Content) UnmarshalJSON(b []byte) error

Content implement json.Marshaler.

func (*Content) UnmarshalURLValues

func (m *Content) UnmarshalURLValues(prefix string, values url.Values) error

Content implement urlenc.URLValuesUnmarshaler.

func (*Content) Validate

func (this *Content) Validate() error

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.

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 (*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 (*TestPlanUpdateByHookResponse) Reset

func (x *TestPlanUpdateByHookResponse) Reset()

func (*TestPlanUpdateByHookResponse) 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

Jump to

Keyboard shortcuts

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