gateway

package
v0.0.0-...-6e899b3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	gorm.Model
	Name  string `gorm:"size:20;not null"`
	Email string `gorm:"size:100;not null"`
	Age   int    `gorm:"type:smallint"`
}

type UserRepository

type UserRepository struct {
	Conn *gorm.DB
}

func (*UserRepository) FindAll

func (r *UserRepository) FindAll() (d []domain.User, err error)

func (*UserRepository) FindByName

func (r *UserRepository) FindByName(name string) (d []domain.User, err error)

func (*UserRepository) Store

func (r *UserRepository) Store(u domain.User) (id int, err error)

Jump to

Keyboard shortcuts

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