persistence

package
v0.0.0-...-b5cca38 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Persistence

type Persistence interface {
	InsertBucket(chatID int64, name string) error
	UpdateDefaultBucket(chatID int64, bucketName string) error
	GetDefaultBucket(chatID int64) (string, error)
	Exists(chatID int64, bucketName string) (bool, error)
	DefaultWasSet(chatID int64) (bool, error)
	DeleteBucket(chatID int64, name string) error
	GetAllBuckets(chatID int64) ([]domain.Bucket, error)
	InsertOption(chatID int64, bucketName string, option domain.Option) error
	ReadAllOptions(chatID int64, bucketName string) ([]domain.Option, error)
	DeleteOption(chatID int64, bucketName string, optionIdx int64) ([]domain.Option, error)
}

Persistence abstraction for databases

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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