Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity interface { Validate() error Primary() (interface{}, []interface{}) }
RootRepository ...
type ReadRepository ¶
RootRepository ...
type RootRepository ¶
RootRepository ...
func NewRootRepository ¶
func NewRootRepository(ctx *gin.Context, ent Entity) *RootRepository
NewRootRepository creates new RootRepository
func (*RootRepository) Create ¶
func (r *RootRepository) Create(ent Entity) error
Create returns inserted entity if no error
func (*RootRepository) Delete ¶
func (r *RootRepository) Delete(ent Entity) error
func (*RootRepository) GetByPrimary ¶
func (r *RootRepository) GetByPrimary(ent Entity) error
GetByPrimary ...
func (*RootRepository) UpdateByPrimary ¶
func (r *RootRepository) UpdateByPrimary(ent Entity) error
type UpdateRepository ¶
RootRepository ...
Click to show internal directories.
Click to hide internal directories.