Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyContent = errEmptyContent{errors.New("received content length is zero")} ErrTemperingDetected = errTemperingDetected{errors.New("tempering of the resource was detected")} )
Functions ¶
This section is empty.
Types ¶
type ClientError ¶
type ClientError interface {
IsClientError() bool
}
type Interactor ¶
type Interactor struct {
// contains filtered or unexported fields
}
interactor はすべての依存を解決する役割を持つ
func NewInteractor ¶
func NewInteractor( logger *log.Logger, config *config.Config, outputPort ports.ServerOutputPort, storagePort ports.StoragePort, blockchainPort ports.BlockchainPort, cryptoPort ports.CryptoPort, fileRepository repositories.FileRepository, ) *Interactor
func (*Interactor) DownloadFile ¶
func (i *Interactor) DownloadFile(params *ports.DownloadFileParams) (*ports.DownloadFileResponse, error)
DownloadFile downloads a file specified by the token
func (*Interactor) UploadFile ¶
func (i *Interactor) UploadFile(params *ports.UploadFileParams) (*ports.UploadFileResponse, error)
Click to show internal directories.
Click to hide internal directories.