Documentation ¶
Index ¶
- type MGORepository
- func (m *MGORepository) Count(req interface{}) (count int, err *dberrors.Error)
- func (m *MGORepository) Create(req interface{}) (dbErr *dberrors.Error)
- func (m *MGORepository) Delete(req, where interface{}) (dbErr *dberrors.Error)
- func (m *MGORepository) Get(req interface{}) (res interface{}, dbErr *dberrors.Error)
- func (m *MGORepository) List(req interface{}) (res []interface{}, dbErr *dberrors.Error)
- func (m *MGORepository) ListWithParams(req interface{}, listParameters *repository.ListParameters) (res []interface{}, dbErr *dberrors.Error)
- func (m *MGORepository) Patch(req, where interface{}) (dbErr *dberrors.Error)
- func (m *MGORepository) Update(req interface{}) (dbErr *dberrors.Error)
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)
Click to show internal directories.
Click to hide internal directories.