WithExpire set expire time for file source
(expire *time.Time)
| 103 | |
| 104 | // WithExpire set expire time for file source |
| 105 | func WithExpire(expire *time.Time) EntitySourceOption { |
| 106 | return EntitySourceOptionFunc(func(option any) { |
| 107 | option.(*EntitySourceOptions).Expire = expire |
| 108 | }) |
| 109 | } |
| 110 | |
| 111 | // WithDownload set file URL as download |
| 112 | func WithDownload(isDownload bool) EntitySourceOption { |
no test coverage detected