repository

package
v0.0.0-...-7f3b7f6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository interface {
	Get(ctx context.Context) ([]model.User, error)
	GetByEmail(ctx context.Context, email string) (model.User, error)
	Save(ctx context.Context, user *model.User) (int64, error)
	Update(ctx context.Context, id int64, user *model.User) (int64, error)
	Delete(ctx context.Context, id int64) (int64, error)
}

func NewUserRepository

func NewUserRepository(db *sql.DB) UserRepository

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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