mgorepo

package
v0.0.0-...-3215105 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MGORepository

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

func New

func New(session *mgo.Session, dbName string) (repo *MGORepository, err error)

New creates new MGORepository

func (*MGORepository) Count

func (m *MGORepository) Count(req interface{}) (count int, err *dberrors.Error)

func (*MGORepository) Create

func (m *MGORepository) Create(req interface{}) (dbErr *dberrors.Error)

func (*MGORepository) Delete

func (m *MGORepository) Delete(req, where interface{}) (dbErr *dberrors.Error)

func (*MGORepository) Get

func (m *MGORepository) Get(req interface{}) (res interface{}, dbErr *dberrors.Error)

func (*MGORepository) List

func (m *MGORepository) List(
	req interface{},
) (res []interface{}, dbErr *dberrors.Error)

func (*MGORepository) ListWithParams

func (m *MGORepository) ListWithParams(
	req interface{}, listParameters *repository.ListParameters,
) (res []interface{}, dbErr *dberrors.Error)

func (*MGORepository) Patch

func (m *MGORepository) Patch(req, where interface{}) (dbErr *dberrors.Error)

func (*MGORepository) Update

func (m *MGORepository) Update(req interface{}) (dbErr *dberrors.Error)

Jump to

Keyboard shortcuts

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