Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RecordNotFound = errors.New("record not found")
View Source
var TransitionNotApplicable = errors.New("cannot transition to the given status")
Functions ¶
This section is empty.
Types ¶
type BaseRepo ¶
type BaseRepo interface { Searchable Updatable Saveable Creatable Removable CanFindByID CanCreateOrUpdate }
type CanCreateOrUpdate ¶
type CanFindByID ¶
type PreloadField ¶
type PreloadField struct { FieldName string Conditions []interface{} }
func NewPreloadField ¶
func NewPreloadField(fieldName string, conditions ...interface{}) PreloadField
type Searchable ¶
type Searchable interface { Search(ctx context.Context, val interface{}, f filter.Filter, preloadFields ...string) error SearchWithPreloadCondition(ctx context.Context, val interface{}, f filter.Filter, preloadFields ...PreloadField) error SearchAndCount(ctx context.Context, val interface{}, f filter.Filter, preloadFields ...string) (int64, error) }
Click to show internal directories.
Click to hide internal directories.