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 tokens.RepositoryToken) Repository Close() error }
type Repository ¶
type Repository interface { Insert(entity interface{}) (interface{}, error) Latest() (interface{}, error) UpdateById(id string, update interface{}) (interface{}, error) Find(order constants.SortOrder, pagination *entities.Pagination) (int, []interface{}, error) FindOneById(id string) (interface{}, error) FindOneBy(criteria map[string]interface{}) (interface{}, error) FindAll() ([]interface{}, error) DeleteById(id string) error DeleteBy(field string, operator constants.ComparisonOperator, value interface{}) error }
type SearchInterface ¶
type SearchInterface interface { Update(id string, data interface{}) error Delete(entityName, entityId string) error Search(entityDefinition interface{}, query string, count, offset int) ([]interface{}, error) SearchWithPagination(entityDefinition interface{}, query string, count, offset int) ([]interface{}, int, error) }
Click to show internal directories.
Click to hide internal directories.