repository

package
v0.0.0-...-a03fb21 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionRepository

type SessionRepository interface {
	GetAllByUser(u *model.User) ([]*model.Session, error)
	GetByID(id uint) (*model.Session, error)
	GetByUuid(uuid string) (*model.Session, error)
	Store(s *model.Session) (uint, error)
	Delete(id uint) (bool, error)
}

type UserRepository

type UserRepository interface {
	//Fetch(cursor string, num int64) ([]*model.User, error)
	GetAll() ([]*model.User, error)
	GetByID(id uint) (*model.User, error)
	GetByEmail(email string) (*model.User, error)
	Update(u *model.User) (*model.User, error)
	Store(u *model.User) (uint, error)
	Delete(id uint) (bool, error)
}

Directories

Path Synopsis
GORM-based implementation of Session Repository GORM-based implementation of User Repository
GORM-based implementation of Session Repository GORM-based implementation of User Repository

Jump to

Keyboard shortcuts

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