db

package
v0.0.0-...-6c79d6b Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 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 Datastore

type Datastore interface {
	CreateUser(user *models.User) (*models.User, error)
	GetUser(id string) (*models.User, error)
	GetUserByEmail(email string) (*models.User, error)

	GetSession(id, owner string) (*models.Session, error)
	GetSessions(owner string, filter string) ([]*models.Session, error)

	CreateSession(session *models.Session) (*models.Session, error)
	UpdateSession(id string, info models.SessionInfo) error
	DeleteSession(id string) error
}

Datastore defines the required store methods

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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