service

package
v0.0.0-...-14e102d Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

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 New

func New(app *app.App) *Service

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) Register

func (srv *Service) Register(grpc *grpc.Server)

func (*Service) RegisterGateway

func (srv *Service) RegisterGateway(ctx context.Context, mux *runtime.ServeMux, e *echo.Echo)

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)

Jump to

Keyboard shortcuts

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