Documentation ¶
Index ¶
- type Warehouse
- func (w *Warehouse) DownloadArtImage(ctx context.Context, artID uint, size string) ([]byte, error)
- func (w *Warehouse) DownloadArtOrigin(ctx context.Context, artID uint) ([]byte, error)
- func (w *Warehouse) DownloadUnityImage(ctx context.Context, mask string, version uint, size string) ([]byte, error)
- func (w *Warehouse) GetAndDecodeArtImage(ctx context.Context, artID uint, size string) (image.Image, error)
- func (w *Warehouse) GetAndDecodeArtOrigin(ctx context.Context, artID uint) (image.Image, error)
- func (w *Warehouse) GetAndDecodeUnityImage(ctx context.Context, mask string, version uint, size string) (image.Image, error)
- func (wh *Warehouse) SaveArtImage(ctx context.Context, artID uint, img image.Image) error
- func (wh *Warehouse) SaveUnityCollage(ctx context.Context, mask string, version uint, img image.Image) error
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 (*Warehouse) DownloadArtImage ¶
func (*Warehouse) DownloadArtOrigin ¶
func (*Warehouse) DownloadUnityImage ¶
func (*Warehouse) GetAndDecodeArtImage ¶
func (*Warehouse) GetAndDecodeArtOrigin ¶
func (*Warehouse) GetAndDecodeUnityImage ¶
func (*Warehouse) SaveArtImage ¶
Click to show internal directories.
Click to hide internal directories.