14 lines
296 B
Go
14 lines
296 B
Go
package interfaces
|
|
|
|
import (
|
|
"git.lumeweb.com/LumeWeb/portal/db/models"
|
|
"io"
|
|
)
|
|
|
|
type StorageService interface {
|
|
Init()
|
|
PutFile(file io.ReadSeeker, bucket string, generateProof bool) ([]byte, error)
|
|
FileExists(hash []byte) (bool, models.Upload)
|
|
GetHash(file io.ReadSeeker) ([]byte, error)
|
|
}
|