Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockchainPort ¶
type BlockchainPort interface {
FindTxByHash(string) (*dto.Transaction, error)
}
type CryptoPort ¶
type DownloadFileParams ¶
type DownloadFileResponse ¶
type DownloadFileResponse struct {
Content []byte `json:"content"`
}
type ServerInputPort ¶
type ServerInputPort interface { UploadFile(*UploadFileParams) (*UploadFileResponse, error) DownloadFile(*DownloadFileParams) (*DownloadFileResponse, error) }
type ServerOutputPort ¶
type ServerOutputPort interface { UploadFile(token entities.FileID) (*UploadFileResponse, error) DownloadFile(content io.Reader) (*DownloadFileResponse, error) }
type StoragePort ¶
type UploadFileParams ¶
type UploadFileResponse ¶
type UploadFileResponse struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.