cml04-falcon-ui/storage/storage.go

41 lines
1.1 KiB
Go
Raw Normal View History

2024-10-04 20:02:51 +02:00
package storage
2024-10-06 04:55:38 +02:00
import (
"context"
"git.espin.casa/albert/cml04-falcon-ui/types"
)
type Storager interface {
Barcode(ctx context.Context, reading string) (barcode *types.Barcode, err error)
ListBarcode(ctx context.Context, lb types.LoadingBed, inicio, final string) (barcodes []types.Barcode, err error)
Bundle(ctx context.Context, ua string) (bundle *types.BundleData, err error)
ListBundle(ctx context.Context)
}
2024-10-04 20:02:51 +02:00
type storage struct{}
2024-10-06 04:55:38 +02:00
// ListBundle implements Storager.
func (s *storage) ListBundle(ctx context.Context) {
panic("unimplemented")
}
// Bundle implements Storager.
func (s *storage) Bundle(ctx context.Context, ua string) (bundle *types.BundleData, err error) {
panic("unimplemented")
}
// ListBarcode implements Storager.
func (s *storage) ListBarcode(ctx context.Context, lb types.LoadingBed, inicio string, final string) (barcodes []types.Barcode, err error) {
panic("unimplemented")
}
// Barcode implements Storager.
func (s *storage) Barcode(ctx context.Context, reading string) (barcode *types.Barcode, err error) {
panic("unimplemented")
}
2024-10-04 20:02:51 +02:00
func New() Storager {
return &storage{}
}