GetTaskID returns the task id of the file.
(opts ...TaskIDOption)
| 108 | |
| 109 | // GetTaskID returns the task id of the file. |
| 110 | func (f *File) GetTaskID(opts ...TaskIDOption) string { |
| 111 | taskIDOptions := &taskID{ |
| 112 | url: f.downloadURL, |
| 113 | } |
| 114 | |
| 115 | for _, opt := range opts { |
| 116 | opt(taskIDOptions) |
| 117 | } |
| 118 | |
| 119 | return idgen.TaskIDV2ByURLBased(taskIDOptions.url, taskIDOptions.pieceLength, taskIDOptions.tag, taskIDOptions.application, taskIDOptions.filteredQueryParams, "") |
| 120 | } |
| 121 | |
| 122 | // GetOutputPath returns the output path of the file. |
| 123 | func (f *File) GetOutputPath() string { |
no test coverage detected