wrappers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultTasks

func DefaultTasks(resp interface{})

DefaultTasks 降级函数

func NewTask

func NewTask(id uint64, name string) *pb.TaskModel

func NewTaskWrapper

func NewTaskWrapper(c client.Client) client.Client

NewProductWrapper 初始化Wrapper

func NewUserWrapper

func NewUserWrapper(c client.Client) client.Client

NewUserWrapper 初始化Wrapper

Types

type TaskWrapper

type TaskWrapper struct {
	client.Client
}

func (*TaskWrapper) Call

func (wrapper *TaskWrapper) Call(ctx context.Context, req client.Request, rsp interface{}, opts ...client.CallOption) error

Jump to

Keyboard shortcuts

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