sqlitestorage

package
v0.0.0-...-bb896f4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 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 SQLiteStorage

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

SQLiteStorage is a SQLite implementation of a storage.

func New

func New(storageConfig botconfig.StorageConfig) (*SQLiteStorage, error)

New creates a new SQLiteStorage

func (*SQLiteStorage) Connect

func (s *SQLiteStorage) Connect() error

Connect to the SQLite DB or create it if it does not exist

func (*SQLiteStorage) DeleteQuotesPluginQuote

func (b *SQLiteStorage) DeleteQuotesPluginQuote(botID, pluginID, identifier string) error

DeleteQuotesPluginQuote deletes a QuotesPluginQuote.

func (*SQLiteStorage) DeleteRssPluginSubscription

func (b *SQLiteStorage) DeleteRssPluginSubscription(botID, pluginID, identifier string) error

DeleteRssPluginSubscription deletes a RssPluginSubscription.

func (*SQLiteStorage) GetCustomCommandsPluginCommands

func (b *SQLiteStorage) GetCustomCommandsPluginCommands(botID, pluginID, identifier string) (storagemodels.CustomCommandsPluginCommands, error)

GetCustomCommandsPluginCommands returns CustomCommandsPluginCommands.

func (*SQLiteStorage) GetQuotesPluginQuote

func (b *SQLiteStorage) GetQuotesPluginQuote(botID, pluginID, identifier string) (storagemodels.QuotesPluginQuote, error)

GetQuotesPluginQuote returns a QuotesPluginQuote.

func (*SQLiteStorage) GetQuotesPluginQuotesList

func (b *SQLiteStorage) GetQuotesPluginQuotesList(botID, pluginID, identifier string) (storagemodels.QuotesPluginQuotesList, error)

GetQuotesPluginQuotesList returns a QuotesPluginQuotesList.

func (*SQLiteStorage) GetRssPluginSubscriptions

func (b *SQLiteStorage) GetRssPluginSubscriptions(botID, pluginID string) (storagemodels.RssPluginSubscriptions, error)

GetRssPluginSubscriptions returns a RssPluginSubscriptions.

func (*SQLiteStorage) GetTimedMessagesPluginMessages

func (b *SQLiteStorage) GetTimedMessagesPluginMessages(botID, pluginID, identifier string) (storagemodels.TimedMessagesPluginMessages, error)

GetTimedMessagesPluginMessages returns a TimedMessagesPluginMessages.

func (*SQLiteStorage) StoreArchivePluginMessage

func (b *SQLiteStorage) StoreArchivePluginMessage(botID, pluginID, identifier string, data storagemodels.ArchivePluginMessage) error

StoreArchivePluginMessage stores data for ArchivePlugin

func (*SQLiteStorage) StoreCustomCommandsPluginCommands

func (b *SQLiteStorage) StoreCustomCommandsPluginCommands(botID, pluginID, identifier string, data storagemodels.CustomCommandsPluginCommands) error

StoreCustomCommandsPluginCommands stores data for CustomCommandsPlugin

func (*SQLiteStorage) StoreQuotesPluginQuote

func (b *SQLiteStorage) StoreQuotesPluginQuote(botID, pluginID, identifier string, data storagemodels.QuotesPluginQuote) error

StoreQuotesPluginQuote takes a QuotesPluginQuote and stores it.

func (*SQLiteStorage) StoreQuotesPluginQuotesList

func (b *SQLiteStorage) StoreQuotesPluginQuotesList(botID, pluginID, identifier string, data storagemodels.QuotesPluginQuotesList) error

StoreQuotesPluginQuotesList takes a QuotesPluginQuotesList and stores it.

func (*SQLiteStorage) StoreRssPluginSubscription

func (b *SQLiteStorage) StoreRssPluginSubscription(botID, pluginID, identifier string, data storagemodels.RssPluginSubscription) error

StoreRssPluginSubscription takes a RssPluginSubscription and stores it.

func (*SQLiteStorage) StoreTimedMessagesPluginMessages

func (b *SQLiteStorage) StoreTimedMessagesPluginMessages(botID, pluginID, identifier string, data storagemodels.TimedMessagesPluginMessages) error

StoreTimedMessagesPluginMessages stores data for TimedMessagesPlugin

func (*SQLiteStorage) UpdateRssPluginSubscription

func (b *SQLiteStorage) UpdateRssPluginSubscription(botID, pluginID, identifier string, data storagemodels.RssPluginSubscription) error

UpdateRssPluginSubscription takes a RssPluginSubscription and updates it.

Jump to

Keyboard shortcuts

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