notifs

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: LGPL-2.1, LGPL-2.1-or-later Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LBSMessage

type LBSMessage struct {
	DataStreamName string
	Info           map[string]interface{}
}

LBSMessage is the format in which the message should be written to LBS

type NotificationType

type NotificationType int

Types of notifications sent to client.

const (
	StreamAdded NotificationType = iota
	StreamDisowned
	StreamExpired
)

type RecoverableRedisNotification

type RecoverableRedisNotification[T any] struct {
	Type    NotificationType
	Payload T
}

RecoverableRedisNotification captures the type of notifications sent to client. These are captured by NotificationType enum.

func Make

func Make(value any, notifType NotificationType) RecoverableRedisNotification[any]

Jump to

Keyboard shortcuts

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