warehouse

package module
v0.0.0-...-8d2886a Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Warehouse

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

Warehouse - склад бинарных картинок Odin: Картинки хранятся не в Асгарде, а на серверах файловых-хранилищах. Odin: Warehouse инкапсулирует сложную логику сохранения на файловые серверы, скрывая её от слоя Асгарда, и от Меня pantheon.Odin. Loki: А SOLID можешь расшифровать?) Ты уже прокачался в программировании, как я посмотрю. Loki: Уже боюсь проиграть наше пари... (UPD: уже проиграл)

func NewWarehouse

func NewWarehouse(artWarehouseURL string, originWarehouseURL string) *Warehouse

func (*Warehouse) DownloadArtImage

func (w *Warehouse) DownloadArtImage(ctx context.Context, artID uint, size string) ([]byte, error)

func (*Warehouse) DownloadArtOrigin

func (w *Warehouse) DownloadArtOrigin(ctx context.Context, artID uint) ([]byte, error)

func (*Warehouse) DownloadUnityImage

func (w *Warehouse) DownloadUnityImage(ctx context.Context, mask string, version uint, size string) ([]byte, error)

func (*Warehouse) GetAndDecodeArtImage

func (w *Warehouse) GetAndDecodeArtImage(ctx context.Context, artID uint, size string) (image.Image, error)

func (*Warehouse) GetAndDecodeArtOrigin

func (w *Warehouse) GetAndDecodeArtOrigin(ctx context.Context, artID uint) (image.Image, error)

func (*Warehouse) GetAndDecodeUnityImage

func (w *Warehouse) GetAndDecodeUnityImage(ctx context.Context, mask string, version uint, size string) (image.Image, error)

func (*Warehouse) SaveArtImage

func (wh *Warehouse) SaveArtImage(ctx context.Context, artID uint, img image.Image) error

func (*Warehouse) SaveUnityCollage

func (wh *Warehouse) SaveUnityCollage(ctx context.Context, mask string, version uint, img image.Image) error

Jump to

Keyboard shortcuts

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