db

package
v0.0.0-...-f692fd6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStorage

type DataStorage interface {
	Close() error
	GetStatistics() (map[string]int, error)
	SetStatistics(map[string]int) error
	WasWelcomeMessageSent(id string) (bool, error)
	SetWelcomeMessageSent(id string, value bool) error
	GetGuildLang(id string) (string, error)
	SetGuildLang(id, value string) error
	DeleteGuildLang(id string) error
}

DataStorage interface defines the methods required by the bot to store data

Directories

Path Synopsis
Package bdb manages data stored about the servers The storage is performed by a Key-Value community database called Badger.
Package bdb manages data stored about the servers The storage is performed by a Key-Value community database called Badger.

Jump to

Keyboard shortcuts

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