store

package
v0.0.0-...-ec1f225 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package store contains store abstraction.

Index

Constants

This section is empty.

Variables

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

ErrNotFound it returned when there are no results in the query.

Functions

This section is empty.

Types

type Users

type Users interface {
	FindByID(ctx context.Context, id string) (*model.User, error)
	FindByEmail(ctx context.Context, email string) (*model.User, error)
	Insert(ctx context.Context, user *model.User) error
}

Users ...

Directories

Path Synopsis
Package pgstore contains PostgreSQL store implementation.
Package pgstore contains PostgreSQL store implementation.

Jump to

Keyboard shortcuts

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