alist/internal/driver/link.go

22 lines
428 B
Go

package driver
import (
"io"
"net/http"
"time"
)
type LinkArgs struct {
IP string
Header http.Header
}
type Link struct {
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
}