gormrepo

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGormModels

func CheckGormModels(db *gorm.DB, c *jsonapi.Controller, models ...interface{}) error

Types

type GORMRepository

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

func New

func New(db *gorm.DB) (*GORMRepository, error)

func (*GORMRepository) Create

func (g *GORMRepository) Create(scope *jsonapi.Scope) *unidb.Error

func (*GORMRepository) Delete

func (g *GORMRepository) Delete(scope *jsonapi.Scope) *unidb.Error

func (*GORMRepository) Get

func (g *GORMRepository) Get(scope *jsonapi.Scope) *unidb.Error

func (*GORMRepository) List

func (g *GORMRepository) List(scope *jsonapi.Scope) *unidb.Error

func (*GORMRepository) Patch

func (g *GORMRepository) Patch(scope *jsonapi.Scope) *unidb.Error

Jump to

Keyboard shortcuts

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