service

package module
v0.0.0-...-32fa971 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WordcloudTask

type WordcloudTask interface {
	// TaskSave save word cloud task 保存词云图任务
	TaskSave(ctx context.Context, payload vo.TaskPayload) (

		data int, err error)

	// TaskSuccess task success 任务执行成功接口
	TaskSuccess(ctx context.Context, payload vo.TaskSuccess) (

		data string, err error)

	// TaskFail task fail 任务执行失败接口
	TaskFail(ctx context.Context, payload vo.TaskFail) (

		data string, err error)

	// TaskPage
	TaskPage(ctx context.Context,

		query vo.PageQuery) (

		data vo.TaskPageRet,

		err error)
}

type WordcloudTaskImpl

type WordcloudTaskImpl struct {
	pb.UnimplementedWordcloudTaskServiceServer
	// contains filtered or unexported fields
}

func NewWordcloudTask

func NewWordcloudTask(conf *config.Config, db wrapper.GddDB) *WordcloudTaskImpl

func (*WordcloudTaskImpl) TaskFail

func (receiver *WordcloudTaskImpl) TaskFail(ctx context.Context, payload vo.TaskFail) (data string, err error)

func (*WordcloudTaskImpl) TaskFailRpc

func (receiver *WordcloudTaskImpl) TaskFailRpc(ctx context.Context, request *pb.TaskFail) (*pb.TaskFailRpcResponse, error)

func (*WordcloudTaskImpl) TaskPage

func (receiver *WordcloudTaskImpl) TaskPage(ctx context.Context, pq vo.PageQuery) (data vo.TaskPageRet, err error)

func (*WordcloudTaskImpl) TaskPageRpc

func (receiver *WordcloudTaskImpl) TaskPageRpc(ctx context.Context, request *pb.PageQuery) (*pb.TaskPageRet, error)

func (*WordcloudTaskImpl) TaskSave

func (receiver *WordcloudTaskImpl) TaskSave(ctx context.Context, payload vo.TaskPayload) (data int, err error)

func (*WordcloudTaskImpl) TaskSaveRpc

func (receiver *WordcloudTaskImpl) TaskSaveRpc(ctx context.Context, request *pb.TaskPayload) (*pb.TaskSaveRpcResponse, error)

func (*WordcloudTaskImpl) TaskSuccess

func (receiver *WordcloudTaskImpl) TaskSuccess(ctx context.Context, payload vo.TaskSuccess) (data string, err error)

func (*WordcloudTaskImpl) TaskSuccessRpc

func (receiver *WordcloudTaskImpl) TaskSuccessRpc(ctx context.Context, request *pb.TaskSuccess) (*pb.TaskSuccessRpcResponse, error)

Directories

Path Synopsis
* * Generated by go-doudou v2.0.1.
* * Generated by go-doudou v2.0.1.
transport
grpc
* * Generated by go-doudou v2.0.1.
* * Generated by go-doudou v2.0.1.

Jump to

Keyboard shortcuts

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