Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskStorage ¶
type DiskStorage struct {
// contains filtered or unexported fields
}
func NewDiskStorage ¶
func NewDiskStorage(path string, log logger.Logger) *DiskStorage
func (*DiskStorage) GetFile ¶
func (c *DiskStorage) GetFile(fileName string) (content []byte, err error)
func (*DiskStorage) GetStorageDirectory ¶
func (c *DiskStorage) GetStorageDirectory() string
type ObjectStorage ¶
type ObjectStorage struct {
// contains filtered or unexported fields
}
func NewObjectStorage ¶
func NewObjectStorage(client *minio.Client, bucket string, cache *DiskStorage) *ObjectStorage
func (*ObjectStorage) GetFile ¶
func (o *ObjectStorage) GetFile(objectName string) (contents []byte, err error)
func (*ObjectStorage) GetStorageDirectory ¶
func (o *ObjectStorage) GetStorageDirectory() string
Click to show internal directories.
Click to hide internal directories.