Documentation ¶
Index ¶
- Variables
- func BuildTask(item *model.Task) *pb.TaskModel
- func TaskMQ2MySQL(ctx context.Context, req *pb.TaskRequest) error
- type TaskSrv
- func (t *TaskSrv) CreateTask(ctx context.Context, req *pb.TaskRequest, resp *pb.TaskDetailResponse) (err error)
- func (t *TaskSrv) DeleteTask(ctx context.Context, req *pb.TaskRequest, resp *pb.TaskDetailResponse) (err error)
- func (t *TaskSrv) GetTask(ctx context.Context, req *pb.TaskRequest, resp *pb.TaskDetailResponse) (err error)
- func (t *TaskSrv) GetTasksList(ctx context.Context, req *pb.TaskRequest, resp *pb.TaskListResponse) (err error)
- func (t *TaskSrv) UpdateTask(ctx context.Context, req *pb.TaskRequest, resp *pb.TaskDetailResponse) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var TaskSrvOnce sync.Once
Functions ¶
func TaskMQ2MySQL ¶
func TaskMQ2MySQL(ctx context.Context, req *pb.TaskRequest) error
Types ¶
type TaskSrv ¶
type TaskSrv struct { }
var TaskSrvIns *TaskSrv
func GetTaskSrv ¶
func GetTaskSrv() *TaskSrv
func (*TaskSrv) CreateTask ¶
func (t *TaskSrv) CreateTask(ctx context.Context, req *pb.TaskRequest, resp *pb.TaskDetailResponse) (err error)
CreateTask 创建备忘录,将备忘录信息生产,放到rabbitMQ消息队列中
func (*TaskSrv) DeleteTask ¶
func (t *TaskSrv) DeleteTask(ctx context.Context, req *pb.TaskRequest, resp *pb.TaskDetailResponse) (err error)
DeleteTask 删除备忘录
func (*TaskSrv) GetTask ¶
func (t *TaskSrv) GetTask(ctx context.Context, req *pb.TaskRequest, resp *pb.TaskDetailResponse) (err error)
GetTask 获取详细的备忘录
func (*TaskSrv) GetTasksList ¶
func (t *TaskSrv) GetTasksList(ctx context.Context, req *pb.TaskRequest, resp *pb.TaskListResponse) (err error)
GetTasksList 实现备忘录服务接口 获取备忘录列表
func (*TaskSrv) UpdateTask ¶
func (t *TaskSrv) UpdateTask(ctx context.Context, req *pb.TaskRequest, resp *pb.TaskDetailResponse) (err error)
UpdateTask 修改备忘录
Click to show internal directories.
Click to hide internal directories.