-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6776ccf
commit c105ca7
Showing
7 changed files
with
64 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package market | ||
|
||
const ( | ||
PiecesTransferS3 = "s3" | ||
PiecesTransferFs = "fs" | ||
) | ||
|
||
type FsTransfer struct { | ||
Path string | ||
} | ||
|
||
type S3Transfer struct { | ||
EndPoint string | ||
Bucket string | ||
SubDir string | ||
|
||
AccessKey string | ||
SecretKey string | ||
Token string | ||
|
||
Key string | ||
} | ||
|
||
// Transfer has the parameters for a data transfer | ||
type Transfer struct { | ||
// The type of transfer eg "http" | ||
Type string | ||
// A byte array containing marshalled data specific to the transfer type | ||
// eg a JSON encoded struct { URL: "<url>", Headers: {...} } | ||
Params []byte | ||
} |