queue

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer added in v0.8.0

type Consumer interface {
	StartListen(ctx context.Context, handler HandlerFunc)
}

type HandlerFunc added in v0.8.0

type HandlerFunc func(ctx context.Context, messages []*Message) error

type Message added in v0.3.0

type Message struct {
	Value       []byte
	Time        time.Time
	WorkspaceID string
}

type Producer added in v0.8.0

type Producer interface {
	Enqueue(ctx context.Context, message *Message) error
}

type Queue added in v0.3.0

type Queue interface {
	Producer
	Consumer
	Stats() map[string]interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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