worker

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle[T any] struct {
	simaqian.Logger
	// contains filtered or unexported fields
}

func NewHandle

func NewHandle[T any](param *param.Handle[T], get callback.GetConsumer[T]) *Handle[T]

func (*Handle[T]) Start

func (h *Handle[T]) Start(ctx context.Context, handler message.Handler[T]) (err error)

type Send

type Send[T any] struct {
	// contains filtered or unexported fields
}

func NewSend

func NewSend[T any](param *param.Send[T], get callback.GetProducer[T]) *Send[T]

func (*Send[T]) Do

func (s *Send[T]) Do(ctx context.Context, payload T) (id *message.Id, err error)

Jump to

Keyboard shortcuts

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