Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Migrate(ctx context.Context, models interface{}) (bool, error) Create(ctx context.Context, models interface{}) (interface{}, error) GetRows(ctx context.Context, models interface{}) (interface{}, error) Get(ctx context.Context, models interface{}, fields map[string]interface{}) (interface{}, error) GetAll(ctx context.Context, models interface{}) (interface{}, error) First(ctx context.Context, models interface{}, id string) (interface{}, error) FindAll(ctx context.Context, models interface{}, query string) (interface{}, error) Update(ctx context.Context, models interface{}, id string, fields map[string]interface{}) (bool, error) Updates(ctx context.Context, model, updaded interface{}) error Delete(ctx context.Context, models interface{}, id string) (bool, error) }
Generic repo for our differents models
Click to show internal directories.
Click to hide internal directories.