Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { GetRepositoryByToken(token string) Repository Close() error }
type Persistable ¶
type Persistable interface {
GetRepositoryToken() string
}
type Repository ¶
type Repository interface { Insert(entity interface{}) (interface{}, error) Latest() (interface{}, error) UpdateById(id string, update interface{}) (interface{}, error) GetNumberOfRows() (int, error) Find(order constants.SortOrder, count, offset int) (int, []interface{}, error) FindOneById(id string) (interface{}, error) FindOneBy(criteria map[string]interface{}) (interface{}, error) FindAll() ([]interface{}, error) FindByIds(ids ...string) ([]interface{}, error) DeleteById(id string) error DeleteBy(field string, operator constants.ComparisonOperator, value interface{}) error }
Click to show internal directories.
Click to hide internal directories.