Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageFileRepository ¶
type ImageFileRepository interface { Create(ctx context.Context, fileName string, reader io.Reader) (*model.ImageFile, error) Delete(ctx context.Context, filePath string) error Read(ctx context.Context, filePath string) (*model.ImageFile, error) Exists(ctx context.Context, filePath string) bool ToBase64(imageFile *model.ImageFile) (string, error) }
ImageFileRepository is repository for image file model.
type LiquorKindRepository ¶
type LiquorKindRepository interface { Fetch(ctx context.Context) ([]*model.LiquorKind, error) Create(ctx context.Context, liquorKind *model.LiquorKind) (*model.LiquorKind, error) Update(ctx context.Context, liquorKind *model.LiquorKind) (*model.LiquorKind, error) Delete(ctx context.Context, id int) error }
LiquorKindRepository is repository for liquor kind model.
type LiquorRepository ¶
type LiquorRepository interface { Fetch(ctx context.Context) ([]*model.Liquor, error) Create(ctx context.Context, liquor *model.Liquor) (*model.Liquor, error) Update(ctx context.Context, liquor *model.Liquor) (*model.Liquor, error) Delete(ctx context.Context, id int) error FindByID(ctx context.Context, id uint64) (*model.Liquor, error) }
LiquorRepository is repository for liquor model.
Click to show internal directories.
Click to hide internal directories.