repository

package
v0.0.0-...-3eef48c Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 3 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 {
	Save(*domain.User) shared.Output
	Delete(*domain.User) shared.Output
	FindByID(uint) shared.Output
	FindAll(*shared.Parameters) shared.Output
	Count(*shared.Parameters) shared.Output
}

UserRepository interface

type UserRepositoryGorm

type UserRepositoryGorm struct {
	// contains filtered or unexported fields
}

UserRepositoryGorm struct

func NewUserRepositoryGorm

func NewUserRepositoryGorm(db *gorm.DB) *UserRepositoryGorm

NewUserRepositoryGorm function

func (*UserRepositoryGorm) Delete

func (r *UserRepositoryGorm) Delete(user *domain.User) shared.Output

Delete function

func (*UserRepositoryGorm) Save

func (r *UserRepositoryGorm) Save(user *domain.User) shared.Output

Save function

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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