memory

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() chat.Store

New returns a new in memory chat.Store

Types

type ChatsById

type ChatsById []*chat.Chat

func (ChatsById) Len

func (a ChatsById) Len() int

func (ChatsById) Less

func (a ChatsById) Less(i, j int) bool

func (ChatsById) Swap

func (a ChatsById) Swap(i, j int)

type MessagesByTimestampAndId

type MessagesByTimestampAndId []*chat.Message

func (MessagesByTimestampAndId) Len

func (a MessagesByTimestampAndId) Len() int

func (MessagesByTimestampAndId) Less

func (a MessagesByTimestampAndId) Less(i, j int) bool

func (MessagesByTimestampAndId) Swap

func (a MessagesByTimestampAndId) Swap(i, j int)

Jump to

Keyboard shortcuts

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