db

package
v0.0.0-...-d3f3b49 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore interface {
	GetServerConfiguration(guildID string) (models.GuildConfig, error)
	GetAllServerConfigs() ([]*models.GuildConfig, error)
	AddServer(models.GuildConfig) error
	UpdateServer(models.GuildConfig) error
}

func NewSqliteStore

func NewSqliteStore(filePath string) (DataStore, error)

todo: use proper logging once it exists

Jump to

Keyboard shortcuts

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