message_store_db

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatMessageStore added in v1.1.0

type ChatMessageStore struct {
	// contains filtered or unexported fields
}

func New

func New(conf *config.MySqlConf) (*ChatMessageStore, error)

func (*ChatMessageStore) StoreMessage added in v1.1.0

func (D *ChatMessageStore) StoreMessage(m *messages.ChatMessage) error

func (*ChatMessageStore) StoreOffline added in v1.5.0

func (D *ChatMessageStore) StoreOffline(message *messages.ChatMessage) error

type IdleChatMessageStore added in v1.5.0

type IdleChatMessageStore struct {
}

func (*IdleChatMessageStore) StoreMessage added in v1.5.0

func (i *IdleChatMessageStore) StoreMessage(message *messages.ChatMessage) error

func (*IdleChatMessageStore) StoreOffline added in v1.5.0

func (i *IdleChatMessageStore) StoreOffline(message *messages.ChatMessage) error

type IdleSubscriptionStore added in v1.5.0

type IdleSubscriptionStore struct {
}

func (*IdleSubscriptionStore) NextSegmentSequence added in v1.5.0

func (i *IdleSubscriptionStore) NextSegmentSequence(id subscription.ChanID, info subscription.ChanInfo) (int64, int64, error)

func (*IdleSubscriptionStore) StoreChannelMessage added in v1.6.0

func (i *IdleSubscriptionStore) StoreChannelMessage(ch subscription.ChanID, msg *messages.ChatMessage) error

type SubscriptionMessageStore

type SubscriptionMessageStore struct {
}

func (*SubscriptionMessageStore) NextSegmentSequence added in v1.5.0

func (c *SubscriptionMessageStore) NextSegmentSequence(id subscription.ChanID, info subscription.ChanInfo) (int64, int64, error)

func (*SubscriptionMessageStore) StoreChannelMessage added in v1.6.0

func (c *SubscriptionMessageStore) StoreChannelMessage(ch subscription.ChanID, msg *messages.ChatMessage) error

Jump to

Keyboard shortcuts

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