repository

package
v0.0.0-...-920ada6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserRepository

func NewUserRepository() user.Repository

NewUserRepository will create new an UserRepository object representation of user.Repository interface

Types

type UserRepository

type UserRepository struct {
}

UserRepository repository

func (*UserRepository) GetByID

func (r *UserRepository) GetByID(id string) (data interface{}, err error)

GetByID will get data by ID

func (*UserRepository) Save

func (r *UserRepository) Save(user *model.User) error

Save will create user

Jump to

Keyboard shortcuts

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