jobclient

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseIDResp

type BaseIDResp = job.BaseIDResp

type BaseResp

type BaseResp = job.BaseResp

type BaseUUIDResp

type BaseUUIDResp = job.BaseUUIDResp

type Empty

type Empty = job.Empty

type IDReq

type IDReq = job.IDReq

type IDsReq

type IDsReq = job.IDsReq

type Job

type Job interface {
	InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error)
	// Task management
	CreateTask(ctx context.Context, in *TaskInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateTask(ctx context.Context, in *TaskInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetTaskList(ctx context.Context, in *TaskListReq, opts ...grpc.CallOption) (*TaskListResp, error)
	GetTaskById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*TaskInfo, error)
	DeleteTask(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
	// TaskLog management
	CreateTaskLog(ctx context.Context, in *TaskLogInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
	UpdateTaskLog(ctx context.Context, in *TaskLogInfo, opts ...grpc.CallOption) (*BaseResp, error)
	GetTaskLogList(ctx context.Context, in *TaskLogListReq, opts ...grpc.CallOption) (*TaskLogListResp, error)
	GetTaskLogById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*TaskLogInfo, error)
	DeleteTaskLog(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
}

func NewJob

func NewJob(cli zrpc.Client) Job

type PageInfoReq

type PageInfoReq = job.PageInfoReq

type TaskInfo

type TaskInfo = job.TaskInfo

type TaskListReq

type TaskListReq = job.TaskListReq

type TaskListResp

type TaskListResp = job.TaskListResp

type TaskLogInfo

type TaskLogInfo = job.TaskLogInfo

type TaskLogListReq

type TaskLogListReq = job.TaskLogListReq

type TaskLogListResp

type TaskLogListResp = job.TaskLogListResp

type UUIDReq

type UUIDReq = job.UUIDReq

type UUIDsReq

type UUIDsReq = job.UUIDsReq

Jump to

Keyboard shortcuts

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