store

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdleMessageStore

type IdleMessageStore struct {
}

func (*IdleMessageStore) StoreMessage

func (i *IdleMessageStore) StoreMessage(*messages.ChatMessage) error

type MessageStore

type MessageStore interface {

	// StoreMessage stores chat message to database
	StoreMessage(message *messages.ChatMessage) error
}

MessageStore is a store for messages, used to store chat messages in messaging.Interface, its many be called multiple times, but only the last updates will be stored.

type SubscriptionStore

type SubscriptionStore interface {

	// StoreMessage stores a published message.
	StoreMessage(ch subscription.ChanID, msg subscription.Message) error
}

Jump to

Keyboard shortcuts

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