repository

package
v0.0.0-...-0588a84 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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