storage

package
v0.0.0-...-9d7767d Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StorageSet = wire.NewSet(NewStorage)

Functions

func NewMinioStorage

func NewMinioStorage(cfg *utils.Config) (*minioStorage, error)

Types

type Storage

type Storage interface {
	Ping() error
	GetImage(cover string, id uint, filename string) ([]byte, string, error)
	SaveImage(data []byte, cover string, id uint, filename string) error
}

func NewLocalStorage

func NewLocalStorage(cfg *utils.Config, l utils.Logger) (Storage, error)

func NewStorage

func NewStorage(cfg *utils.Config, l utils.Logger) (Storage, error)

Jump to

Keyboard shortcuts

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