mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-26 23:34:03 +08:00
22 lines
427 B
Go
22 lines
427 B
Go
package model
|
|
|
|
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
|
|
}
|