bizchesed

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(
	NewChesed,
	NewImageCache,
)

Functions

func NewImageCache

func NewImageCache(
	store libcache.Store,
) *libcache.Map[model.InternalID, modelchesed.Image]

Types

type Chesed

type Chesed struct {
	// contains filtered or unexported fields
}

func (*Chesed) DownloadImage added in v0.1.4

func (c *Chesed) DownloadImage(ctx context.Context, id model.InternalID) (string, *errors.Error)

func (*Chesed) ListImages added in v0.1.4

func (c *Chesed) ListImages(ctx context.Context, paging model.Paging) ([]model.InternalID, int64, *errors.Error)

func (*Chesed) ScanImage added in v0.1.4

func (c *Chesed) ScanImage(ctx context.Context)

func (*Chesed) SearchImages added in v0.1.4

func (c *Chesed) SearchImages(ctx context.Context, paging model.Paging, keywords string) (
	[]model.InternalID, *errors.Error)

func (*Chesed) UploadImage

func (c *Chesed) UploadImage(ctx context.Context, image modelchesed.Image,
	metadata modelbinah.FileMetadata) (string, *errors.Error)

func (*Chesed) UploadImageCallback added in v0.1.4

func (c *Chesed) UploadImageCallback(ctx context.Context, id model.InternalID) error

Jump to

Keyboard shortcuts

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