22 lines
428 B
Go
Raw Normal View History

2022-06-06 21:48:53 +08:00
package driver
import (
"io"
"net/http"
2022-06-13 15:39:47 +08:00
"time"
2022-06-06 21:48:53 +08:00
)
type LinkArgs struct {
IP string
Header http.Header
}
type Link struct {
2022-06-13 15:39:47 +08:00
URL string
Header http.Header // needed header
Data io.ReadCloser // return file reader directly
Status int // status maybe 200 or 206, etc
FilePath string // local file, return the filepath
Expiration *time.Duration // url expiration time
2022-06-06 21:48:53 +08:00
}