queue

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 4 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
	TraceContext map[string]string
}

func (*Message) GetTraceContext added in v1.0.1

func (m *Message) GetTraceContext(ctx context.Context) context.Context

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