repos

package
v0.0.0-...-d05a748 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalRepository

type GlobalRepository interface {
	Users() UsersRepo
}

GlobalRepository - the global repository interface

func GlobalRepo

func GlobalRepo(db *xorm.Engine) GlobalRepository

GlobalRepo - global repository function

type UsersRepo

type UsersRepo interface {
	Create(user *types.User) error
	FindById(int64) (*types.User, error)
	FindByEmail(string) (*types.User, error)
	Update(*types.User) error
}

UsersRepo - users repo interface

func NewUsersRepo

func NewUsersRepo(db *xorm.Engine) UsersRepo

NewUsersRepo - return new user repo

Directories

Path Synopsis
Package mock_repos is a generated GoMock package.
Package mock_repos is a generated GoMock package.

Jump to

Keyboard shortcuts

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