imgsrv/types.go

21 lines
386 B
Go
Raw Normal View History

package main
import "time"
type Info struct {
2013-03-27 20:30:24 +00:00
Keywords []string // tags
Ip string // who uploaded it
Random int64
TimeStamp time.Time "timestamp,omitempty"
}
type File struct {
2013-03-27 20:30:24 +00:00
Metadata Info ",omitempty"
Md5 string
ChunkSize int
UploadDate time.Time
Length int64
Filename string ",omitempty"
ContentType string "contentType,omitempty"
}