Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyMapPersistenceFixture ¶
type DummyMapPersistenceFixture struct {
// contains filtered or unexported fields
}
func NewDummyMapPersistenceFixture ¶
func NewDummyMapPersistenceFixture(persistence IDummyMapPersistence) *DummyMapPersistenceFixture
func (*DummyMapPersistenceFixture) TestBatchOperations ¶
func (c *DummyMapPersistenceFixture) TestBatchOperations(t *testing.T)
func (*DummyMapPersistenceFixture) TestCrudOperations ¶
func (c *DummyMapPersistenceFixture) TestCrudOperations(t *testing.T)
type DummyPage ¶
type DummyPage struct { Total *int64 `bson:"total" json:"total"` Data []Dummy `bson:"data" json:"data"` }
func NewDummyPage ¶
func NewEmptyDummyPage ¶
func NewEmptyDummyPage() *DummyPage
type DummyPersistenceFixture ¶
type DummyPersistenceFixture struct {
// contains filtered or unexported fields
}
func NewDummyPersistenceFixture ¶
func NewDummyPersistenceFixture(persistence IDummyPersistence) *DummyPersistenceFixture
func (*DummyPersistenceFixture) TestBatchOperations ¶
func (c *DummyPersistenceFixture) TestBatchOperations(t *testing.T)
func (*DummyPersistenceFixture) TestCrudOperations ¶
func (c *DummyPersistenceFixture) TestCrudOperations(t *testing.T)
func (*DummyPersistenceFixture) TestRandomOperation ¶ added in v1.2.6
func (c *DummyPersistenceFixture) TestRandomOperation(t *testing.T)
type DummyRefPage ¶
type DummyRefPage struct { Total *int64 `bson:"total" json:"total"` Data []*Dummy `bson:"data" json:"data"` }
func NewDummyRefPage ¶
func NewDummyRefPage(total *int64, data []*Dummy) *DummyRefPage
func NewEmptyDummyRefPage ¶
func NewEmptyDummyRefPage() *DummyRefPage
type DummyRefPersistenceFixture ¶
type DummyRefPersistenceFixture struct {
// contains filtered or unexported fields
}
func NewDummyRefPersistenceFixture ¶
func NewDummyRefPersistenceFixture(persistence IDummyRefPersistence) *DummyRefPersistenceFixture
func (*DummyRefPersistenceFixture) TestBatchOperations ¶
func (c *DummyRefPersistenceFixture) TestBatchOperations(t *testing.T)
func (*DummyRefPersistenceFixture) TestCrudOperations ¶
func (c *DummyRefPersistenceFixture) TestCrudOperations(t *testing.T)
type IDummyMapPersistence ¶
type IDummyMapPersistence interface { GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (page *MapPage, err error) GetListByIds(correlationId string, ids []string) (items []map[string]interface{}, err error) GetOneById(correlationId string, id string) (item map[string]interface{}, err error) Create(correlationId string, item map[string]interface{}) (result map[string]interface{}, err error) Update(correlationId string, item map[string]interface{}) (result map[string]interface{}, err error) Set(correlationId string, item map[string]interface{}) (result map[string]interface{}, err error) UpdatePartially(correlationId string, id string, data *cdata.AnyValueMap) (item map[string]interface{}, err error) DeleteById(correlationId string, id string) (item map[string]interface{}, err error) DeleteByIds(correlationId string, ids []string) (err error) GetCountByFilter(correlationId string, filter *cdata.FilterParams) (count int64, err error) }
extends IGetter<DummyMap, String>, IWriter<DummyMap, String>, IPartialUpdater<DummyMap, String> {
type IDummyPersistence ¶
type IDummyPersistence interface { GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (page *DummyPage, err error) GetListByIds(correlationId string, ids []string) (items []Dummy, err error) GetOneById(correlationId string, id string) (item Dummy, err error) Create(correlationId string, item Dummy) (result Dummy, err error) Update(correlationId string, item Dummy) (result Dummy, err error) Set(correlationId string, item Dummy) (result Dummy, err error) UpdatePartially(correlationId string, id string, data *cdata.AnyValueMap) (item Dummy, err error) DeleteById(correlationId string, id string) (item Dummy, err error) DeleteByIds(correlationId string, ids []string) (err error) GetCountByFilter(correlationId string, filter *cdata.FilterParams) (count int64, err error) GetOneRandom(correlationId string) (item Dummy, err error) }
extends IGetter<Dummy, String>, IWriter<Dummy, String>, IPartialUpdater<Dummy, String> {
type IDummyRefPersistence ¶
type IDummyRefPersistence interface { GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (page *DummyRefPage, err error) GetListByIds(correlationId string, ids []string) (items []*Dummy, err error) GetOneById(correlationId string, id string) (item *Dummy, err error) Create(correlationId string, item *Dummy) (result *Dummy, err error) Update(correlationId string, item *Dummy) (result *Dummy, err error) Set(correlationId string, item *Dummy) (result *Dummy, err error) UpdatePartially(correlationId string, id string, data *cdata.AnyValueMap) (item *Dummy, err error) DeleteById(correlationId string, id string) (item *Dummy, err error) DeleteByIds(correlationId string, ids []string) (err error) GetCountByFilter(correlationId string, filter *cdata.FilterParams) (count int64, err error) }
extends IGetter<Dummy, String>, IWriter<Dummy, String>, IPartialUpdater<Dummy, String> {
Click to show internal directories.
Click to hide internal directories.