Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterProjectWatchApiServer(s grpc.ServiceRegistrar, srv ProjectWatchApiServer)
- type ListMyWatchRequest
- func (*ListMyWatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMyWatchRequest) GetFilterByTargetType() bool
- func (x *ListMyWatchRequest) GetLimit() uint32
- func (x *ListMyWatchRequest) GetOffset() uint32
- func (x *ListMyWatchRequest) GetProjectId() string
- func (x *ListMyWatchRequest) GetSessionId() string
- func (x *ListMyWatchRequest) GetTargetType() WATCH_TARGET_TYPE
- func (*ListMyWatchRequest) ProtoMessage()
- func (x *ListMyWatchRequest) ProtoReflect() protoreflect.Message
- func (x *ListMyWatchRequest) Reset()
- func (x *ListMyWatchRequest) String() string
- type ListMyWatchResponse
- func (*ListMyWatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListMyWatchResponse) GetCode() ListMyWatchResponse_CODE
- func (x *ListMyWatchResponse) GetErrMsg() string
- func (x *ListMyWatchResponse) GetInfoList() []*MyWatchInfo
- func (x *ListMyWatchResponse) GetTotalCount() uint32
- func (*ListMyWatchResponse) ProtoMessage()
- func (x *ListMyWatchResponse) ProtoReflect() protoreflect.Message
- func (x *ListMyWatchResponse) Reset()
- func (x *ListMyWatchResponse) String() string
- type ListMyWatchResponse_CODE
- func (ListMyWatchResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x ListMyWatchResponse_CODE) Enum() *ListMyWatchResponse_CODE
- func (ListMyWatchResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListMyWatchResponse_CODE) Number() protoreflect.EnumNumber
- func (x ListMyWatchResponse_CODE) String() string
- func (ListMyWatchResponse_CODE) Type() protoreflect.EnumType
- type MyWatchInfo
- func (*MyWatchInfo) Descriptor() ([]byte, []int)deprecated
- func (x *MyWatchInfo) GetTargetId() string
- func (x *MyWatchInfo) GetTargetType() WATCH_TARGET_TYPE
- func (x *MyWatchInfo) GetTitle() string
- func (x *MyWatchInfo) GetWatchTime() int64
- func (*MyWatchInfo) ProtoMessage()
- func (x *MyWatchInfo) ProtoReflect() protoreflect.Message
- func (x *MyWatchInfo) Reset()
- func (x *MyWatchInfo) String() string
- type ProjectWatchApiClient
- type ProjectWatchApiServer
- type UnimplementedProjectWatchApiServer
- func (UnimplementedProjectWatchApiServer) ListMyWatch(context.Context, *ListMyWatchRequest) (*ListMyWatchResponse, error)
- func (UnimplementedProjectWatchApiServer) Unwatch(context.Context, *UnwatchRequest) (*UnwatchResponse, error)
- func (UnimplementedProjectWatchApiServer) Watch(context.Context, *WatchRequest) (*WatchResponse, error)
- type UnsafeProjectWatchApiServer
- type UnwatchRequest
- func (*UnwatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnwatchRequest) GetProjectId() string
- func (x *UnwatchRequest) GetSessionId() string
- func (x *UnwatchRequest) GetTargetId() string
- func (x *UnwatchRequest) GetTargetType() WATCH_TARGET_TYPE
- func (*UnwatchRequest) ProtoMessage()
- func (x *UnwatchRequest) ProtoReflect() protoreflect.Message
- func (x *UnwatchRequest) Reset()
- func (x *UnwatchRequest) String() string
- type UnwatchResponse
- func (*UnwatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UnwatchResponse) GetCode() UnwatchResponse_CODE
- func (x *UnwatchResponse) GetErrMsg() string
- func (*UnwatchResponse) ProtoMessage()
- func (x *UnwatchResponse) ProtoReflect() protoreflect.Message
- func (x *UnwatchResponse) Reset()
- func (x *UnwatchResponse) String() string
- type UnwatchResponse_CODE
- func (UnwatchResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x UnwatchResponse_CODE) Enum() *UnwatchResponse_CODE
- func (UnwatchResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x UnwatchResponse_CODE) Number() protoreflect.EnumNumber
- func (x UnwatchResponse_CODE) String() string
- func (UnwatchResponse_CODE) Type() protoreflect.EnumType
- type WATCH_TARGET_TYPE
- func (WATCH_TARGET_TYPE) Descriptor() protoreflect.EnumDescriptor
- func (x WATCH_TARGET_TYPE) Enum() *WATCH_TARGET_TYPE
- func (WATCH_TARGET_TYPE) EnumDescriptor() ([]byte, []int)deprecated
- func (x WATCH_TARGET_TYPE) Number() protoreflect.EnumNumber
- func (x WATCH_TARGET_TYPE) String() string
- func (WATCH_TARGET_TYPE) Type() protoreflect.EnumType
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRequest) GetProjectId() string
- func (x *WatchRequest) GetSessionId() string
- func (x *WatchRequest) GetTargetId() string
- func (x *WatchRequest) GetTargetType() WATCH_TARGET_TYPE
- func (*WatchRequest) ProtoMessage()
- func (x *WatchRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequest) Reset()
- func (x *WatchRequest) String() string
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchResponse) GetCode() WatchResponse_CODE
- func (x *WatchResponse) GetErrMsg() string
- func (*WatchResponse) ProtoMessage()
- func (x *WatchResponse) ProtoReflect() protoreflect.Message
- func (x *WatchResponse) Reset()
- func (x *WatchResponse) String() string
- type WatchResponse_CODE
- func (WatchResponse_CODE) Descriptor() protoreflect.EnumDescriptor
- func (x WatchResponse_CODE) Enum() *WatchResponse_CODE
- func (WatchResponse_CODE) EnumDescriptor() ([]byte, []int)deprecated
- func (x WatchResponse_CODE) Number() protoreflect.EnumNumber
- func (x WatchResponse_CODE) String() string
- func (WatchResponse_CODE) Type() protoreflect.EnumType
Constants ¶
const ( ProjectWatchApi_Watch_FullMethodName = "/project_watch_api.ProjectWatchApi/watch" ProjectWatchApi_Unwatch_FullMethodName = "/project_watch_api.ProjectWatchApi/unwatch" ProjectWatchApi_ListMyWatch_FullMethodName = "/project_watch_api.ProjectWatchApi/listMyWatch" )
Variables ¶
var ( WATCH_TARGET_TYPE_name = map[int32]string{ 0: "WATCH_TARGET_ENTRY", 1: "WATCH_TARGET_REQUIRE_MENT", 2: "WATCH_TARGET_TASK", 3: "WATCH_TARGET_BUG", 7: "WATCH_TARGET_TEST_CASE", } WATCH_TARGET_TYPE_value = map[string]int32{ "WATCH_TARGET_ENTRY": 0, "WATCH_TARGET_REQUIRE_MENT": 1, "WATCH_TARGET_TASK": 2, "WATCH_TARGET_BUG": 3, "WATCH_TARGET_TEST_CASE": 7, } )
Enum value maps for WATCH_TARGET_TYPE.
var ( WatchResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_PROJECT", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_TARGET", } WatchResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_PROJECT": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_TARGET": 4, } )
Enum value maps for WatchResponse_CODE.
var ( UnwatchResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_PROJECT", 3: "CODE_NO_PERMISSION", 4: "CODE_NO_TARGET", } UnwatchResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_PROJECT": 2, "CODE_NO_PERMISSION": 3, "CODE_NO_TARGET": 4, } )
Enum value maps for UnwatchResponse_CODE.
var ( ListMyWatchResponse_CODE_name = map[int32]string{ 0: "CODE_OK", 1: "CODE_WRONG_SESSION", 2: "CODE_NO_PROJECT", 3: "CODE_NO_PERMISSION", } ListMyWatchResponse_CODE_value = map[string]int32{ "CODE_OK": 0, "CODE_WRONG_SESSION": 1, "CODE_NO_PROJECT": 2, "CODE_NO_PERMISSION": 3, } )
Enum value maps for ListMyWatchResponse_CODE.
var File_project_watch_api_proto protoreflect.FileDescriptor
var ProjectWatchApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "project_watch_api.ProjectWatchApi", HandlerType: (*ProjectWatchApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "watch", Handler: _ProjectWatchApi_Watch_Handler, }, { MethodName: "unwatch", Handler: _ProjectWatchApi_Unwatch_Handler, }, { MethodName: "listMyWatch", Handler: _ProjectWatchApi_ListMyWatch_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "project_watch_api.proto", }
ProjectWatchApi_ServiceDesc is the grpc.ServiceDesc for ProjectWatchApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProjectWatchApiServer ¶
func RegisterProjectWatchApiServer(s grpc.ServiceRegistrar, srv ProjectWatchApiServer)
Types ¶
type ListMyWatchRequest ¶
type ListMyWatchRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
FilterByTargetType bool `protobuf:"varint,3,opt,name=filterByTargetType,proto3" json:"filterByTargetType,omitempty"`
TargetType WATCH_TARGET_TYPE `protobuf:"varint,4,opt,name=targetType,proto3,enum=project_watch_api.WATCH_TARGET_TYPE" json:"targetType,omitempty"`
Offset uint32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"`
Limit uint32 `protobuf:"varint,11,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*ListMyWatchRequest) Descriptor
deprecated
func (*ListMyWatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMyWatchRequest.ProtoReflect.Descriptor instead.
func (*ListMyWatchRequest) GetFilterByTargetType ¶
func (x *ListMyWatchRequest) GetFilterByTargetType() bool
func (*ListMyWatchRequest) GetLimit ¶
func (x *ListMyWatchRequest) GetLimit() uint32
func (*ListMyWatchRequest) GetOffset ¶
func (x *ListMyWatchRequest) GetOffset() uint32
func (*ListMyWatchRequest) GetProjectId ¶
func (x *ListMyWatchRequest) GetProjectId() string
func (*ListMyWatchRequest) GetSessionId ¶
func (x *ListMyWatchRequest) GetSessionId() string
func (*ListMyWatchRequest) GetTargetType ¶
func (x *ListMyWatchRequest) GetTargetType() WATCH_TARGET_TYPE
func (*ListMyWatchRequest) ProtoMessage ¶
func (*ListMyWatchRequest) ProtoMessage()
func (*ListMyWatchRequest) ProtoReflect ¶
func (x *ListMyWatchRequest) ProtoReflect() protoreflect.Message
func (*ListMyWatchRequest) Reset ¶
func (x *ListMyWatchRequest) Reset()
func (*ListMyWatchRequest) String ¶
func (x *ListMyWatchRequest) String() string
type ListMyWatchResponse ¶
type ListMyWatchResponse struct {
Code ListMyWatchResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=project_watch_api.ListMyWatchResponse_CODE" json:"code,omitempty"`
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
TotalCount uint32 `protobuf:"varint,3,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
InfoList []*MyWatchInfo `protobuf:"bytes,4,rep,name=infoList,proto3" json:"infoList,omitempty"`
// contains filtered or unexported fields
}
func (*ListMyWatchResponse) Descriptor
deprecated
func (*ListMyWatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListMyWatchResponse.ProtoReflect.Descriptor instead.
func (*ListMyWatchResponse) GetCode ¶
func (x *ListMyWatchResponse) GetCode() ListMyWatchResponse_CODE
func (*ListMyWatchResponse) GetErrMsg ¶
func (x *ListMyWatchResponse) GetErrMsg() string
func (*ListMyWatchResponse) GetInfoList ¶
func (x *ListMyWatchResponse) GetInfoList() []*MyWatchInfo
func (*ListMyWatchResponse) GetTotalCount ¶
func (x *ListMyWatchResponse) GetTotalCount() uint32
func (*ListMyWatchResponse) ProtoMessage ¶
func (*ListMyWatchResponse) ProtoMessage()
func (*ListMyWatchResponse) ProtoReflect ¶
func (x *ListMyWatchResponse) ProtoReflect() protoreflect.Message
func (*ListMyWatchResponse) Reset ¶
func (x *ListMyWatchResponse) Reset()
func (*ListMyWatchResponse) String ¶
func (x *ListMyWatchResponse) String() string
type ListMyWatchResponse_CODE ¶
type ListMyWatchResponse_CODE int32
const ( ListMyWatchResponse_CODE_OK ListMyWatchResponse_CODE = 0 ListMyWatchResponse_CODE_WRONG_SESSION ListMyWatchResponse_CODE = 1 ListMyWatchResponse_CODE_NO_PROJECT ListMyWatchResponse_CODE = 2 ListMyWatchResponse_CODE_NO_PERMISSION ListMyWatchResponse_CODE = 3 )
func (ListMyWatchResponse_CODE) Descriptor ¶
func (ListMyWatchResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (ListMyWatchResponse_CODE) Enum ¶
func (x ListMyWatchResponse_CODE) Enum() *ListMyWatchResponse_CODE
func (ListMyWatchResponse_CODE) EnumDescriptor
deprecated
func (ListMyWatchResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListMyWatchResponse_CODE.Descriptor instead.
func (ListMyWatchResponse_CODE) Number ¶
func (x ListMyWatchResponse_CODE) Number() protoreflect.EnumNumber
func (ListMyWatchResponse_CODE) String ¶
func (x ListMyWatchResponse_CODE) String() string
func (ListMyWatchResponse_CODE) Type ¶
func (ListMyWatchResponse_CODE) Type() protoreflect.EnumType
type MyWatchInfo ¶
type MyWatchInfo struct {
TargetId string `protobuf:"bytes,1,opt,name=targetId,proto3" json:"targetId,omitempty"`
TargetType WATCH_TARGET_TYPE `protobuf:"varint,2,opt,name=targetType,proto3,enum=project_watch_api.WATCH_TARGET_TYPE" json:"targetType,omitempty"`
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
WatchTime int64 `protobuf:"varint,4,opt,name=watchTime,proto3" json:"watchTime,omitempty"` //关注时间
// contains filtered or unexported fields
}
func (*MyWatchInfo) Descriptor
deprecated
func (*MyWatchInfo) Descriptor() ([]byte, []int)
Deprecated: Use MyWatchInfo.ProtoReflect.Descriptor instead.
func (*MyWatchInfo) GetTargetId ¶
func (x *MyWatchInfo) GetTargetId() string
func (*MyWatchInfo) GetTargetType ¶
func (x *MyWatchInfo) GetTargetType() WATCH_TARGET_TYPE
func (*MyWatchInfo) GetTitle ¶
func (x *MyWatchInfo) GetTitle() string
func (*MyWatchInfo) GetWatchTime ¶
func (x *MyWatchInfo) GetWatchTime() int64
func (*MyWatchInfo) ProtoMessage ¶
func (*MyWatchInfo) ProtoMessage()
func (*MyWatchInfo) ProtoReflect ¶
func (x *MyWatchInfo) ProtoReflect() protoreflect.Message
func (*MyWatchInfo) Reset ¶
func (x *MyWatchInfo) Reset()
func (*MyWatchInfo) String ¶
func (x *MyWatchInfo) String() string
type ProjectWatchApiClient ¶
type ProjectWatchApiClient interface {
// 关注
Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (*WatchResponse, error)
// 取消关注
Unwatch(ctx context.Context, in *UnwatchRequest, opts ...grpc.CallOption) (*UnwatchResponse, error)
// 列出我的关注
ListMyWatch(ctx context.Context, in *ListMyWatchRequest, opts ...grpc.CallOption) (*ListMyWatchResponse, error)
}
ProjectWatchApiClient is the client API for ProjectWatchApi 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 NewProjectWatchApiClient ¶
func NewProjectWatchApiClient(cc grpc.ClientConnInterface) ProjectWatchApiClient
type ProjectWatchApiServer ¶
type ProjectWatchApiServer interface {
// 关注
Watch(context.Context, *WatchRequest) (*WatchResponse, error)
// 取消关注
Unwatch(context.Context, *UnwatchRequest) (*UnwatchResponse, error)
// 列出我的关注
ListMyWatch(context.Context, *ListMyWatchRequest) (*ListMyWatchResponse, error)
// contains filtered or unexported methods
}
ProjectWatchApiServer is the server API for ProjectWatchApi service. All implementations must embed UnimplementedProjectWatchApiServer for forward compatibility
type UnimplementedProjectWatchApiServer ¶
type UnimplementedProjectWatchApiServer struct {
}
UnimplementedProjectWatchApiServer must be embedded to have forward compatible implementations.
func (UnimplementedProjectWatchApiServer) ListMyWatch ¶
func (UnimplementedProjectWatchApiServer) ListMyWatch(context.Context, *ListMyWatchRequest) (*ListMyWatchResponse, error)
func (UnimplementedProjectWatchApiServer) Unwatch ¶
func (UnimplementedProjectWatchApiServer) Unwatch(context.Context, *UnwatchRequest) (*UnwatchResponse, error)
func (UnimplementedProjectWatchApiServer) Watch ¶
func (UnimplementedProjectWatchApiServer) Watch(context.Context, *WatchRequest) (*WatchResponse, error)
type UnsafeProjectWatchApiServer ¶
type UnsafeProjectWatchApiServer interface {
// contains filtered or unexported methods
}
UnsafeProjectWatchApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectWatchApiServer will result in compilation errors.
type UnwatchRequest ¶
type UnwatchRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
TargetType WATCH_TARGET_TYPE `protobuf:"varint,3,opt,name=targetType,proto3,enum=project_watch_api.WATCH_TARGET_TYPE" json:"targetType,omitempty"`
TargetId string `protobuf:"bytes,4,opt,name=targetId,proto3" json:"targetId,omitempty"`
// contains filtered or unexported fields
}
func (*UnwatchRequest) Descriptor
deprecated
func (*UnwatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnwatchRequest.ProtoReflect.Descriptor instead.
func (*UnwatchRequest) GetProjectId ¶
func (x *UnwatchRequest) GetProjectId() string
func (*UnwatchRequest) GetSessionId ¶
func (x *UnwatchRequest) GetSessionId() string
func (*UnwatchRequest) GetTargetId ¶
func (x *UnwatchRequest) GetTargetId() string
func (*UnwatchRequest) GetTargetType ¶
func (x *UnwatchRequest) GetTargetType() WATCH_TARGET_TYPE
func (*UnwatchRequest) ProtoMessage ¶
func (*UnwatchRequest) ProtoMessage()
func (*UnwatchRequest) ProtoReflect ¶
func (x *UnwatchRequest) ProtoReflect() protoreflect.Message
func (*UnwatchRequest) Reset ¶
func (x *UnwatchRequest) Reset()
func (*UnwatchRequest) String ¶
func (x *UnwatchRequest) String() string
type UnwatchResponse ¶
type UnwatchResponse struct {
Code UnwatchResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=project_watch_api.UnwatchResponse_CODE" json:"code,omitempty"`
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
// contains filtered or unexported fields
}
func (*UnwatchResponse) Descriptor
deprecated
func (*UnwatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnwatchResponse.ProtoReflect.Descriptor instead.
func (*UnwatchResponse) GetCode ¶
func (x *UnwatchResponse) GetCode() UnwatchResponse_CODE
func (*UnwatchResponse) GetErrMsg ¶
func (x *UnwatchResponse) GetErrMsg() string
func (*UnwatchResponse) ProtoMessage ¶
func (*UnwatchResponse) ProtoMessage()
func (*UnwatchResponse) ProtoReflect ¶
func (x *UnwatchResponse) ProtoReflect() protoreflect.Message
func (*UnwatchResponse) Reset ¶
func (x *UnwatchResponse) Reset()
func (*UnwatchResponse) String ¶
func (x *UnwatchResponse) String() string
type UnwatchResponse_CODE ¶
type UnwatchResponse_CODE int32
const ( UnwatchResponse_CODE_OK UnwatchResponse_CODE = 0 UnwatchResponse_CODE_WRONG_SESSION UnwatchResponse_CODE = 1 UnwatchResponse_CODE_NO_PROJECT UnwatchResponse_CODE = 2 UnwatchResponse_CODE_NO_PERMISSION UnwatchResponse_CODE = 3 UnwatchResponse_CODE_NO_TARGET UnwatchResponse_CODE = 4 )
func (UnwatchResponse_CODE) Descriptor ¶
func (UnwatchResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (UnwatchResponse_CODE) Enum ¶
func (x UnwatchResponse_CODE) Enum() *UnwatchResponse_CODE
func (UnwatchResponse_CODE) EnumDescriptor
deprecated
func (UnwatchResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use UnwatchResponse_CODE.Descriptor instead.
func (UnwatchResponse_CODE) Number ¶
func (x UnwatchResponse_CODE) Number() protoreflect.EnumNumber
func (UnwatchResponse_CODE) String ¶
func (x UnwatchResponse_CODE) String() string
func (UnwatchResponse_CODE) Type ¶
func (UnwatchResponse_CODE) Type() protoreflect.EnumType
type WATCH_TARGET_TYPE ¶
type WATCH_TARGET_TYPE int32
const ( WATCH_TARGET_TYPE_WATCH_TARGET_ENTRY WATCH_TARGET_TYPE = 0 //内容入口 WATCH_TARGET_TYPE_WATCH_TARGET_REQUIRE_MENT WATCH_TARGET_TYPE = 1 //项目需求 WATCH_TARGET_TYPE_WATCH_TARGET_TASK WATCH_TARGET_TYPE = 2 //任务 WATCH_TARGET_TYPE_WATCH_TARGET_BUG WATCH_TARGET_TYPE = 3 //缺陷 // WATCH_TARGET_CI_CD = 4; // CI/CD(废弃) // WATCH_TARGET_API_COLL = 5; // API集合(废弃) // WATCH_TARGET_DATA_ANNO = 6; // 数据标注(废弃) WATCH_TARGET_TYPE_WATCH_TARGET_TEST_CASE WATCH_TARGET_TYPE = 7 //测试用例 )
func (WATCH_TARGET_TYPE) Descriptor ¶
func (WATCH_TARGET_TYPE) Descriptor() protoreflect.EnumDescriptor
func (WATCH_TARGET_TYPE) Enum ¶
func (x WATCH_TARGET_TYPE) Enum() *WATCH_TARGET_TYPE
func (WATCH_TARGET_TYPE) EnumDescriptor
deprecated
func (WATCH_TARGET_TYPE) EnumDescriptor() ([]byte, []int)
Deprecated: Use WATCH_TARGET_TYPE.Descriptor instead.
func (WATCH_TARGET_TYPE) Number ¶
func (x WATCH_TARGET_TYPE) Number() protoreflect.EnumNumber
func (WATCH_TARGET_TYPE) String ¶
func (x WATCH_TARGET_TYPE) String() string
func (WATCH_TARGET_TYPE) Type ¶
func (WATCH_TARGET_TYPE) Type() protoreflect.EnumType
type WatchRequest ¶
type WatchRequest struct {
SessionId string `protobuf:"bytes,1,opt,name=sessionId,proto3" json:"sessionId,omitempty"`
ProjectId string `protobuf:"bytes,2,opt,name=projectId,proto3" json:"projectId,omitempty"`
TargetType WATCH_TARGET_TYPE `protobuf:"varint,3,opt,name=targetType,proto3,enum=project_watch_api.WATCH_TARGET_TYPE" json:"targetType,omitempty"`
TargetId string `protobuf:"bytes,4,opt,name=targetId,proto3" json:"targetId,omitempty"`
// contains filtered or unexported fields
}
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) GetProjectId ¶
func (x *WatchRequest) GetProjectId() string
func (*WatchRequest) GetSessionId ¶
func (x *WatchRequest) GetSessionId() string
func (*WatchRequest) GetTargetId ¶
func (x *WatchRequest) GetTargetId() string
func (*WatchRequest) GetTargetType ¶
func (x *WatchRequest) GetTargetType() WATCH_TARGET_TYPE
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) ProtoReflect ¶
func (x *WatchRequest) ProtoReflect() protoreflect.Message
func (*WatchRequest) Reset ¶
func (x *WatchRequest) Reset()
func (*WatchRequest) String ¶
func (x *WatchRequest) String() string
type WatchResponse ¶
type WatchResponse struct {
Code WatchResponse_CODE `protobuf:"varint,1,opt,name=code,proto3,enum=project_watch_api.WatchResponse_CODE" json:"code,omitempty"`
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"`
// contains filtered or unexported fields
}
func (*WatchResponse) Descriptor
deprecated
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) GetCode ¶
func (x *WatchResponse) GetCode() WatchResponse_CODE
func (*WatchResponse) GetErrMsg ¶
func (x *WatchResponse) GetErrMsg() string
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) ProtoReflect ¶
func (x *WatchResponse) ProtoReflect() protoreflect.Message
func (*WatchResponse) Reset ¶
func (x *WatchResponse) Reset()
func (*WatchResponse) String ¶
func (x *WatchResponse) String() string
type WatchResponse_CODE ¶
type WatchResponse_CODE int32
const ( WatchResponse_CODE_OK WatchResponse_CODE = 0 WatchResponse_CODE_WRONG_SESSION WatchResponse_CODE = 1 WatchResponse_CODE_NO_PROJECT WatchResponse_CODE = 2 WatchResponse_CODE_NO_PERMISSION WatchResponse_CODE = 3 WatchResponse_CODE_NO_TARGET WatchResponse_CODE = 4 )
func (WatchResponse_CODE) Descriptor ¶
func (WatchResponse_CODE) Descriptor() protoreflect.EnumDescriptor
func (WatchResponse_CODE) Enum ¶
func (x WatchResponse_CODE) Enum() *WatchResponse_CODE
func (WatchResponse_CODE) EnumDescriptor
deprecated
func (WatchResponse_CODE) EnumDescriptor() ([]byte, []int)
Deprecated: Use WatchResponse_CODE.Descriptor instead.
func (WatchResponse_CODE) Number ¶
func (x WatchResponse_CODE) Number() protoreflect.EnumNumber
func (WatchResponse_CODE) String ¶
func (x WatchResponse_CODE) String() string
func (WatchResponse_CODE) Type ¶
func (WatchResponse_CODE) Type() protoreflect.EnumType
Source Files
¶
- project_watch_api.pb.go
- project_watch_api_grpc.pb.go