Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterProgressSvcServer(s grpc.ServiceRegistrar, srv ProgressSvcServer)
- type CreateProgressRequest
- func (*CreateProgressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProgressRequest) GetCourse() string
- func (x *CreateProgressRequest) GetCurrentStep() uint32
- func (x *CreateProgressRequest) GetLabels() map[string]string
- func (x *CreateProgressRequest) GetMaxStep() uint32
- func (x *CreateProgressRequest) GetScenario() string
- func (x *CreateProgressRequest) GetTotalStep() uint32
- func (x *CreateProgressRequest) GetUser() string
- func (*CreateProgressRequest) ProtoMessage()
- func (x *CreateProgressRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProgressRequest) Reset()
- func (x *CreateProgressRequest) String() string
- type ListProgressesResponse
- func (*ListProgressesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProgressesResponse) GetProgresses() []*Progress
- func (*ListProgressesResponse) ProtoMessage()
- func (x *ListProgressesResponse) ProtoReflect() protoreflect.Message
- func (x *ListProgressesResponse) Reset()
- func (x *ListProgressesResponse) String() string
- type Progress
- func (*Progress) Descriptor() ([]byte, []int)deprecated
- func (x *Progress) GetCourse() string
- func (x *Progress) GetCreationTimestamp() *timestamppb.Timestamp
- func (x *Progress) GetCurrentStep() uint32
- func (x *Progress) GetFinished() string
- func (x *Progress) GetId() string
- func (x *Progress) GetLabels() map[string]string
- func (x *Progress) GetLastUpdate() string
- func (x *Progress) GetMaxStep() uint32
- func (x *Progress) GetScenario() string
- func (x *Progress) GetStarted() string
- func (x *Progress) GetSteps() []*ProgressStep
- func (x *Progress) GetTotalStep() uint32
- func (x *Progress) GetUid() string
- func (x *Progress) GetUser() string
- func (*Progress) ProtoMessage()
- func (x *Progress) ProtoReflect() protoreflect.Message
- func (x *Progress) Reset()
- func (x *Progress) String() string
- type ProgressStep
- func (*ProgressStep) Descriptor() ([]byte, []int)deprecated
- func (x *ProgressStep) GetStep() uint32
- func (x *ProgressStep) GetTimestamp() string
- func (*ProgressStep) ProtoMessage()
- func (x *ProgressStep) ProtoReflect() protoreflect.Message
- func (x *ProgressStep) Reset()
- func (x *ProgressStep) String() string
- type ProgressSvcClient
- type ProgressSvcServer
- type UnimplementedProgressSvcServer
- func (UnimplementedProgressSvcServer) CreateProgress(context.Context, *CreateProgressRequest) (*general.ResourceId, error)
- func (UnimplementedProgressSvcServer) DeleteCollectionProgress(context.Context, *general.ListOptions) (*emptypb.Empty, error)
- func (UnimplementedProgressSvcServer) DeleteProgress(context.Context, *general.ResourceId) (*emptypb.Empty, error)
- func (UnimplementedProgressSvcServer) GetProgress(context.Context, *general.GetRequest) (*Progress, error)
- func (UnimplementedProgressSvcServer) ListProgress(context.Context, *general.ListOptions) (*ListProgressesResponse, error)
- func (UnimplementedProgressSvcServer) UpdateCollectionProgress(context.Context, *UpdateCollectionProgressRequest) (*emptypb.Empty, error)
- func (UnimplementedProgressSvcServer) UpdateProgress(context.Context, *UpdateProgressRequest) (*emptypb.Empty, error)
- type UnsafeProgressSvcServer
- type UpdateCollectionProgressRequest
- func (*UpdateCollectionProgressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCollectionProgressRequest) GetCurrentStep() *wrapperspb.UInt32Value
- func (x *UpdateCollectionProgressRequest) GetFinished() string
- func (x *UpdateCollectionProgressRequest) GetLabelselector() string
- func (x *UpdateCollectionProgressRequest) GetLastUpdate() string
- func (x *UpdateCollectionProgressRequest) GetMaxStep() *wrapperspb.UInt32Value
- func (x *UpdateCollectionProgressRequest) GetSteps() []*ProgressStep
- func (x *UpdateCollectionProgressRequest) GetTotalStep() *wrapperspb.UInt32Value
- func (*UpdateCollectionProgressRequest) ProtoMessage()
- func (x *UpdateCollectionProgressRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCollectionProgressRequest) Reset()
- func (x *UpdateCollectionProgressRequest) String() string
- type UpdateProgressRequest
- func (*UpdateProgressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProgressRequest) GetCurrentStep() *wrapperspb.UInt32Value
- func (x *UpdateProgressRequest) GetFinished() string
- func (x *UpdateProgressRequest) GetId() string
- func (x *UpdateProgressRequest) GetLastUpdate() string
- func (x *UpdateProgressRequest) GetMaxStep() *wrapperspb.UInt32Value
- func (x *UpdateProgressRequest) GetSteps() []*ProgressStep
- func (x *UpdateProgressRequest) GetTotalStep() *wrapperspb.UInt32Value
- func (*UpdateProgressRequest) ProtoMessage()
- func (x *UpdateProgressRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProgressRequest) Reset()
- func (x *UpdateProgressRequest) String() string
Constants ¶
const ( ProgressSvc_CreateProgress_FullMethodName = "/progress.ProgressSvc/CreateProgress" ProgressSvc_GetProgress_FullMethodName = "/progress.ProgressSvc/GetProgress" ProgressSvc_UpdateProgress_FullMethodName = "/progress.ProgressSvc/UpdateProgress" ProgressSvc_UpdateCollectionProgress_FullMethodName = "/progress.ProgressSvc/UpdateCollectionProgress" ProgressSvc_DeleteProgress_FullMethodName = "/progress.ProgressSvc/DeleteProgress" ProgressSvc_DeleteCollectionProgress_FullMethodName = "/progress.ProgressSvc/DeleteCollectionProgress" ProgressSvc_ListProgress_FullMethodName = "/progress.ProgressSvc/ListProgress" )
Variables ¶
var File_progress_progress_proto protoreflect.FileDescriptor
var ProgressSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "progress.ProgressSvc", HandlerType: (*ProgressSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateProgress", Handler: _ProgressSvc_CreateProgress_Handler, }, { MethodName: "GetProgress", Handler: _ProgressSvc_GetProgress_Handler, }, { MethodName: "UpdateProgress", Handler: _ProgressSvc_UpdateProgress_Handler, }, { MethodName: "UpdateCollectionProgress", Handler: _ProgressSvc_UpdateCollectionProgress_Handler, }, { MethodName: "DeleteProgress", Handler: _ProgressSvc_DeleteProgress_Handler, }, { MethodName: "DeleteCollectionProgress", Handler: _ProgressSvc_DeleteCollectionProgress_Handler, }, { MethodName: "ListProgress", Handler: _ProgressSvc_ListProgress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "progress/progress.proto", }
ProgressSvc_ServiceDesc is the grpc.ServiceDesc for ProgressSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProgressSvcServer ¶
func RegisterProgressSvcServer(s grpc.ServiceRegistrar, srv ProgressSvcServer)
Types ¶
type CreateProgressRequest ¶
type CreateProgressRequest struct { CurrentStep uint32 `protobuf:"varint,1,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"` MaxStep uint32 `protobuf:"varint,2,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"` TotalStep uint32 `protobuf:"varint,3,opt,name=total_step,json=totalStep,proto3" json:"total_step,omitempty"` Scenario string `protobuf:"bytes,4,opt,name=scenario,proto3" json:"scenario,omitempty"` Course string `protobuf:"bytes,5,opt,name=course,proto3" json:"course,omitempty"` User string `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateProgressRequest) Descriptor
deprecated
func (*CreateProgressRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProgressRequest.ProtoReflect.Descriptor instead.
func (*CreateProgressRequest) GetCourse ¶
func (x *CreateProgressRequest) GetCourse() string
func (*CreateProgressRequest) GetCurrentStep ¶
func (x *CreateProgressRequest) GetCurrentStep() uint32
func (*CreateProgressRequest) GetLabels ¶
func (x *CreateProgressRequest) GetLabels() map[string]string
func (*CreateProgressRequest) GetMaxStep ¶
func (x *CreateProgressRequest) GetMaxStep() uint32
func (*CreateProgressRequest) GetScenario ¶
func (x *CreateProgressRequest) GetScenario() string
func (*CreateProgressRequest) GetTotalStep ¶
func (x *CreateProgressRequest) GetTotalStep() uint32
func (*CreateProgressRequest) GetUser ¶
func (x *CreateProgressRequest) GetUser() string
func (*CreateProgressRequest) ProtoMessage ¶
func (*CreateProgressRequest) ProtoMessage()
func (*CreateProgressRequest) ProtoReflect ¶
func (x *CreateProgressRequest) ProtoReflect() protoreflect.Message
func (*CreateProgressRequest) Reset ¶
func (x *CreateProgressRequest) Reset()
func (*CreateProgressRequest) String ¶
func (x *CreateProgressRequest) String() string
type ListProgressesResponse ¶
type ListProgressesResponse struct { Progresses []*Progress `protobuf:"bytes,1,rep,name=progresses,proto3" json:"progresses,omitempty"` // contains filtered or unexported fields }
func (*ListProgressesResponse) Descriptor
deprecated
func (*ListProgressesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProgressesResponse.ProtoReflect.Descriptor instead.
func (*ListProgressesResponse) GetProgresses ¶
func (x *ListProgressesResponse) GetProgresses() []*Progress
func (*ListProgressesResponse) ProtoMessage ¶
func (*ListProgressesResponse) ProtoMessage()
func (*ListProgressesResponse) ProtoReflect ¶
func (x *ListProgressesResponse) ProtoReflect() protoreflect.Message
func (*ListProgressesResponse) Reset ¶
func (x *ListProgressesResponse) Reset()
func (*ListProgressesResponse) String ¶
func (x *ListProgressesResponse) String() string
type Progress ¶
type Progress struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` CurrentStep uint32 `protobuf:"varint,3,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"` MaxStep uint32 `protobuf:"varint,4,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"` TotalStep uint32 `protobuf:"varint,5,opt,name=total_step,json=totalStep,proto3" json:"total_step,omitempty"` Scenario string `protobuf:"bytes,6,opt,name=scenario,proto3" json:"scenario,omitempty"` Course string `protobuf:"bytes,7,opt,name=course,proto3" json:"course,omitempty"` User string `protobuf:"bytes,8,opt,name=user,proto3" json:"user,omitempty"` Started string `protobuf:"bytes,9,opt,name=started,proto3" json:"started,omitempty"` LastUpdate string `protobuf:"bytes,10,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` Finished string `protobuf:"bytes,11,opt,name=finished,proto3" json:"finished,omitempty"` Steps []*ProgressStep `protobuf:"bytes,12,rep,name=steps,proto3" json:"steps,omitempty"` Labels map[string]string `` /* 154-byte string literal not displayed */ CreationTimestamp *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=creation_timestamp,json=creationTimestamp,proto3" json:"creation_timestamp,omitempty"` // contains filtered or unexported fields }
func (*Progress) Descriptor
deprecated
func (*Progress) GetCreationTimestamp ¶
func (x *Progress) GetCreationTimestamp() *timestamppb.Timestamp
func (*Progress) GetCurrentStep ¶
func (*Progress) GetFinished ¶
func (*Progress) GetLastUpdate ¶
func (*Progress) GetMaxStep ¶
func (*Progress) GetScenario ¶
func (*Progress) GetStarted ¶
func (*Progress) GetSteps ¶
func (x *Progress) GetSteps() []*ProgressStep
func (*Progress) GetTotalStep ¶
func (*Progress) ProtoMessage ¶
func (*Progress) ProtoMessage()
func (*Progress) ProtoReflect ¶
func (x *Progress) ProtoReflect() protoreflect.Message
type ProgressStep ¶
type ProgressStep struct { Step uint32 `protobuf:"varint,1,opt,name=step,proto3" json:"step,omitempty"` Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*ProgressStep) Descriptor
deprecated
func (*ProgressStep) Descriptor() ([]byte, []int)
Deprecated: Use ProgressStep.ProtoReflect.Descriptor instead.
func (*ProgressStep) GetStep ¶
func (x *ProgressStep) GetStep() uint32
func (*ProgressStep) GetTimestamp ¶
func (x *ProgressStep) GetTimestamp() string
func (*ProgressStep) ProtoMessage ¶
func (*ProgressStep) ProtoMessage()
func (*ProgressStep) ProtoReflect ¶
func (x *ProgressStep) ProtoReflect() protoreflect.Message
func (*ProgressStep) Reset ¶
func (x *ProgressStep) Reset()
func (*ProgressStep) String ¶
func (x *ProgressStep) String() string
type ProgressSvcClient ¶
type ProgressSvcClient interface { CreateProgress(ctx context.Context, in *CreateProgressRequest, opts ...grpc.CallOption) (*general.ResourceId, error) GetProgress(ctx context.Context, in *general.GetRequest, opts ...grpc.CallOption) (*Progress, error) UpdateProgress(ctx context.Context, in *UpdateProgressRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateCollectionProgress(ctx context.Context, in *UpdateCollectionProgressRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteProgress(ctx context.Context, in *general.ResourceId, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteCollectionProgress(ctx context.Context, in *general.ListOptions, opts ...grpc.CallOption) (*emptypb.Empty, error) ListProgress(ctx context.Context, in *general.ListOptions, opts ...grpc.CallOption) (*ListProgressesResponse, error) }
ProgressSvcClient is the client API for ProgressSvc 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 NewProgressSvcClient ¶
func NewProgressSvcClient(cc grpc.ClientConnInterface) ProgressSvcClient
type ProgressSvcServer ¶
type ProgressSvcServer interface { CreateProgress(context.Context, *CreateProgressRequest) (*general.ResourceId, error) GetProgress(context.Context, *general.GetRequest) (*Progress, error) UpdateProgress(context.Context, *UpdateProgressRequest) (*emptypb.Empty, error) UpdateCollectionProgress(context.Context, *UpdateCollectionProgressRequest) (*emptypb.Empty, error) DeleteProgress(context.Context, *general.ResourceId) (*emptypb.Empty, error) DeleteCollectionProgress(context.Context, *general.ListOptions) (*emptypb.Empty, error) ListProgress(context.Context, *general.ListOptions) (*ListProgressesResponse, error) // contains filtered or unexported methods }
ProgressSvcServer is the server API for ProgressSvc service. All implementations must embed UnimplementedProgressSvcServer for forward compatibility
type UnimplementedProgressSvcServer ¶
type UnimplementedProgressSvcServer struct { }
UnimplementedProgressSvcServer must be embedded to have forward compatible implementations.
func (UnimplementedProgressSvcServer) CreateProgress ¶
func (UnimplementedProgressSvcServer) CreateProgress(context.Context, *CreateProgressRequest) (*general.ResourceId, error)
func (UnimplementedProgressSvcServer) DeleteCollectionProgress ¶
func (UnimplementedProgressSvcServer) DeleteCollectionProgress(context.Context, *general.ListOptions) (*emptypb.Empty, error)
func (UnimplementedProgressSvcServer) DeleteProgress ¶
func (UnimplementedProgressSvcServer) DeleteProgress(context.Context, *general.ResourceId) (*emptypb.Empty, error)
func (UnimplementedProgressSvcServer) GetProgress ¶
func (UnimplementedProgressSvcServer) GetProgress(context.Context, *general.GetRequest) (*Progress, error)
func (UnimplementedProgressSvcServer) ListProgress ¶
func (UnimplementedProgressSvcServer) ListProgress(context.Context, *general.ListOptions) (*ListProgressesResponse, error)
func (UnimplementedProgressSvcServer) UpdateCollectionProgress ¶
func (UnimplementedProgressSvcServer) UpdateCollectionProgress(context.Context, *UpdateCollectionProgressRequest) (*emptypb.Empty, error)
func (UnimplementedProgressSvcServer) UpdateProgress ¶
func (UnimplementedProgressSvcServer) UpdateProgress(context.Context, *UpdateProgressRequest) (*emptypb.Empty, error)
type UnsafeProgressSvcServer ¶
type UnsafeProgressSvcServer interface {
// contains filtered or unexported methods
}
UnsafeProgressSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProgressSvcServer will result in compilation errors.
type UpdateCollectionProgressRequest ¶
type UpdateCollectionProgressRequest struct { Labelselector string `protobuf:"bytes,1,opt,name=labelselector,proto3" json:"labelselector,omitempty"` CurrentStep *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"` MaxStep *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"` TotalStep *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=total_step,json=totalStep,proto3" json:"total_step,omitempty"` LastUpdate string `protobuf:"bytes,5,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` Finished string `protobuf:"bytes,6,opt,name=finished,proto3" json:"finished,omitempty"` Steps []*ProgressStep `protobuf:"bytes,7,rep,name=steps,proto3" json:"steps,omitempty"` // contains filtered or unexported fields }
func (*UpdateCollectionProgressRequest) Descriptor
deprecated
func (*UpdateCollectionProgressRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCollectionProgressRequest.ProtoReflect.Descriptor instead.
func (*UpdateCollectionProgressRequest) GetCurrentStep ¶
func (x *UpdateCollectionProgressRequest) GetCurrentStep() *wrapperspb.UInt32Value
func (*UpdateCollectionProgressRequest) GetFinished ¶
func (x *UpdateCollectionProgressRequest) GetFinished() string
func (*UpdateCollectionProgressRequest) GetLabelselector ¶
func (x *UpdateCollectionProgressRequest) GetLabelselector() string
func (*UpdateCollectionProgressRequest) GetLastUpdate ¶
func (x *UpdateCollectionProgressRequest) GetLastUpdate() string
func (*UpdateCollectionProgressRequest) GetMaxStep ¶
func (x *UpdateCollectionProgressRequest) GetMaxStep() *wrapperspb.UInt32Value
func (*UpdateCollectionProgressRequest) GetSteps ¶
func (x *UpdateCollectionProgressRequest) GetSteps() []*ProgressStep
func (*UpdateCollectionProgressRequest) GetTotalStep ¶
func (x *UpdateCollectionProgressRequest) GetTotalStep() *wrapperspb.UInt32Value
func (*UpdateCollectionProgressRequest) ProtoMessage ¶
func (*UpdateCollectionProgressRequest) ProtoMessage()
func (*UpdateCollectionProgressRequest) ProtoReflect ¶
func (x *UpdateCollectionProgressRequest) ProtoReflect() protoreflect.Message
func (*UpdateCollectionProgressRequest) Reset ¶
func (x *UpdateCollectionProgressRequest) Reset()
func (*UpdateCollectionProgressRequest) String ¶
func (x *UpdateCollectionProgressRequest) String() string
type UpdateProgressRequest ¶
type UpdateProgressRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CurrentStep *wrapperspb.UInt32Value `protobuf:"bytes,2,opt,name=current_step,json=currentStep,proto3" json:"current_step,omitempty"` MaxStep *wrapperspb.UInt32Value `protobuf:"bytes,3,opt,name=max_step,json=maxStep,proto3" json:"max_step,omitempty"` TotalStep *wrapperspb.UInt32Value `protobuf:"bytes,4,opt,name=total_step,json=totalStep,proto3" json:"total_step,omitempty"` LastUpdate string `protobuf:"bytes,5,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"` Finished string `protobuf:"bytes,6,opt,name=finished,proto3" json:"finished,omitempty"` Steps []*ProgressStep `protobuf:"bytes,7,rep,name=steps,proto3" json:"steps,omitempty"` // contains filtered or unexported fields }
func (*UpdateProgressRequest) Descriptor
deprecated
func (*UpdateProgressRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProgressRequest.ProtoReflect.Descriptor instead.
func (*UpdateProgressRequest) GetCurrentStep ¶
func (x *UpdateProgressRequest) GetCurrentStep() *wrapperspb.UInt32Value
func (*UpdateProgressRequest) GetFinished ¶
func (x *UpdateProgressRequest) GetFinished() string
func (*UpdateProgressRequest) GetId ¶
func (x *UpdateProgressRequest) GetId() string
func (*UpdateProgressRequest) GetLastUpdate ¶
func (x *UpdateProgressRequest) GetLastUpdate() string
func (*UpdateProgressRequest) GetMaxStep ¶
func (x *UpdateProgressRequest) GetMaxStep() *wrapperspb.UInt32Value
func (*UpdateProgressRequest) GetSteps ¶
func (x *UpdateProgressRequest) GetSteps() []*ProgressStep
func (*UpdateProgressRequest) GetTotalStep ¶
func (x *UpdateProgressRequest) GetTotalStep() *wrapperspb.UInt32Value
func (*UpdateProgressRequest) ProtoMessage ¶
func (*UpdateProgressRequest) ProtoMessage()
func (*UpdateProgressRequest) ProtoReflect ¶
func (x *UpdateProgressRequest) ProtoReflect() protoreflect.Message
func (*UpdateProgressRequest) Reset ¶
func (x *UpdateProgressRequest) Reset()
func (*UpdateProgressRequest) String ¶
func (x *UpdateProgressRequest) String() string