Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericRepo ¶
type GenericRepo[E model.Entity] interface { Create(context.Context, E) (*E, error) Update(context.Context, E) (*E, error) Delete(context.Context, string) error GetByStringField(ctx context.Context, fieldName, fieldValue string) (*E, error) List(context.Context) ([]E, error) Exist(ctx context.Context, ID string) (bool, error) }
type GenericRepoFactory ¶
type GenericRepoFactory[E model.Entity] interface { NewGenericRepo(tx tx.TX) GenericRepo[E] }
Click to show internal directories.
Click to hide internal directories.