repository

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CategoryRepository

type CategoryRepository struct {
	Core *core.Core
}

func NewCategoryRepository

func NewCategoryRepository(c *core.Core) *CategoryRepository

func (*CategoryRepository) Create added in v1.1.0

func (r *CategoryRepository) Create(ctx context.Context, category *model.Category) (err error)

func (*CategoryRepository) GetAll added in v1.1.0

func (r *CategoryRepository) GetAll(ctx context.Context) (res []model.Category, err error)

func (*CategoryRepository) GetByID

func (r *CategoryRepository) GetByID(ctx context.Context, id uint) (res model.Category, err error)

func (*CategoryRepository) Update added in v1.1.0

func (r *CategoryRepository) Update(ctx context.Context, category *model.Category) (err error)

type FastingRepository

type FastingRepository struct {
	Core *core.Core
}

func NewFastingRepository

func NewFastingRepository(c *core.Core) *FastingRepository

func (*FastingRepository) Create added in v1.1.0

func (r *FastingRepository) Create(ctx context.Context, fasting *model.Fasting) (err error)

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

func (r *FastingRepository) GetByDateAndType(ctx context.Context, date string, typeId uint) (res model.Fasting, err error)

func (*FastingRepository) GetByID added in v1.1.0

func (r *FastingRepository) GetByID(ctx context.Context, id uint) (res model.Fasting, err error)

func (*FastingRepository) Update added in v1.1.0

func (r *FastingRepository) Update(ctx context.Context, fasting *model.Fasting) (err error)

type SourceRepository

type SourceRepository struct {
	Core *core.Core
}

func NewSourceRepository

func NewSourceRepository(c *core.Core) *SourceRepository

func (*SourceRepository) Create added in v1.1.0

func (r *SourceRepository) Create(ctx context.Context, source *model.Source) (err error)

func (*SourceRepository) GetAll added in v1.1.0

func (r *SourceRepository) GetAll(ctx context.Context) (res []model.Source, err error)

func (*SourceRepository) GetByID added in v1.1.0

func (r *SourceRepository) GetByID(ctx context.Context, id uint) (res model.Source, err error)

func (*SourceRepository) Update added in v1.1.0

func (r *SourceRepository) Update(ctx context.Context, source *model.Source) (err error)

type TypesRepository

type TypesRepository struct {
	Core *core.Core
}

func NewTypesRepository

func NewTypesRepository(c *core.Core) *TypesRepository

func (*TypesRepository) Create added in v1.1.0

func (r *TypesRepository) Create(ctx context.Context, types *model.Type) (err error)

func (*TypesRepository) GetAll added in v1.1.0

func (r *TypesRepository) GetAll(ctx context.Context) (res []model.Type, err error)

func (*TypesRepository) GetByID

func (r *TypesRepository) GetByID(ctx context.Context, id uint) (res model.Type, err error)

func (*TypesRepository) Update added in v1.1.0

func (r *TypesRepository) Update(ctx context.Context, types *model.Type) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL