Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_test_example_proto protoreflect.FileDescriptor
Functions ¶
func RegisterUserTaskServer ¶ added in v1.0.12
func RegisterUserTaskServer(mux *asynq.ServeMux, srv UserTaskServer)
Types ¶
type CreateUserPayload ¶
type CreateUserPayload struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CreateUserPayload) Descriptor
deprecated
func (*CreateUserPayload) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserPayload.ProtoReflect.Descriptor instead.
func (*CreateUserPayload) GetName ¶
func (x *CreateUserPayload) GetName() string
func (*CreateUserPayload) ProtoMessage ¶
func (*CreateUserPayload) ProtoMessage()
func (*CreateUserPayload) ProtoReflect ¶
func (x *CreateUserPayload) ProtoReflect() protoreflect.Message
func (*CreateUserPayload) Reset ¶
func (x *CreateUserPayload) Reset()
func (*CreateUserPayload) String ¶
func (x *CreateUserPayload) String() string
type UpdateUserPayload ¶
type UpdateUserPayload struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserPayload) Descriptor
deprecated
func (*UpdateUserPayload) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserPayload.ProtoReflect.Descriptor instead.
func (*UpdateUserPayload) GetName ¶
func (x *UpdateUserPayload) GetName() string
func (*UpdateUserPayload) ProtoMessage ¶
func (*UpdateUserPayload) ProtoMessage()
func (*UpdateUserPayload) ProtoReflect ¶
func (x *UpdateUserPayload) ProtoReflect() protoreflect.Message
func (*UpdateUserPayload) Reset ¶
func (x *UpdateUserPayload) Reset()
func (*UpdateUserPayload) String ¶
func (x *UpdateUserPayload) String() string
type UserTaskClient ¶ added in v1.0.12
type UserTaskClient interface { CreateUser(ctx context.Context, req *CreateUserPayload, opts ...asynq.Option) (info *asynq.TaskInfo, span oteltrace.Span, err error) UpdateUser(ctx context.Context, req *UpdateUserPayload, opts ...asynq.Option) (info *asynq.TaskInfo, span oteltrace.Span, err error) }
func NewUserTaskClient ¶ added in v1.0.12
func NewUserTaskClient(client *asynq.Client) UserTaskClient
type UserTaskClientImpl ¶ added in v1.0.12
type UserTaskClientImpl struct {
// contains filtered or unexported fields
}
func (*UserTaskClientImpl) CreateUser ¶ added in v1.0.12
func (*UserTaskClientImpl) UpdateUser ¶ added in v1.0.12
type UserTaskServer ¶ added in v1.0.12
type UserTaskServer interface { CreateUser(context.Context, *CreateUserPayload) error UpdateUser(context.Context, *UpdateUserPayload) error }
Click to show internal directories.
Click to hide internal directories.