queue

package
v0.0.1-alpha-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Data []byte `json:"data"`
	// contains filtered or unexported fields
}

func (*Message) Ack

func (m *Message) Ack(ctx context.Context) error

type Queue

type Queue interface {
	Publish(ctx context.Context, msg *Message) error
	Subscribe(ctx context.Context, ch chan *Message) error
	Unsubscribe(ctx context.Context) error
	StreamName() string
	Subject() string
}

func NewQueue

func NewQueue(
	streamName string,
	subject string,
	config config.Configuration,
	instance instance.Instance,
) (Queue, error)

NewQueue initializes the queue client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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