queue

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotSupport = errors.New("not support")

Functions

This section is empty.

Types

type CallOptions

type CallOptions func(interface{})

type ConsumeHandle

type ConsumeHandle func(ctx context.Context, key, value []byte) error

func (ConsumeHandle) Consume

func (ch ConsumeHandle) Consume(ctx context.Context, k, v []byte) error

type Consumer

type Consumer interface {
	Consume(ctx context.Context, key, value []byte) error
}

type Pusher

type Pusher interface {
	io.Closer
	Push(ctx context.Context, key, body []byte, opts ...CallOptions) (interface{}, error)
	Name() string
}

Jump to

Keyboard shortcuts

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