store

package
v0.0.0-...-76f7c0c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyIdentifier   = "Key"
	ValueIdentifier = "Value"
)

Variables

View Source
var (
	KeyNotFoundError = errors.New("key not found")
)

Functions

This section is empty.

Types

type DatabaseRepository

type DatabaseRepository interface {
	GetAllUsers() ([]*models.User, error)
	GetUserByEmail(string) (*models.User, error)
	InsertUser(user *models.User) error
	UpdateUserQRSecret(email, secret string) error
}

type KeyValue

type KeyValue interface {
	Get(key string) (interface{}, error)
	Put(*models.KeyValuePair) error
	Delete(key string) error
	GetAll() ([]*models.KeyValuePair, error)
	PutMany([]*models.KeyValuePair) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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