queue

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 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         `json:"keyId"`
	Payload         []byte         `json:"payload"`
	Signature       []byte         `json:"signature"`
	Topics          []domain.Topic `json:"topics"`
	Created         time.Time      `json:"created"`
	GroupId         string         `json:"groupId"`
	Silent          bool           `json:"silent"`
}

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