Documentation
¶
Index ¶
- type Service
- func (srv *Service) CancelTask(ctx context.Context, in *pb.CancelTaskRequest) (*pb.CancelTaskResponse, error)
- func (srv *Service) CreatePersistTask(ctx context.Context, req *pb.CreatePersistTaskRequest) (*pb.CreatePersistTaskResponse, error)
- func (srv *Service) DeletePersistTask(ctx context.Context, req *pb.DeletePersistTaskRequest) (*pb.DeletePersistTaskResponse, error)
- func (srv *Service) ExecutePersistTask(ctx context.Context, req *pb.ExecutePersistTaskRequest) (*pb.ExecutePersistTaskResponse, error)
- func (srv *Service) ListPersistTasks(ctx context.Context, req *pb.ListPersistTasksRequest) (*pb.ListPersistTasksResponse, error)
- func (srv *Service) ListTasks(ctx context.Context, in *pb.ListTasksRequest) (*pb.ListTasksResponse, error)
- func (srv *Service) Register(grpc *grpc.Server)
- func (srv *Service) RegisterGateway(ctx context.Context, mux *runtime.ServeMux, e *echo.Echo)
- func (srv *Service) RemoveTask(ctx context.Context, in *pb.RemoveTaskRequest) (*pb.RemoveTaskResponse, error)
- func (srv *Service) RetryTask(ctx context.Context, in *pb.RetryTaskRequest) (*pb.RetryTaskResponse, error)
- func (srv *Service) TestPersistTask(ctx context.Context, req *pb.TestPersistTaskRequest) (*pb.TestPersistTaskResponse, error)
- func (srv *Service) UpdatePersistTask(ctx context.Context, req *pb.UpdatePersistTaskRequest) (*pb.UpdatePersistTaskResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
pb.UnimplementedTaskServiceServer
// contains filtered or unexported fields
}
func (*Service) CancelTask ¶
func (srv *Service) CancelTask(ctx context.Context, in *pb.CancelTaskRequest) (*pb.CancelTaskResponse, error)
func (*Service) CreatePersistTask ¶
func (srv *Service) CreatePersistTask(ctx context.Context, req *pb.CreatePersistTaskRequest) (*pb.CreatePersistTaskResponse, error)
func (*Service) DeletePersistTask ¶
func (srv *Service) DeletePersistTask(ctx context.Context, req *pb.DeletePersistTaskRequest) (*pb.DeletePersistTaskResponse, error)
func (*Service) ExecutePersistTask ¶
func (srv *Service) ExecutePersistTask(ctx context.Context, req *pb.ExecutePersistTaskRequest) (*pb.ExecutePersistTaskResponse, error)
func (*Service) ListPersistTasks ¶
func (srv *Service) ListPersistTasks(ctx context.Context, req *pb.ListPersistTasksRequest) (*pb.ListPersistTasksResponse, error)
func (*Service) ListTasks ¶
func (srv *Service) ListTasks(ctx context.Context, in *pb.ListTasksRequest) (*pb.ListTasksResponse, error)
TODO: 持久化任务信息
func (*Service) RegisterGateway ¶
func (*Service) RemoveTask ¶
func (srv *Service) RemoveTask(ctx context.Context, in *pb.RemoveTaskRequest) (*pb.RemoveTaskResponse, error)
func (*Service) RetryTask ¶
func (srv *Service) RetryTask(ctx context.Context, in *pb.RetryTaskRequest) (*pb.RetryTaskResponse, error)
func (*Service) TestPersistTask ¶
func (srv *Service) TestPersistTask(ctx context.Context, req *pb.TestPersistTaskRequest) (*pb.TestPersistTaskResponse, error)
func (*Service) UpdatePersistTask ¶
func (srv *Service) UpdatePersistTask(ctx context.Context, req *pb.UpdatePersistTaskRequest) (*pb.UpdatePersistTaskResponse, error)
Click to show internal directories.
Click to hide internal directories.