Documentation
¶
Index ¶
- type CategoryRepository
- func (r *CategoryRepository) Create(ctx context.Context, category *model.Category) (err error)
- func (r *CategoryRepository) GetAll(ctx context.Context) (res []model.Category, err error)
- func (r *CategoryRepository) GetByID(ctx context.Context, id uint) (res model.Category, err error)
- func (r *CategoryRepository) Update(ctx context.Context, category *model.Category) (err error)
- type FastingRepository
- func (r *FastingRepository) Create(ctx context.Context, fasting *model.Fasting) (err error)
- func (r *FastingRepository) GetAll(ctx context.Context, req *requests.FastingRequest) (res []model.Fasting, err error)
- func (r *FastingRepository) GetByDateAndType(ctx context.Context, date string, typeId uint) (res model.Fasting, err error)
- func (r *FastingRepository) GetByID(ctx context.Context, id uint) (res model.Fasting, err error)
- func (r *FastingRepository) Update(ctx context.Context, fasting *model.Fasting) (err error)
- type SourceRepository
- func (r *SourceRepository) Create(ctx context.Context, source *model.Source) (err error)
- func (r *SourceRepository) GetAll(ctx context.Context) (res []model.Source, err error)
- func (r *SourceRepository) GetByID(ctx context.Context, id uint) (res model.Source, err error)
- func (r *SourceRepository) Update(ctx context.Context, source *model.Source) (err error)
- type TypesRepository
- func (r *TypesRepository) Create(ctx context.Context, types *model.Type) (err error)
- func (r *TypesRepository) GetAll(ctx context.Context) (res []model.Type, err error)
- func (r *TypesRepository) GetByID(ctx context.Context, id uint) (res model.Type, err error)
- func (r *TypesRepository) Update(ctx context.Context, types *model.Type) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryRepository ¶
func NewCategoryRepository ¶
func NewCategoryRepository(c *core.Core) *CategoryRepository
type FastingRepository ¶
func NewFastingRepository ¶
func NewFastingRepository(c *core.Core) *FastingRepository
func (*FastingRepository) GetAll ¶ added in v1.1.0
func (r *FastingRepository) GetAll(ctx context.Context, req *requests.FastingRequest) (res []model.Fasting, err error)
func (*FastingRepository) GetByDateAndType ¶ added in v1.1.0
type SourceRepository ¶
func NewSourceRepository ¶
func NewSourceRepository(c *core.Core) *SourceRepository
type TypesRepository ¶
func NewTypesRepository ¶
func NewTypesRepository(c *core.Core) *TypesRepository
Click to show internal directories.
Click to hide internal directories.