queue

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "push.queue"

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	IgnoreAccountId string `json:"ignoreAccountId"`
	KeyId           string
	Payload         []byte
	Signature       []byte
	Topics          []domain.Topic `json:"topics"`
}

type Queue

type Queue interface {
	Add(ctx context.Context, msg Message) error
	Consume(ctx context.Context, handle func(msg Message) error) error
	app.ComponentRunnable
}

func New

func New() Queue

Directories

Path Synopsis
Package mock_queue is a generated GoMock package.
Package mock_queue is a generated GoMock package.

Jump to

Keyboard shortcuts

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