Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LBSInfo ¶ added in v0.2.0
LBSInfo contains information about a data stream in LBS. It's an internal data structure.
func CreateByKspNotification ¶ added in v0.2.0
func CreateByParts ¶ added in v0.2.0
func (*LBSInfo) FormMutexKey ¶ added in v0.2.0
type LBSInputMessage ¶ added in v0.2.0
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 struct {
Type NotificationType
Payload LBSInfo
// AdditionalInfo is an echo from any additional data seeded in LBSInputMessage
AdditionalInfo map[string]any
}
RecoverableRedisNotification captures the type of notifications sent to client. These are captured by NotificationType enum.
func Make ¶
func Make(notifType NotificationType, lbsInfo LBSInfo, additionalInfo map[string]any) RecoverableRedisNotification
Click to show internal directories.
Click to hide internal directories.