adapter

package
v0.0.0-...-9058691 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatIndex

func ChatIndex() string

func ChatKey

func ChatKey() string

func ContactListZKey

func ContactListZKey(username string) string

func DeserialiseChat

func DeserialiseChat(docs []Document) []models.Chat

func DeserialiseContactList

func DeserialiseContactList(contacts []redis.Z) []models.ContactList

func SessionKey

func SessionKey(client string) string

func UserSetKey

func UserSetKey() string

Types

type Document

type Document struct {
	ID      string `json:"_id"`
	Payload []byte `json:"payload"`
	Total   int64  `json:"total"`
}

func Deserialise

func Deserialise(res interface{}) []Document

Jump to

Keyboard shortcuts

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